Building gcc-3.2.2 with: ~/src/gcc-3.2-3.2.2ds8/src/configure --with-gnu-as --with-gnu-ld --disable-shared --disable-nls --disable-threads --prefix=/usr --host=hppa-linux --target=hppa64-linux --enable-languages=c and then 'make' gives: /home/tausq/build/gcc-3.2/gcc/xgcc -B/home/tausq/build/gcc-3.2/gcc/ -B/usr/hppa64-linux/bin/ -B/usr/hppa64-linux/lib/ -isystem /usr/hppa64-linux/include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -Dpa64=1 -DELF=1 -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I/home/tausq/src/gcc-3.2-3.2.2ds8/src/gcc -I/home/tausq/src/gcc-3.2-3.2.2ds8/src/gcc/. -I/home/tausq/src/gcc-3.2-3.2.2ds8/src/gcc/config -I/home/tausq/src/gcc-3.2-3.2.2ds8/src/gcc/../include -fexceptions -c /home/tausq/src/gcc-3.2-3.2.2ds8/src/gcc/unwind-sjlj.c -o libgcc/./unwind-sjlj.o /home/tausq/src/gcc-3.2-3.2.2ds8/src/gcc/unwind-sjlj.c:56: size of array `data' is too large /home/tausq/src/gcc-3.2-3.2.2ds8/src/gcc/unwind-sjlj.c:72: confused by earlier errors, bailing out make[2]: *** [libgcc/./unwind-sjlj.o] Error 1 The offending line is: 56 _Unwind_Word data[4]; There are also a lot of warnings of the form: /home/tausq/src/gcc-3.2-3.2.2ds8/src/gcc/unwind-dw2-fde.c:822: warning: integer overflow in expression 807 _Unwind_Ptr mask; [...] 822 mask = -1; jda says he sees this with gcc-3.2.3 too. Release: 3.2.2 20030131 (Debian prerelease) (Debian testing/unstable) Environment: System: Linux ios 2.4.20-pa23 #19 SMP Fri Feb 7 22:00:18 PST 2003 parisc64 unknown unknown GNU/Linux Architecture: parisc64 <machine, os, target, libraries (multiple lines)> host: hppa-unknown-linux-gnu build: hppa-unknown-linux-gnu target: hppa-unknown-linux-gnu configured with: ../src/configure -v --enable-languages=c,c++,f77,proto,pascal,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-objc-gc hppa-linux How-To-Repeat: see above
From: Dara Hazeghi <dhazeghi@yahoo.com> To: tausq@debian.org, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: bootstrap/9631: [hppa64-unknown-linux-gnu] [gcc-3.2.2] fails to bootstrap Date: Fri, 16 May 2003 18:40:31 -0700 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- trail&database=gcc&pr=9631 Hello, I can't test with a cross compiler here (missing necessary headers), but would be possible for you to check whether this bug is still present in gcc 3.3? Thanks, Dara
State-Changed-From-To: open->feedback State-Changed-Why: See Dara's question.
From: Randolph Chung <randolph@tausq.org> To: giovannibajo@libero.it, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, Dara Hazeghi <dhazeghi@yahoo.com> Cc: Subject: Re: bootstrap/9631: [hppa64-unknown-linux-gnu] [gcc-3.2.2] fails to bootstrap Date: Sat, 17 May 2003 10:02:08 -0700 In reference to a message from giovannibajo@libero.it, dated May 17: > Synopsis: [hppa64-unknown-linux-gnu] [gcc-3.2.2] fails to bootstrap > > State-Changed-From-To: open->feedback > State-Changed-By: bajo > State-Changed-When: Sat May 17 06:57:31 2003 > State-Changed-Why: > See Dara's question. Same thing with gcc-3.3 release: /home/tausq/build/build-3.3/gcc/xgcc -B/home/tausq/build/build-3.3/gcc/ -B/opt/palinux/hppa64-linux/bin/ -B/opt/palinux/hppa64-linux/lib/ -isystem /opt/palinux/hppa64-linux/include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -Dpa64=1 -DELF=1 -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc-3.3/gcc -I../../gcc-3.3/gcc/. -I../../gcc-3.3/gcc/config -I../../gcc-3.3/gcc/../include -fexceptions -c ../../gc c-3.3/gcc/unwind-sjlj.c -o libgcc/./unwind-sjlj.o ../../gcc-3.3/gcc/unwind-sjlj.c:56: error: size of array `data' is too large randolph -- Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/
From: Randolph Chung <randolph@tausq.org> To: Giovanni Bajo <giovannibajo@libero.it> Cc: gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, Dara Hazeghi <dhazeghi@yahoo.com> Subject: Re: bootstrap/9631: [hppa64-unknown-linux-gnu] [gcc-3.2.2] fails to bootstrap Date: Sun, 18 May 2003 18:27:00 -0700 > Ok. Would you please send us a preprocessed source reproducing the bug oh, actually here's a very simple test case: tausq@gsyprf11:~/build/build-3.3/gcc$ cat bug.c struct SjLj_Function_Context { unsigned data[4]; }; tausq@gsyprf11:~/build/build-3.3/gcc$ ./xgcc -v Using built-in specs. Configured with: ../gcc-3.3/configure --enable-languages=c --prefix=/opt/palinux --disable-shared --disable-nls --with-system-zlib --without-included-gettext --enable-debug --host=hppa-linux --build=hppa-linux --target=hppa64-linux --enable-sjlj-exceptions --disable-threads Thread model: single gcc version 3.3 tausq@gsyprf11:~/build/build-3.3/gcc$ ./xgcc -B. -c bug.c bug.c:1: error: size of array `data' is too large fwiw i see that this message is printed by two places in grokdeclarator()... adding a printf i see that it's dying in the one at line 4070. randolph -- Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/
From: "Giovanni Bajo" <giovannibajo@libero.it> To: "Randolph Chung" <randolph@tausq.org>, <gcc-bugs@gcc.gnu.org>, <gcc-gnats@gcc.gnu.org>, "Dara Hazeghi" <dhazeghi@yahoo.com> Cc: Subject: Re: bootstrap/9631: [hppa64-unknown-linux-gnu] [gcc-3.2.2] fails to bootstrap Date: Mon, 19 May 2003 02:03:10 +0200 Randolph Chung <randolph@tausq.org> wrote: > Same thing with gcc-3.3 release: > > /home/tausq/build/build-3.3/gcc/xgcc -B/home/tausq/build/build-3.3/gcc/ > -B/opt/palinux/hppa64-linux/bin/ -B/opt/palinux/hppa64-linux/lib/ -isystem > /opt/palinux/hppa64-linux/include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall > -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include > -fPIC -Dpa64=1 -DELF=1 -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED > -Dinhibit_libc -I. -I. -I../../gcc-3.3/gcc -I../../gcc-3.3/gcc/. > -I../../gcc-3.3/gcc/config -I../../gcc-3.3/gcc/../include -fexceptions -c > ../../gcc-3.3/gcc/unwind-sjlj.c -o libgcc/./unwind-sjlj.o > ../../gcc-3.3/gcc/unwind-sjlj.c:56: error: size of array `data' is too > large Ok. Would you please send us a preprocessed source reproducing the bug (basically, just add -E to that line)? You should verify that the preprocess source still confuse the same stage 1 compiler (build-3.3/gcc/xgcc) and start cutting down the command line down to the minimum to still get the error. Let us know that minimal command line as well. After that, it would help if you could try the same preprocessed file and the same command line with a fully built GCC on the same platform. Is it possible to build GCC 3.3 at all on that platform (maybe tweaking the configure line)? Otherwise, at least try with the newest version of GCC you can build. Thanks. Giovanni Bajo
State-Changed-From-To: feedback->open State-Changed-Why: Submitter reconfirmed this for 3.3.
Randolph, with gcc 3.3 branch and mainline (20030601), I can't reproduce your failure on a powerpc-darwin x hppa64-linux cross compiler. Your testcase seems to compile fine: bash-2.05a$ branch/objdir/gcc/cc1 -quiet bug.c bash-2.05a$ branch/objdir/gcc/cc1 --version GNU C version 3.3.1 20030602 (prerelease) (hppa64-linux) compiled by GNU C version 3.1 20020420 (prerelease). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 bash-2.05a$ mainline/objdir/gcc/cc1 -quiet bug.c bash-2.05a$ mainline/objdir/gcc/cc1 --version GNU C version 3.4 20030602 (experimental) (hppa64-linux) compiled by GNU C version 3.1 20020420 (prerelease). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 bash-2.05a$ cat bug.c struct SjLj_Function_Context { unsigned data[4]; }; I did not configure with --enable-debug or --enable-sjlj-exceptions or --disable-threads, but I don't see why those would make a difference. Sorry to keep asking, but can you check again with current gcc 3.3 branch? Thanks, Dara
Subject: Re: [hppa64-unknown-linux-gnu] [gcc-3.2.2] fails to bootstrap > with gcc 3.3 branch and mainline (20030601), I can't reproduce your failure on a powerpc-darwin > x hppa64-linux cross compiler. Your testcase seems to compile fine: [...] > Sorry to keep asking, but can you check again with current gcc 3.3 branch? Thanks, it still doesn't work with a freshly updated gcc-3.3... same error as before: tausq@ios:~/gcc/build-3.3/gcc$ ./xgcc -v Using built-in specs. Configured with: ../gcc-3.3/configure --host=hppa-linux --build=hppa-linux --target=hppa64-linux --disable-shared --disable-nls --disable-threads --enable-languages=c --prefix=/opt/palinux Thread model: single gcc version 3.3.1 20030610 (prerelease) tausq@ios:~/gcc/build-3.3/gcc$ ./xgcc -B. -c bug.c bug.c:1: error: size of array `data' is too large randolph
Very strange. With x86-linux, I don't see this error... bash-2.04$ ./xgcc -v Using built-in specs. Configured with: ../gcc/configure --target=hppa64-linux --disable-shared --disable-nls --disable-threads --enable-languages=c --with-as=/tmp/dara/ bin/hppa64-linux-as Thread model: single gcc version 3.3.1 20030611 (prerelease) Aside from the obvious difference in build and host (and setting --with-as=, since configure is being dumb), I really have no idea why I can't replicate this. Dara
Okay, well I checked again today (3.3 branch), and still no dice reproducing the error. Seems like this may be a host specific problem... Randolph, if you get the opportunity to check whether this same problem occurs on an x86-linux cross-compiler, that'd be great. Dara
Do you which stage xgcc is aka which was the last stage was compiled?
Postponed until GCC 3.3.2. This PR does not contain sufficient information to reproduce the bug. Please attach a preprocessed source file and a command-line.
Bootstraps now, so closing the bug