* 2.6.9-rc1-mm1 ppc build broken
@ 2004-08-30 23:41 Albert Herranz
2004-08-30 23:48 ` Roland McGrath
0 siblings, 1 reply; 7+ messages in thread
From: Albert Herranz @ 2004-08-30 23:41 UTC (permalink / raw)
To: roland, akpm; +Cc: linux-kernel
Hi,
It seems that the waitid-system-call.patch in
2.6.9-rc1-mm1 introduced a circular include dependency
problem in the ppc arch.
The problem seems to be related to the addition of the
linux/resource.h header file in
include/asm-generic/siginfo.h for the new _rusage
field.
CC arch/ppc/kernel/asm-offsets.s
In file included from include/linux/mm.h:4,
from include/asm/io.h:7,
from include/linux/timex.h:61,
from include/linux/time.h:29,
from include/linux/resource.h:4,
from include/asm-generic/siginfo.h:6,
from include/asm/siginfo.h:4,
from include/linux/signal.h:7,
from
arch/ppc/kernel/asm-offsets.c:12:
include/linux/sched.h:276: error: field
`shared_pending' has incomplete type
include/linux/sched.h:379: error: parse error before
"sigval_t"
include/linux/sched.h:379: warning: no semicolon at
end of struct or union
include/linux/sched.h:386: error: parse error before
'}' token
include/linux/sched.h:534: error: `RLIM_NLIMITS'
undeclared here (not in a function)
include/linux/sched.h:554: error: field `pending' has
incomplete type
include/linux/sched.h:587: error: parse error before
"siginfo_t"
include/linux/sched.h:587: warning: no semicolon at
end of struct or union
include/linux/sched.h:607: error: parse error before
'}' token
include/linux/sched.h: In function `process_group':
include/linux/sched.h:611: error: dereferencing
pointer to incomplete type
Using gcc 3.3.2.
2.6.9-rc1, which does not include that patch, builds
fine for me.
Any others saw this?
Cheers,
Albert
______________________________________________
Renovamos el Correo Yahoo!: ¡100 MB GRATIS!
Nuevos servicios, más seguridad
http://correo.yahoo.es
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.6.9-rc1-mm1 ppc build broken
2004-08-30 23:41 2.6.9-rc1-mm1 ppc build broken Albert Herranz
@ 2004-08-30 23:48 ` Roland McGrath
2004-08-31 10:51 ` Albert Herranz
0 siblings, 1 reply; 7+ messages in thread
From: Roland McGrath @ 2004-08-30 23:48 UTC (permalink / raw)
To: Albert Herranz; +Cc: akpm, linux-kernel
> The problem seems to be related to the addition of the
> linux/resource.h header file in
> include/asm-generic/siginfo.h for the new _rusage
> field.
This is creating a circularity on ppc that others don't have apparently.
> CC arch/ppc/kernel/asm-offsets.s
> In file included from include/linux/mm.h:4,
> from include/asm/io.h:7,
> from include/linux/timex.h:61,
This #include link here is the issue. Vanilla linux/timex.h does not have
the #include <asm/io.h>. On other machines, <asm/io.h> does not include
<linux/mm.h>, so you don't get into the problem with sched.h.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.6.9-rc1-mm1 ppc build broken
2004-08-30 23:48 ` Roland McGrath
@ 2004-08-31 10:51 ` Albert Herranz
2004-09-04 20:37 ` Joseph Fannin
0 siblings, 1 reply; 7+ messages in thread
From: Albert Herranz @ 2004-08-31 10:51 UTC (permalink / raw)
To: Roland McGrath; +Cc: akpm, linux-kernel
> This is creating a circularity on ppc that others
> don't have apparently.
>
> > CC arch/ppc/kernel/asm-offsets.s
> > In file included from include/linux/mm.h:4,
>
> > from include/asm/io.h:7,
> > from include/linux/timex.h:61,
>
> This #include link here is the issue. Vanilla
> linux/timex.h does not have
> the #include <asm/io.h>. On other machines,
> <asm/io.h> does not include
> <linux/mm.h>, so you don't get into the problem with
> sched.h.
Thanks.
The #include <asm/io.h> comes from bk-ia64.patch time
interpolation logic patch from Cristoph Lameter.
I've checked that at least for the embedded port I'm
working on the linux/mm.h is *not* a must on ppc
asm/io.h so we can get rid of it (commented out).
Maybe this is also true for the rest of ppc platforms.
Now 2.6.9-rc1-mm1 builds fine.
Cheers,
Albert
______________________________________________
Renovamos el Correo Yahoo!: ¡100 MB GRATIS!
Nuevos servicios, más seguridad
http://correo.yahoo.es
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.6.9-rc1-mm1 ppc build broken
2004-08-31 10:51 ` Albert Herranz
@ 2004-09-04 20:37 ` Joseph Fannin
2004-09-05 21:53 ` Andrew Morton
0 siblings, 1 reply; 7+ messages in thread
From: Joseph Fannin @ 2004-09-04 20:37 UTC (permalink / raw)
To: Albert Herranz; +Cc: Roland McGrath, akpm, linux-kernel, benh
hOn Tue, Aug 31, 2004 at 12:51:18PM +0200, Albert Herranz wrote:
[[ CC'ing BenH since lists.linuxppc.org doesn't seem to resolve ]]
[ 2.6.9-rc1-mm1 ]
> > This is creating a circularity on ppc that others
> > don't have apparently.
> >
> > > CC arch/ppc/kernel/asm-offsets.s
> > > In file included from include/linux/mm.h:4,
> >
> > > from include/asm/io.h:7,
> > > from include/linux/timex.h:61,
> >
> > This #include link here is the issue. Vanilla
> > linux/timex.h does not have
> > the #include <asm/io.h>. On other machines,
> > <asm/io.h> does not include
> > <linux/mm.h>, so you don't get into the problem with
> > sched.h.
>
> Thanks.
>
> The #include <asm/io.h> comes from bk-ia64.patch time
> interpolation logic patch from Cristoph Lameter.
>
> I've checked that at least for the embedded port I'm
> working on the linux/mm.h is *not* a must on ppc
> asm/io.h so we can get rid of it (commented out).
> Maybe this is also true for the rest of ppc platforms.
>
> Now 2.6.9-rc1-mm1 builds fine.
This is still broken in -mm3. This fix works for my powermac too,
except that arch/ppc/syslib/open_pic.c misses errno.h when it does not
get it through mm.h. I can't speak for other platforms, but I'll
include the patch.
In case it matters:
Signed-off-by: Joseph Fannin <jhf@rivenstone.net>
--
Joseph Fannin
jhf@rivenstone.net
"That's all I have to say about that." -- Forrest Gump.
diff -aurN a/arch/ppc/syslib/open_pic.c b/arch/ppc/syslib/open_pic.c
--- a/arch/ppc/syslib/open_pic.c 2004-09-04 15:43:05.035636648 -0400
+++ b/arch/ppc/syslib/open_pic.c 2004-09-04 15:47:14.260748672 -0400
@@ -16,6 +16,7 @@
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/sysdev.h>
+#include <linux/errno.h>
#include <asm/ptrace.h>
#include <asm/signal.h>
#include <asm/io.h>
diff -aurN a/include/asm-ppc/io.h b/include/asm-ppc/io.h
--- a/include/asm-ppc/io.h 2004-08-22 22:48:30.000000000 -0400
+++ b/include/asm-ppc/io.h 2004-09-04 15:45:19.641173496 -0400
@@ -4,7 +4,6 @@
#include <linux/config.h>
#include <linux/types.h>
-#include <linux/mm.h>
#include <asm/page.h>
#include <asm/byteorder.h>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.6.9-rc1-mm1 ppc build broken
2004-09-04 20:37 ` Joseph Fannin
@ 2004-09-05 21:53 ` Andrew Morton
2004-09-06 1:43 ` Joseph Fannin
0 siblings, 1 reply; 7+ messages in thread
From: Andrew Morton @ 2004-09-05 21:53 UTC (permalink / raw)
To: Joseph Fannin; +Cc: albert_herranz, roland, linux-kernel, benh
jhf@rivenstone.net (Joseph Fannin) wrote:
>
> > The #include <asm/io.h> comes from bk-ia64.patch time
> > interpolation logic patch from Cristoph Lameter.
> >
> > I've checked that at least for the embedded port I'm
> > working on the linux/mm.h is *not* a must on ppc
> > asm/io.h so we can get rid of it (commented out).
> > Maybe this is also true for the rest of ppc platforms.
> >
> > Now 2.6.9-rc1-mm1 builds fine.
>
> This is still broken in -mm3. This fix works for my powermac too,
> except that arch/ppc/syslib/open_pic.c misses errno.h when it does not
> get it through mm.h. I can't speak for other platforms, but I'll
> include the patch.
OK, now I have an ordering problem. If I understand you correctly, this
patch fixes a ppc problem which was introduced by a patch from the bk-ia64
tree, yes?
If so, my options are to ask Tony to add this patch to the bk-ia64 tree so
they all go in at the same time, or to merge this patch into Linus's tree
prior to the ia64 patch. To do the latter, I'd need confirmation that your
patch is safe against current -linus. Can you please confirm this?
--- 25/arch/ppc/syslib/open_pic.c~ppc-build-fix 2004-09-05 14:50:54.250084104 -0700
+++ 25-akpm/arch/ppc/syslib/open_pic.c 2004-09-05 14:50:54.266081672 -0700
@@ -16,6 +16,7 @@
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/sysdev.h>
+#include <linux/errno.h>
#include <asm/ptrace.h>
#include <asm/signal.h>
#include <asm/io.h>
diff -puN include/asm-ppc/io.h~ppc-build-fix include/asm-ppc/io.h
--- 25/include/asm-ppc/io.h~ppc-build-fix 2004-09-05 14:50:54.262082280 -0700
+++ 25-akpm/include/asm-ppc/io.h 2004-09-05 14:50:54.276080152 -0700
@@ -4,7 +4,6 @@
#include <linux/config.h>
#include <linux/types.h>
-#include <linux/mm.h>
#include <asm/page.h>
#include <asm/byteorder.h>
_
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.6.9-rc1-mm1 ppc build broken
2004-09-05 21:53 ` Andrew Morton
@ 2004-09-06 1:43 ` Joseph Fannin
2004-09-06 11:59 ` Albert Herranz
0 siblings, 1 reply; 7+ messages in thread
From: Joseph Fannin @ 2004-09-06 1:43 UTC (permalink / raw)
To: Andrew Morton; +Cc: Joseph Fannin, albert_herranz, roland, linux-kernel, benh
On Sun, Sep 05, 2004 at 02:53:55PM -0700, Andrew Morton wrote:
> jhf@rivenstone.net (Joseph Fannin) wrote:
> > This is still broken in -mm3. This fix works for my powermac too,
> > except that arch/ppc/syslib/open_pic.c misses errno.h when it does not
> > get it through mm.h. I can't speak for other platforms, but I'll
> > include the patch.
>
> OK, now I have an ordering problem. If I understand you correctly, this
> patch fixes a ppc problem which was introduced by a patch from the bk-ia64
> tree, yes?
Yes.
> If so, my options are to ask Tony to add this patch to the bk-ia64 tree so
> they all go in at the same time, or to merge this patch into Linus's tree
> prior to the ia64 patch. To do the latter, I'd need confirmation that your
> patch is safe against current -linus. Can you please confirm this?
-rc1-bk12 with this patch applied builds and runs okay on my
Powermac, so yes. Thanks!
> +++ 25-akpm/arch/ppc/syslib/open_pic.c 2004-09-05 14:50:54.266081672 -0700
> @@ -16,6 +16,7 @@
> #include <linux/irq.h>
> #include <linux/interrupt.h>
> #include <linux/sysdev.h>
> +#include <linux/errno.h>
> #include <asm/ptrace.h>
> #include <asm/signal.h>
> #include <asm/io.h>
> diff -puN include/asm-ppc/io.h~ppc-build-fix include/asm-ppc/io.h
> +++ 25-akpm/include/asm-ppc/io.h 2004-09-05 14:50:54.276080152 -0700
> @@ -4,7 +4,6 @@
>
> #include <linux/config.h>
> #include <linux/types.h>
> -#include <linux/mm.h>
>
> #include <asm/page.h>
> #include <asm/byteorder.h>
--
Joseph Fannin
jhf@rivenstone.net
"Bull in pure form is rare; there is usually some contamination by data."
-- William Graves Perry Jr.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.6.9-rc1-mm1 ppc build broken
2004-09-06 1:43 ` Joseph Fannin
@ 2004-09-06 11:59 ` Albert Herranz
0 siblings, 0 replies; 7+ messages in thread
From: Albert Herranz @ 2004-09-06 11:59 UTC (permalink / raw)
To: Joseph Fannin, Andrew Morton; +Cc: roland, linux-kernel, benh
> > OK, now I have an ordering problem. If I
> understand you correctly, this
> > patch fixes a ppc problem which was introduced by
> a patch from the bk-ia64
> > tree, yes?
>
> Yes.
>
As I understand it, the build problem was triggered
when the waitid-system-call.patch from Roland McGrath
and the bk-ia64.patch time interpolation logic patch
from Cristoph Lameter were applied.
But the cause itself, as Roland pointed, is the fact
that the asm-ppc/io.h includes linux/mm.h, unlike
other platforms (that's why the build problem only
affected ppc).
This seems to be unnecessary. At least, confirmation
for this exists for some embedded ppc ports (me) and
the PowerMac (Joseph).
> > If so, my options are to ask Tony to add this
> patch to the bk-ia64 tree so
> > they all go in at the same time, or to merge this
> patch into Linus's tree
> > prior to the ia64 patch. To do the latter, I'd
> need confirmation that your
> > patch is safe against current -linus. Can you
> please confirm this?
>
> -rc1-bk12 with this patch applied builds and
> runs okay on my
> Powermac, so yes. Thanks!
>
IIRC, the linus tree also includes linux/mm.h in
asm-ppc/io.h since several versions.
Cheers,
Albert
______________________________________________
Renovamos el Correo Yahoo!: ¡100 MB GRATIS!
Nuevos servicios, más seguridad
http://correo.yahoo.es
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-09-06 11:59 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-30 23:41 2.6.9-rc1-mm1 ppc build broken Albert Herranz
2004-08-30 23:48 ` Roland McGrath
2004-08-31 10:51 ` Albert Herranz
2004-09-04 20:37 ` Joseph Fannin
2004-09-05 21:53 ` Andrew Morton
2004-09-06 1:43 ` Joseph Fannin
2004-09-06 11:59 ` Albert Herranz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®