Problem building gcc-3.2 (cvs head) on hppa-linux
Trying to build CVS head (3.2 20020711) with:
configure --host=hppa-linux --build=hppa-linux --target=hppa64-linux --enable-shared --disable-nls --enable-languages=c
I get:
/home/tausq/build/gcc-3.2/gcc/xgcc -B/home/tausq/build/gcc-3.2/gcc/ -B/home/tausq/opt/gnu/hppa64-linux/bin/ -B/home/tausq/opt/gnu/hppa64-linux/lib/ -isystem /home/tausq/opt/gnu/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/gcc -I/home/tausq/src/gcc-3.2/gcc/. -I/home/tausq/src/gcc-3.2/gcc/config -I/home/tausq/src/gcc-3.2/gcc/../include -DL__gcc_bcmp -c /home/tausq/src/gcc-3.2/gcc/libgcc2.c -o libgcc/./__gcc_bcmp.o /home/tausq/src/gcc-3.2/gcc/unwind-dw2.c: In function `uw_frame_state_for':/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c:906: warning: implicit declaration of function `memset'/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c: In function `uw_install_context_1':/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c:1193: warning: implicit declaration of
function `memcpy'
In file included from /home/tausq/src/gcc-3.2/gcc/unwind-dw2.c:1210:/home/tausq/src/gcc-3.2/gcc/unwind.inc: In function `_Unwind_RaiseException':/home/tausq/src/gcc-3.2/gcc/unwind.inc:132: error: Attempt to delete prologue/epilogue insn:
(insn 337 336 338 14 (nil) (set (reg:DI 7 %r7)
(mem:DI (plus:DI (reg/f:DI 30 %r30)
(const_int -296 [0xfffffffffffffed8])) [0 S8 A64])) -1 (nil)
(nil))/home/tausq/src/gcc-3.2/gcc/unwind.inc:132: internal compiler error: Internal compiler error in propagate_one_insn, at flow.c:1637 Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [libgcc/./unwind-dw2.o] Error 1
make[2]: Leaving directory `/home/tausq/build/gcc-3.2/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/home/tausq/build/gcc-3.2/gcc'
make: *** [all-gcc] Error 2
The bootstrapping compiler is gcc-3.0.4
any ideas?
randolph
Signature · 3 lines
Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/
Quoted 31 lines
Trying to build CVS head (3.2 20020711) with:
configure --host=hppa-linux --build=hppa-linux --target=hppa64-linux --enable-shared --disable-nls --enable-languages=c
I get:
/home/tausq/build/gcc-3.2/gcc/xgcc-B/home/tausq/build/gcc-3.2/gcc/ -B/home/tausq/opt/gnu/hppa64-linux/bin/ -B/home/tausq/opt/gnu/hppa64-linux/lib/ -isystem/home/tausq/opt/gnu/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/gcc -I/home/tausq/src/gcc-3.2/gcc/. -I/home/tausq/src/gcc-3.2/gcc/config -I/home/tausq/src/gcc-3.2/gcc/../include -DL__gcc_bcmp -c/home/tausq/src/gcc-3.2/gcc/libgcc2.c-olibgcc/./__gcc_bcmp.o/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c: In function `uw_frame_state_for':/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c:906: warning: implicit declaration of function `memset'/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c: In function `uw_install_context_1':/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c:1193: warning: implicit declaration of
function `memcpy'
In file included from/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c:1210:/home/tausq/src/gcc-3.2/gcc/unwind.inc: In function `_Unwind_RaiseException':/home/tausq/src/gcc-3.2/gcc/unwind.inc:132: error: Attempt to delete prologue/epilogue insn:
(insn 337 336 338 14 (nil) (set (reg:DI 7 %r7)(mem:DI (plus:DI (reg/f:DI 30 %r30) (const_int -296 [0xfffffffffffffed8])) [0 S8 A64])) -1 (nil) (nil))
/home/tausq/src/gcc-3.2/gcc/unwind.inc:132: internal compiler error: Internal compiler error inpropagate_one_insn, at flow.c:1637 Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [libgcc/./unwind-dw2.o] Error 1
make[2]: Leaving directory `/home/tausq/build/gcc-3.2/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/home/tausq/build/gcc-3.2/gcc'
make: *** [all-gcc] Error 2
Quoted 1 line
The bootstrapping compiler is gcc-3.0.4
Yes. This is one of the manifestations of the the long call bug in 3.0.4. You need to use "-O2" in STAGE1_CFLAGS to work around it or use gcc 3.1 later as a bootstrap compiler. You will have the same problem if you try to rebuild 3.0.x. There is a silent miscompilation of expr.c if I remember correctly.
Dave
Signature · 2 lines
J. David Anglin [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
Quoted 31 lines
Trying to build CVS head (3.2 20020711) with:
configure --host=hppa-linux --build=hppa-linux --target=hppa64-linux --enable-shared --disable-nls --enable-languages=c
I get:
/home/tausq/build/gcc-3.2/gcc/xgcc-B/home/tausq/build/gcc-3.2/gcc/ -B/home/tausq/opt/gnu/hppa64-linux/bin/ -B/home/tausq/opt/gnu/hppa64-linux/lib/ -isystem/home/tausq/opt/gnu/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/gcc -I/home/tausq/src/gcc-3.2/gcc/. -I/home/tausq/src/gcc-3.2/gcc/config -I/home/tausq/src/gcc-3.2/gcc/../include -DL__gcc_bcmp -c/home/tausq/src/gcc-3.2/gcc/libgcc2.c-olibgcc/./__gcc_bcmp.o/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c: In function `uw_frame_state_for':/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c:906: warning: implicit declaration of function `memset'/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c: In function `uw_install_context_1':/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c:1193: warning: implicit declaration of
function `memcpy'
In file included from/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c:1210:/home/tausq/src/gcc-3.2/gcc/unwind.inc: In function `_Unwind_RaiseException':/home/tausq/src/gcc-3.2/gcc/unwind.inc:132: error: Attempt to delete prologue/epilogue insn:
(insn 337 336 338 14 (nil) (set (reg:DI 7 %r7)(mem:DI (plus:DI (reg/f:DI 30 %r30) (const_int -296 [0xfffffffffffffed8])) [0 S8 A64])) -1 (nil) (nil))
/home/tausq/src/gcc-3.2/gcc/unwind.inc:132: internal compiler error: Internal compiler error inpropagate_one_insn, at flow.c:1637 Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [libgcc/./unwind-dw2.o] Error 1
make[2]: Leaving directory `/home/tausq/build/gcc-3.2/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/home/tausq/build/gcc-3.2/gcc'
make: *** [all-gcc] Error 2
Quoted 1 line
The bootstrapping compiler is gcc-3.0.4
Yes. This is one of the manifestations of the the long call bug in 3.0.4. You need to use "-O2" in STAGE1_CFLAGS to work around it or use gcc 3.1 later as a bootstrap compiler. You will have the same problem if you try to rebuild 3.0.x. There is a silent miscompilation of expr.c if I remember correctly.
Dave
Signature · 2 lines
J. David Anglin [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
Quoted 5 lines
Yes. This is one of the manifestations of the the long call bug in 3.0.4. You need to use "-O2" in
STAGE1_CFLAGSto work around it or use gcc 3.1 later as a bootstrap compiler. You will have the same problem if you try to rebuild 3.0.x. There is a silent miscompilation ofexpr.cif I remember correctly.
with gcc-3.1 as bootstrapping compiler:
$ gcc -v Reading specs from /home/tausq/opt/gnu/lib/gcc-lib/hppa-linux/3.1.1/specs Configured with: /home/tausq/src/gcc-20020708/configure --prefix=/home/tausq/opt/gnu --host=hppa-linux --build=hppa-linux --target=hppa-linux --enable-shared --disable-nls --enable-languages=c Thread model: single gcc version 3.1.1 20020708 (prerelease)
gcc -DIN_GCC -DCROSS_COMPILE -g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -o cc1 \
c-parse.o c-lang.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-format.o c-semantics.o c-objc-common.o libcpp.a main.o libbackend.a ../libiberty/libiberty.a/usr/bin/ld: libbackend.a(expr.o)(.text+0x3f660): cannot reach 000002bc_integer_zerop+0, recompile with -ffunction-sections /usr/bin/ld: libbackend.a(expr.o)(.text+0x3f660): cannot handle R_PARISC_PCREL17F for integer_zerop /usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
i'll do a bit more digging later
randolph
Signature · 3 lines
Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/
Quoted 5 lines
Yes. This is one of the manifestations of the the long call bug in 3.0.4. You need to use "-O2" in
STAGE1_CFLAGSto work around it or use gcc 3.1 later as a bootstrap compiler. You will have the same problem if you try to rebuild 3.0.x. There is a silent miscompilation ofexpr.cif I remember correctly.
with gcc-3.1 as bootstrapping compiler:
$ gcc -v Reading specs from /home/tausq/opt/gnu/lib/gcc-lib/hppa-linux/3.1.1/specs Configured with: /home/tausq/src/gcc-20020708/configure --prefix=/home/tausq/opt/gnu --host=hppa-linux --build=hppa-linux --target=hppa-linux --enable-shared --disable-nls --enable-languages=c Thread model: single gcc version 3.1.1 20020708 (prerelease)
gcc -DIN_GCC -DCROSS_COMPILE -g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -o cc1 \
c-parse.o c-lang.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-format.o c-semantics.o c-objc-common.o libcpp.a main.o libbackend.a ../libiberty/libiberty.a/usr/bin/ld: libbackend.a(expr.o)(.text+0x3f660): cannot reach 000002bc_integer_zerop+0, recompile with -ffunction-sections /usr/bin/ld: libbackend.a(expr.o)(.text+0x3f660): cannot handle R_PARISC_PCREL17F for integer_zerop /usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
i'll do a bit more digging later
randolph
Signature · 3 lines
Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/
Quoted 7 lines
Quoted 5 lines
Yes. This is one of the manifestations of the the long call bug in 3.0.4. You need to use "-O2" in
STAGE1_CFLAGSto work around it or use gcc 3.1 later as a bootstrap compiler. You will have the same problem if you try to rebuild 3.0.x. There is a silent miscompilation ofexpr.cif I remember correctly.with gcc-3.1 as bootstrapping compiler:
Oops, only 3.2 has the long jump fix.
Dave
Signature · 2 lines
J. David Anglin [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
Quoted 7 lines
Quoted 5 lines
Yes. This is one of the manifestations of the the long call bug in 3.0.4. You need to use "-O2" in
STAGE1_CFLAGSto work around it or use gcc 3.1 later as a bootstrap compiler. You will have the same problem if you try to rebuild 3.0.x. There is a silent miscompilation ofexpr.cif I remember correctly.with gcc-3.1 as bootstrapping compiler:
Oops, only 3.2 has the long jump fix.
Dave
Signature · 2 lines
J. David Anglin [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines
/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c: At top level:/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c:56: error: size of array `reg' is too la rge/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c:62: internal compiler error: internal er
ror: Segmentation fault
something basic seems to be broken:
tausq@a500:~/build/gcc-3.2$ cat t.c void *foo[2];
tausq@a500:~/build/gcc-3.2$ /home/tausq/build/gcc-3.2/gcc/xgcc -B/home/tausq/build/gcc-3.2/gcc/ -B/home/tausq/opt/gnu/hppa64-linux/bin/ -B/home/tausq/opt/gnu/hppa64-linux/lib/ -c t.c t.c:1: error: size of array `foo' is too large t.c:1: error: storage size of `foo' isn't known
randolph
Signature · 3 lines
Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/
Quoted 5 lines
/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c: At top level:/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c:56: error: size of array `reg' is too la rge/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c:62: internal compiler error: internal er
ror: Segmentation fault
something basic seems to be broken:
tausq@a500:~/build/gcc-3.2$ cat t.c void *foo[2];
tausq@a500:~/build/gcc-3.2$ /home/tausq/build/gcc-3.2/gcc/xgcc -B/home/tausq/build/gcc-3.2/gcc/ -B/home/tausq/opt/gnu/hppa64-linux/bin/ -B/home/tausq/opt/gnu/hppa64-linux/lib/ -c t.c t.c:1: error: size of array `foo' is too large t.c:1: error: storage size of `foo' isn't known
randolph
Signature · 3 lines
Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/
Quoted 8 lines
In file included from
/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c:1210:/home/tausq/src/gcc-3.2/gcc/unwind.inc: In function `_Unwind_RaiseException':/home/tausq/src/gcc-3.2/gcc/unwind.inc:132: error: Attempt to delete prologue/epilogue insn:
(insn 337 336 338 14 (nil) (set (reg:DI 7 %r7)(mem:DI (plus:DI (reg/f:DI 30 %r30) (const_int -296 [0xfffffffffffffed8])) [0 S8 A64])) -1 (nil) (nil))
/home/tausq/src/gcc-3.2/gcc/unwind.inc:132: internal compiler error: Internal compiler error inpropagate_one_insn, at flow.c:1637
Fixed:
<http://gcc.gnu.org/ml/gcc-patches/2002-07/msg00963.html>.
Dave
Signature · 2 lines
J. David Anglin [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
Quoted 8 lines
In file included from
/home/tausq/src/gcc-3.2/gcc/unwind-dw2.c:1210:/home/tausq/src/gcc-3.2/gcc/unwind.inc: In function `_Unwind_RaiseException':/home/tausq/src/gcc-3.2/gcc/unwind.inc:132: error: Attempt to delete prologue/epilogue insn:
(insn 337 336 338 14 (nil) (set (reg:DI 7 %r7)(mem:DI (plus:DI (reg/f:DI 30 %r30) (const_int -296 [0xfffffffffffffed8])) [0 S8 A64])) -1 (nil) (nil))
/home/tausq/src/gcc-3.2/gcc/unwind.inc:132: internal compiler error: Internal compiler error inpropagate_one_insn, at flow.c:1637
Fixed:
<http://gcc.gnu.org/ml/gcc-patches/2002-07/msg00963.html>.
Dave
Signature · 2 lines
J. David Anglin [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6605)