* PA-RISC: compile error in include/net/dst.h
@ 2011-05-22 8:15 Rolf Eike Beer
2011-05-22 14:13 ` WANG Cong
2011-05-22 14:32 ` [stable] " Greg KH
0 siblings, 2 replies; 11+ messages in thread
From: Rolf Eike Beer @ 2011-05-22 8:15 UTC (permalink / raw)
To: Parisc List; +Cc: linux-kernel, stable
[-- Attachment #1: Type: text/plain, Size: 768 bytes --]
from include/net/ipv6.h:16,
from include/linux/sunrpc/clnt.h:25,
from include/linux/nfs_fs.h:50,
from init/do_mounts.c:20:
include/net/dst.h: In function 'dst_hold':
include/net/dst.h:238:2: error: size of unnamed array is negative
In file included from include/linux/nfs_fs.h:59:0,
from init/do_mounts.c:20:
include/linux/mempool.h: In function 'mempool_create_kmalloc_pool':
include/linux/mempool.h:58:10: warning: cast to pointer from integer of
different size
This is both in 2.6.38.6 and 2.6.39, but is not in 2.6.38.4 when compiling for
my C8000.
pioneer src # hppa64-unknown-linux-gnu-gcc --version
hppa64-unknown-linux-gnu-gcc (Gentoo 4.5.2 p1.1) 4.5.2
Greetings,
Eike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: PA-RISC: compile error in include/net/dst.h
2011-05-22 8:15 PA-RISC: compile error in include/net/dst.h Rolf Eike Beer
@ 2011-05-22 14:13 ` WANG Cong
2011-05-22 14:32 ` [stable] " Greg KH
1 sibling, 0 replies; 11+ messages in thread
From: WANG Cong @ 2011-05-22 14:13 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-parisc, stable, netdev
(Cc netdev as well)
On Sun, 22 May 2011 10:15:19 +0200, Rolf Eike Beer wrote:
> from include/net/ipv6.h:16,
> from include/linux/sunrpc/clnt.h:25,
> from include/linux/nfs_fs.h:50,
> from init/do_mounts.c:20:
> include/net/dst.h: In function 'dst_hold': include/net/dst.h:238:2:
> error: size of unnamed array is negative In file included from
> include/linux/nfs_fs.h:59:0,
> from init/do_mounts.c:20:
Seems someone touched struct dst_entry...
> include/linux/mempool.h: In function 'mempool_create_kmalloc_pool':
> include/linux/mempool.h:58:10: warning: cast to pointer from integer of
> different size
>
> This is both in 2.6.38.6 and 2.6.39, but is not in 2.6.38.4 when
> compiling for my C8000.
>
> pioneer src # hppa64-unknown-linux-gnu-gcc --version
> hppa64-unknown-linux-gnu-gcc (Gentoo 4.5.2 p1.1) 4.5.2
>
> Greetings,
>
> Eike
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [stable] PA-RISC: compile error in include/net/dst.h
2011-05-22 8:15 PA-RISC: compile error in include/net/dst.h Rolf Eike Beer
2011-05-22 14:13 ` WANG Cong
@ 2011-05-22 14:32 ` Greg KH
2011-05-22 22:29 ` Rolf Eike Beer
1 sibling, 1 reply; 11+ messages in thread
From: Greg KH @ 2011-05-22 14:32 UTC (permalink / raw)
To: Rolf Eike Beer; +Cc: Parisc List, linux-kernel, stable
On Sun, May 22, 2011 at 10:15:19AM +0200, Rolf Eike Beer wrote:
> from include/net/ipv6.h:16,
> from include/linux/sunrpc/clnt.h:25,
> from include/linux/nfs_fs.h:50,
> from init/do_mounts.c:20:
> include/net/dst.h: In function 'dst_hold':
> include/net/dst.h:238:2: error: size of unnamed array is negative
> In file included from include/linux/nfs_fs.h:59:0,
> from init/do_mounts.c:20:
> include/linux/mempool.h: In function 'mempool_create_kmalloc_pool':
> include/linux/mempool.h:58:10: warning: cast to pointer from integer of
> different size
>
> This is both in 2.6.38.6 and 2.6.39, but is not in 2.6.38.4 when compiling for
> my C8000.
Could you bisect it down to the patch that causes the problem in
2.6.38.6?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [stable] PA-RISC: compile error in include/net/dst.h
2011-05-22 14:32 ` [stable] " Greg KH
@ 2011-05-22 22:29 ` Rolf Eike Beer
2011-05-24 18:37 ` Rolf Eike Beer
0 siblings, 1 reply; 11+ messages in thread
From: Rolf Eike Beer @ 2011-05-22 22:29 UTC (permalink / raw)
To: Greg KH; +Cc: Parisc List, linux-kernel, stable, netdev
[-- Attachment #1: Type: text/plain, Size: 1013 bytes --]
Am Sonntag, 22. Mai 2011, 07:32:22 schrieb Greg KH:
> On Sun, May 22, 2011 at 10:15:19AM +0200, Rolf Eike Beer wrote:
> > from include/net/ipv6.h:16,
> > from include/linux/sunrpc/clnt.h:25,
> > from include/linux/nfs_fs.h:50,
> >
> > from init/do_mounts.c:20:
> > include/net/dst.h: In function 'dst_hold':
> > include/net/dst.h:238:2: error: size of unnamed array is negative
> > In file included from include/linux/nfs_fs.h:59:0,
> >
> > from init/do_mounts.c:20:
> > include/linux/mempool.h: In function 'mempool_create_kmalloc_pool':
> > include/linux/mempool.h:58:10: warning: cast to pointer from integer of
> > different size
> >
> > This is both in 2.6.38.6 and 2.6.39, but is not in 2.6.38.4 when
> > compiling for my C8000.
>
> Could you bisect it down to the patch that causes the problem in
> 2.6.38.6?
I will try if I find time in the next days. Until now I can only confirm that
2.6.38.5 builds fine.
Eike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: PA-RISC: compile error in include/net/dst.h
2011-05-22 22:29 ` Rolf Eike Beer
@ 2011-05-24 18:37 ` Rolf Eike Beer
2011-05-24 19:06 ` [stable] " John David Anglin
0 siblings, 1 reply; 11+ messages in thread
From: Rolf Eike Beer @ 2011-05-24 18:37 UTC (permalink / raw)
To: Greg KH; +Cc: netdev, linux-kernel, Parisc List, stable
[-- Attachment #1.1: Type: text/plain, Size: 1289 bytes --]
I wrote:
> Am Sonntag, 22. Mai 2011, 07:32:22 schrieb Greg KH:
> > On Sun, May 22, 2011 at 10:15:19AM +0200, Rolf Eike Beer wrote:
> > > from include/net/ipv6.h:16,
> > > from
> > > include/linux/sunrpc/clnt.h:25,
> > > from include/linux/nfs_fs.h:50,
> > >
> > > from init/do_mounts.c:20:
> > > include/net/dst.h: In function 'dst_hold':
> > > include/net/dst.h:238:2: error: size of unnamed array is negative
> > > In file included from include/linux/nfs_fs.h:59:0,
> > >
> > > from init/do_mounts.c:20:
> > > include/linux/mempool.h: In function 'mempool_create_kmalloc_pool':
> > > include/linux/mempool.h:58:10: warning: cast to pointer from integer
> > > of
> > > different size
> > >
> > > This is both in 2.6.38.6 and 2.6.39, but is not in 2.6.38.4 when
> > > compiling for my C8000.
> >
> > Could you bisect it down to the patch that causes the problem in
> > 2.6.38.6?
>
> I will try if I find time in the next days. Until now I can only confirm
> that 2.6.38.5 builds fine.
As 2.6.38.6 does if I use the correct .config. So it is an older issue which is
not related to recent changes but likely some general HPPA breakage. We'll
discuss the rest on linux-parisc.
Eike
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 140 bytes --]
_______________________________________________
stable mailing list
stable@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/stable
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [stable] PA-RISC: compile error in include/net/dst.h
2011-05-24 18:37 ` Rolf Eike Beer
@ 2011-05-24 19:06 ` John David Anglin
2011-05-24 19:19 ` Rolf Eike Beer
0 siblings, 1 reply; 11+ messages in thread
From: John David Anglin @ 2011-05-24 19:06 UTC (permalink / raw)
To: Rolf Eike Beer; +Cc: Parisc List
On Tue, 24 May 2011, Rolf Eike Beer wrote:
> As 2.6.38.6 does if I use the correct .config. So it is an older issue which is
> not related to recent changes but likely some general HPPA breakage. We'll
> discuss the rest on linux-parisc.
If you believe this is a compiler error, I suggest using gcc 4.5.3 or
4.6.0.
All releases prior to 4.5.2 contain bugs in delay slot optimization
resulting in incorrect register liveness. 4.3 and 4.4 were seriously
broken at -O1, and neither could bootstrap gcc at -O1. I just completed
backporting all the reorg fixes that I am aware of, but they aren't
included in any 4.3 or 4.4 release.
It's quite possible most gcc 4.3 and 4.4 releases are miscompiled
on targets with branch delay slots. As a side, all the fixes that I
backported were to the generic code.
I have been using 4.5.3 and haven't seen your problem.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [stable] PA-RISC: compile error in include/net/dst.h
2011-05-24 19:06 ` [stable] " John David Anglin
@ 2011-05-24 19:19 ` Rolf Eike Beer
2011-05-24 19:47 ` Rolf Eike Beer
2011-05-24 20:49 ` John David Anglin
0 siblings, 2 replies; 11+ messages in thread
From: Rolf Eike Beer @ 2011-05-24 19:19 UTC (permalink / raw)
To: Parisc List
[-- Attachment #1: Type: text/plain, Size: 967 bytes --]
Am Dienstag, 24. Mai 2011, 15:06:14 schrieb John David Anglin:
> On Tue, 24 May 2011, Rolf Eike Beer wrote:
> > As 2.6.38.6 does if I use the correct .config. So it is an older issue
> > which is not related to recent changes but likely some general HPPA
> > breakage. We'll discuss the rest on linux-parisc.
>
> If you believe this is a compiler error, I suggest using gcc 4.5.3 or
> 4.6.0.
>
> All releases prior to 4.5.2 contain bugs in delay slot optimization
> resulting in incorrect register liveness.
If you think of PR46915: I was the one that originally stumbled over this
although GM took the hard work of bisecting and reporting that upstream. As I
said before, the compiler is 4.5.2.
And: no, I don't suspect a compiler error. Only a .config screwup. I'm
currently trying to find the culprit. Good luck it breaks rather early in the
compile.
To reproduce try to compile for hppa64 with default .config, this seems what
has happened to me.
Eike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [stable] PA-RISC: compile error in include/net/dst.h
2011-05-24 19:19 ` Rolf Eike Beer
@ 2011-05-24 19:47 ` Rolf Eike Beer
2011-05-24 20:49 ` John David Anglin
1 sibling, 0 replies; 11+ messages in thread
From: Rolf Eike Beer @ 2011-05-24 19:47 UTC (permalink / raw)
To: Parisc List
[-- Attachment #1: Type: text/plain, Size: 227 bytes --]
I wrote:
> To reproduce try to compile for hppa64 with default .config, this seems what
> has happened to me.
Ok, the issue is rather stupid. I passed a 64 bit compiler on the command line
but CONFIG_64BIT was not set.
Eike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [stable] PA-RISC: compile error in include/net/dst.h
2011-05-24 19:19 ` Rolf Eike Beer
2011-05-24 19:47 ` Rolf Eike Beer
@ 2011-05-24 20:49 ` John David Anglin
2011-05-24 20:59 ` Rolf Eike Beer
1 sibling, 1 reply; 11+ messages in thread
From: John David Anglin @ 2011-05-24 20:49 UTC (permalink / raw)
To: Rolf Eike Beer; +Cc: linux-parisc
> If you think of PR46915: I was the one that originally stumbled over this
> although GM took the hard work of bisecting and reporting that upstream. As I
> said before, the compiler is 4.5.2.
Yes, finding the cause of bugs is often a lot harder than fixing them.
I spent about a week debugging PR49007 and then it turned out the problem
was the same as PR40086 (one line fix to reorg.c). Hopefully most reorg
bugs are now fixed as they are nasty.
Nominally, PR46915 was fixed in 4.5.3.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [stable] PA-RISC: compile error in include/net/dst.h
2011-05-24 20:49 ` John David Anglin
@ 2011-05-24 20:59 ` Rolf Eike Beer
2011-05-24 21:10 ` John David Anglin
0 siblings, 1 reply; 11+ messages in thread
From: Rolf Eike Beer @ 2011-05-24 20:59 UTC (permalink / raw)
To: linux-parisc
[-- Attachment #1: Type: text/plain, Size: 680 bytes --]
Am Dienstag, 24. Mai 2011, 16:49:37 schrieben Sie:
> > If you think of PR46915: I was the one that originally stumbled over
> > this
> > although GM took the hard work of bisecting and reporting that upstream.
> > As I said before, the compiler is 4.5.2.
>
> Yes, finding the cause of bugs is often a lot harder than fixing them.
> I spent about a week debugging PR49007 and then it turned out the problem
> was the same as PR40086 (one line fix to reorg.c). Hopefully most reorg
> bugs are now fixed as they are nasty.
>
> Nominally, PR46915 was fixed in 4.5.3.
Gentoo has backported it to 4.5.2. I know that because otherwise my C3600
wouldn't have any usable swap ;)
Eike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [stable] PA-RISC: compile error in include/net/dst.h
2011-05-24 20:59 ` Rolf Eike Beer
@ 2011-05-24 21:10 ` John David Anglin
0 siblings, 0 replies; 11+ messages in thread
From: John David Anglin @ 2011-05-24 21:10 UTC (permalink / raw)
To: Rolf Eike Beer; +Cc: linux-parisc
On Tue, 24 May 2011, Rolf Eike Beer wrote:
> Gentoo has backported it to 4.5.2. I know that because otherwise my C3600
> wouldn't have any usable swap ;)
My main point was to advise those using older gcc versions to update.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2011-05-24 21:10 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-22 8:15 PA-RISC: compile error in include/net/dst.h Rolf Eike Beer
2011-05-22 14:13 ` WANG Cong
2011-05-22 14:32 ` [stable] " Greg KH
2011-05-22 22:29 ` Rolf Eike Beer
2011-05-24 18:37 ` Rolf Eike Beer
2011-05-24 19:06 ` [stable] " John David Anglin
2011-05-24 19:19 ` Rolf Eike Beer
2011-05-24 19:47 ` Rolf Eike Beer
2011-05-24 20:49 ` John David Anglin
2011-05-24 20:59 ` Rolf Eike Beer
2011-05-24 21:10 ` John David Anglin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox