When bootstrap the GCC 4.1.0, the following error occurred: ../../gcc-4.1.0/gcc/libgcc2.c:1: warning: -g is only supported when using GAS on this processor, ../../gcc-4.1.0/gcc/libgcc2.c:1: warning: -g option disabled ../../gcc-4.1.0/gcc/libgcc2.c:1056: internal compiler error: in assemble_integer, at varasm.c:2272 Please submit a full bug report, with preprocessed source if appropriate. Command line caused the error: /gexport/home/yu/3rdpkg_build_area/gcc-4.1.0-hpux11/./gcc/xgcc -B/gexport/home/yu/3rdpkg_build_area/gcc-4.1.0-hpux11/./gcc/ -B/devtools/gcc-4.1.0/hppa2.0w-hp-hpux11.00/bin/ -B/devtools/gcc-4.1.0/hppa2.0w-hp-hpux11.00/lib/ -isystem /devtools/gcc-4.1.0/hppa2.0w-hp-hpux11.00/include -isystem /devtools/gcc-4.1.0/hppa2.0w-hp-hpux11.00/sys-include -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc-4.1.0/gcc -I../../gcc-4.1.0/gcc/. -I../../gcc-4.1.0/gcc/../include -I./../intl -I../../gcc-4.1.0/gcc/../libcpp/include -DL_divdi3 -fexceptions -fnon-call-exceptions -c ../../gcc-4.1.0/gcc/libgcc2.c -o libgcc/./_divdi3.o
Created attachment 11126 [details] The output from running the command with "-E" option
*** Bug 26873 has been marked as a duplicate of this bug. ***
This usually means you are configuring with the correct options in that --with-gas is needed if you are using GNU binutils' as. How did you configure and how did you build GCC?
On the HP-UX 11.00 system, I already had a GCC 4.0.2 binaries, downloaded from ftp.thewrittenword.com, installed at /usr/local/bin, which I used to bootstrap GCC 4.1.0. I used the following command to configure GCC: ../gcc-4.1.0/configure --prefix=/devtools/gcc-4.1.0 --enable-languages=c,c++ And "/usr/local/bin" is the first directory in my PATH
So did you do "make" or "make bootstrap"?
I just did a "make"
Can you try "make bootstrap" instead as this sounds like a bug in 4.0.2 and not in 4.1.0.
I tried to build with "make bootstrap" and it failed at the exact same spot: ./xgcc -B./ -B/devtools/gcc-4.1.0/hppa2.0w-hp-hpux11.00/bin/ -isystem /devtools/gcc-4.1.0/hppa2.0w-hp-hpux11.00/include -isystem /devtools/gcc-4.1.0/hppa2.0w-hp-hpux11.00/sys-include -L/gexport/home/yu/3rdpkg_build_area/gcc-4.1.0-hpux11/gcc/../ld -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc-4.1.0/gcc -I../../gcc-4.1.0/gcc/. -I../../gcc-4.1.0/gcc/../include -I./../intl -I../../gcc-4.1.0/gcc/../libcpp/include -DL_divdi3 -fexceptions -fnon-call-exceptions -c ../../gcc-4.1.0/gcc/libgcc2.c -o libgcc/./_divdi3.o ../../gcc-4.1.0/gcc/libgcc2.c:1: warning: -g is only supported when using GAS on this processor, ../../gcc-4.1.0/gcc/libgcc2.c:1: warning: -g option disabled ../../gcc-4.1.0/gcc/libgcc2.c:1056: internal compiler error: in assemble_integer, at varasm.c:2272 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Why did you use the HP assembler? GAS is well tested. The HP assembler is never tested and has serious limitations with anything but C.
For GCC 4.1 we changed the documentation to say that we require (rather than just recommend) using GAS and not the HP assembler so I am going to resolve this as invalid since it is using the HP assembler (based on the -g warnings).
Subject: Re: Internal Compiler Error when bootstrap GCC 4.1.0 with GCC 4.0.2 > ------- Comment #10 from sje at cup dot hp dot com 2006-05-05 22:51 ------- > For GCC 4.1 we changed the documentation to say that we require (rather than > just recommend) using GAS and not the HP assembler so I am going to resolve > this as invalid since it is using the HP assembler (based on the -g warnings). I believe config.gcc should be changed to require the GNU assembler. I'm ok with this in 4.1 and onward. Then, the backend can be updated to remove the options for generating HP style assembler code. Dave
Subject: Bug 26872 Author: sje Date: Tue May 9 20:00:55 2006 New Revision: 113661 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113661 Log: PR bootstrap/26872 * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes. (hppa*64*-*-hpux11*): Ditto. (hppa[12]*-*-hpux11*): Ditto. Modified: trunk/gcc/ChangeLog trunk/gcc/config.gcc
Subject: Bug 26872 Author: sje Date: Tue May 9 20:02:29 2006 New Revision: 113662 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113662 Log: PR bootstrap/26872 * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes. (hppa*64*-*-hpux11*): Ditto. (hppa[12]*-*-hpux11*): Ditto. Modified: branches/gcc-4_1-branch/gcc/ChangeLog branches/gcc-4_1-branch/gcc/config.gcc