Bug 26872 - Internal Compiler Error when bootstrap GCC 4.1.0 with GCC 4.0.2
Summary: Internal Compiler Error when bootstrap GCC 4.1.0 with GCC 4.0.2
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.1.0
: P3 major
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 26873 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-26 04:12 UTC by Jacky Yu
Modified: 2006-05-05 22:51 UTC (History)
3 users (show)

See Also:
Host: hppa2.0w-hp-hpux11.00
Target: hppa2.0w-hp-hpux11.00
Build: hppa2.0w-hp-hpux11.00
Known to work:
Known to fail:
Last reconfirmed:


Attachments
The output from running the command with "-E" option (15.70 KB, text/plain)
2006-03-26 04:16 UTC, Jacky Yu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jacky Yu 2006-03-26 04:12:50 UTC
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
Comment 1 Jacky Yu 2006-03-26 04:16:34 UTC
Created attachment 11126 [details]
The output from running the command with "-E" option
Comment 2 Andrew Pinski 2006-03-26 16:19:10 UTC
*** Bug 26873 has been marked as a duplicate of this bug. ***
Comment 3 Andrew Pinski 2006-03-26 16:24:34 UTC
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?
Comment 4 Jacky Yu 2006-03-26 17:32:09 UTC
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
Comment 5 Andrew Pinski 2006-03-26 17:40:31 UTC
So did you do "make" or "make bootstrap"?
Comment 6 Jacky Yu 2006-03-26 21:52:42 UTC
I just did a "make"
Comment 7 Andrew Pinski 2006-03-26 23:47:16 UTC
Can you try "make bootstrap" instead as this sounds like a bug in 4.0.2 and not in 4.1.0.
Comment 8 Jacky Yu 2006-03-27 02:13:47 UTC
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.
Comment 9 John David Anglin 2006-04-09 21:10:55 UTC
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.
 
Comment 10 Steve Ellcey 2006-05-05 22:51:51 UTC
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).
Comment 11 dave 2006-05-05 23:08:49 UTC
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
Comment 12 Steve Ellcey 2006-05-09 20:02:17 UTC
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

Comment 13 Steve Ellcey 2006-05-09 20:03:47 UTC
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