target/3502: gcc-3.0 fails to compile on Solaris 8 x86

sum@geekhouse.org sum@geekhouse.org
Sun Jul 1 00:06:00 GMT 2001


>Number:         3502
>Category:       target
>Synopsis:       gcc-3.0 fails to compile on Solaris 8 x86
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 01 00:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Sum Wu
>Release:        gcc-3.0
>Organization:
>Environment:
Solaris 8 x86 SunOS 5.8 Generic 108529-08 March 2001
AMD K6 II 500mHz, Asus P5A 
>Description:
gcc-3.0 fails to compile on Solaris 8 X86. I am trying 
gcc-3.0 because gcc-=2.95.3 and 2.95.2 fails to compile
static binary on Solaris 8 x86. The compile seems to stop 
at the begining of the stage1 of the compilation. I am using
gcc-2.95.3 to do the compilation. The error is listed below:

./xgcc -B./ -B/opt/gcc300/i386-pc-solaris2.8/bin/ -isystem /opt/gcc300/i386-pc-solaris2.8/include -O2   -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -fPIC -g1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include -fexceptions -c ../../gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
../../gcc/unwind-dw2.c: In function `extract_cie_info':
../../gcc/unwind-dw2.c:219: warning: implicit declaration of function `strlen'
../../gcc/unwind-dw2.c: In function `execute_stack_op':
../../gcc/unwind-dw2.c:300: warning: `result' might be used uninitialized in this function
../../gcc/unwind-dw2.c: In function `execute_cfa_program':
../../gcc/unwind-dw2.c:775: warning: implicit declaration of function `alloca'
../../gcc/unwind-dw2.c: In function `uw_frame_state_for':
../../gcc/unwind-dw2.c:886: warning: implicit declaration of function `memset'
../../gcc/unwind-dw2.c: In function `uw_install_context_1':
../../gcc/unwind-dw2.c:1088: warning: missing braces around initializer
../../gcc/unwind-dw2.c:1088: warning: (near initialization for `once_regsizes.__pthread_once_pad')
../../gcc/unwind-dw2.c:1103: warning: implicit declaration of function `memcpy'
Assembler: unwind-dw2.c
        "/var/tmp/ccXdJFLi.s", line 4264 : Illegal subtraction
        "/var/tmp/ccXdJFLi.s", line 4287 : Illegal subtraction
        "/var/tmp/ccXdJFLi.s", line 4318 : Illegal subtraction
        "/var/tmp/ccXdJFLi.s", line 4345 : Illegal subtraction
        "/var/tmp/ccXdJFLi.s", line 4382 : Illegal subtraction
        "/var/tmp/ccXdJFLi.s", line 4425 : Illegal subtraction
        "/var/tmp/ccXdJFLi.s", line 4468 : Illegal subtraction
        "/var/tmp/ccXdJFLi.s", line 4507 : Illegal subtraction
        "/var/tmp/ccXdJFLi.s", line 4542 : Illegal subtraction
        "/var/tmp/ccXdJFLi.s", line 4571 : Illegal subtraction
        "/var/tmp/ccXdJFLi.s", line 4606 : Illegal subtraction
        "/var/tmp/ccXdJFLi.s", line 4637 : Illegal subtraction
        "/var/tmp/ccXdJFLi.s", line 4680 : Illegal subtraction
        "/var/tmp/ccXdJFLi.s", line 4723 : Illegal subtraction
        "/var/tmp/ccXdJFLi.s", line 4760 : Illegal subtraction
        "/var/tmp/ccXdJFLi.s", line 4795 : Illegal subtraction
        "/var/tmp/ccXdJFLi.s", line 4834 : Illegal subtraction
gmake[3]: *** [libgcc/./unwind-dw2.o] Error 1
gmake[3]: Leaving directory `/tmp/root/gcc-3.0/objdir/gcc'
gmake[2]: *** [libgcc.a] Error 2
gmake[2]: Leaving directory `/tmp/root/gcc-3.0/objdir/gcc'
gmake[1]: *** [stage1_build] Error 2
gmake[1]: Leaving directory `/tmp/root/gcc-3.0/objdir/gcc'
gmake: *** [bootstrap] Error 2


Please help :)~~
>How-To-Repeat:
simply do a "configure and gmake bootstrap" will give you 
the above error. I have tested that on two Solaris 8 x86 
systems. One on AMD K6 II 500mHz, and one on Pentium III 
550mHz. Both produces the same errors.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list