Compiling gcc-4.2.1-RC-20070712 with Sun Studio 12 on Solaris Express
Community Edition b66:

goanna% CC -V
CC: Sun C++ 5.9 SunOS_i386 2007/05/03
goanna%

With the environment variables:

CXXCPP=CC -E -Xs
CPP=cc -E -Xs
LD=/opt/jdsbld/bin/ld-wrapper
CXX64=/opt/SunStudio12/SUNWspro/bin/CC
CXX32=/opt/SunStudio12/SUNWspro/bin/CC
CXX=/opt/SunStudio12/SUNWspro/bin/CC
CC64=/opt/SunStudio12/SUNWspro/bin/cc
CC32=/opt/SunStudio12/SUNWspro/bin/cc
CC=/opt/SunStudio12/SUNWspro/bin/cc
CCDIR=/opt/SunStudio12/SUNWspro/bin

Configured like:

goanna% pwd
/h/goanna/2/ts/gcc/gcc-4.2.1-RC-20070712
goanna% mkdir objdir
goanna% cd objdir
goanna% ../configure --prefix=/h/goanna/1/s_5.11/gcc --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --enable-shared
...

The make fails with:

/opt/SunStudio12/SUNWspro/bin/cc -c   -g -DIN_GCC     -DHAVE_CONFIG_H -I. -I.
-I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl
-I../../gcc/../libcpp/include  -I../../gcc/../libdecnumber -I../libdecnumber   
-I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl
-I../../gcc/../libcpp/include  -I../../gcc/../libdecnumber -I../libdecnumber
../../gcc/config/i386/driver-i386.c
"../../gcc/config/i386/driver-i386.c", line 96: warning: parameter in inline
asm statement unused: %0
"../../gcc/config/i386/driver-i386.c", line 96: warning: parameter in inline
asm statement unused: %2
"../../gcc/config/i386/driver-i386.c", line 96: warning: parameter in inline
asm statement unused: %3
"../../gcc/config/i386/driver-i386.c", line 96: warning: parameter in inline
asm statement unused: %4
"../../gcc/config/i386/driver-i386.c", line 103: warning: parameter in inline
asm statement unused: %0
"../../gcc/config/i386/driver-i386.c", line 103: warning: parameter in inline
asm statement unused: %2
"../../gcc/config/i386/driver-i386.c", line 103: warning: parameter in inline
asm statement unused: %3
"../../gcc/config/i386/driver-i386.c", line 103: warning: parameter in inline
asm statement unused: %4
"../../gcc/config/i386/driver-i386.c", line 113: warning: parameter in inline
asm statement unused: %0
"../../gcc/config/i386/driver-i386.c", line 113: warning: parameter in inline
asm statement unused: %2
"../../gcc/config/i386/driver-i386.c", line 113: warning: parameter in inline
asm statement unused: %3
"../../gcc/config/i386/driver-i386.c", line 113: warning: parameter in inline
asm statement unused: %4
"../../gcc/config/i386/driver-i386.c", line 117: warning: parameter in inline
asm statement unused: %0
"../../gcc/config/i386/driver-i386.c", line 117: warning: parameter in inline
asm statement unused: %2
"../../gcc/config/i386/driver-i386.c", line 117: warning: parameter in inline
asm statement unused: %3
"../../gcc/config/i386/driver-i386.c", line 117: warning: parameter in inline
asm statement unused: %4
"../../gcc/config/i386/driver-i386.c", line 118: warning: integer overflow
detected: op "<<"
/opt/SunStudio12/SUNWspro/bin/cc   -g -DIN_GCC     -DHAVE_CONFIG_H  -o xgcc
gcc.o opts-common.o gcc-options.o gccspec.o \
  intl.o prefix.o version.o driver-i386.o  ../libcpp/libcpp.a
./../intl/libintl.a  ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
Undefined                       first referenced
 symbol                             in file
addl                                driver-i386.o
ld: fatal: Symbol referencing errors. No output written to xgcc
make[3]: *** [xgcc] Error 1
make[3]: Leaving directory
`/h/goanna/2/ts/gcc/gcc-4.2.1-RC-20070712/objdir/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/h/goanna/2/ts/gcc/gcc-4.2.1-RC-20070712/objdir'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/h/goanna/2/ts/gcc/gcc-4.2.1-RC-20070712/objdir'
make: *** [all] Error 2

Compilation exited abnormally with code 2 at Mon Jul 16 23:17:21


-- 
           Summary: Sun Studio 12 Undefined symbol addl
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: inline-asm
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: markwright at internode dot on dot net
 GCC build triplet: i386-pc-solaris2.11
  GCC host triplet: i386-pc-solaris2.11
GCC target triplet: i386-pc-solaris2.11


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32787

Reply via email to