Due to the bootstrap problem described in PR bootstrap/18224, I tried to
bootstrap mainline with Sun cc instead (using Sun Studio 8 cc aka cc 5.5),
configuring with CC='/opt/SUNWspro-8.0/bin/cc -xc99=%none -xildoff'.

The bootstrap failed in stage1, though:

/opt/SUNWspro-8.0/bin/cc -xc99=%none -xildoff   -g -DENABLE_CHECKING 
-DENABLE_ASSERT_CHECKING -DIN_GCC     -DHAVE_CONFIG_H -DGENERATOR_FILE  -o 
build/genflags \
        build/genflags.o build/rtl.o build/read-rtl.o build/ggc-none.o 
build/min-insn-modes.o build/gensupport.o build/insn-conditions.o build/print-rtl.o \
        build/errors.o ../build-sparc-sun-solaris2.10/libiberty/libiberty.a
Undefined                       first referenced
 symbol                             in file
bitmap_zero_bits                    build/insn-conditions.o
vec_gc_p_reserve                    build/insn-conditions.o
vec_gc_free                         build/insn-conditions.o
ld: fatal: Symbol referencing errors. No output written to build/genflags

This happens because with cc, auto-host.h has

auto-host.h:#define inline 

so e.g. 

static inline unsigned
bmp_iter_and_not_next_1 (bitmap_iterator *bi)

from bitmap.h becomes a static function with a reference to
bitmap_zero_bits.  To handle this, the build commands need to be linked
with bitmap.o, vec.o and ggc-none.o needs a definition of ggc-free.  A
patch for this is in progress.

Environment:
System: SunOS padouk 5.10 s10_55 sun4u sparc SUNW,Sun-Fire-880
Architecture: sun4

        
host: sparc-sun-solaris2.10
build: sparc-sun-solaris2.10
target: sparc-sun-solaris2.10
configured with: /vol/gnu/src/gcc/gcc-dist/configure --prefix=/vol/gcc 
--with-local-prefix=/vol/gcc --disable-nls --disable-libmudflap

How-To-Repeat:
Bootstrap with a compiler not supporting inline.

-- 
           Summary: Bootstrap failure on Solaris 10/SPARC with Sun cc
           Product: gcc
           Version: 0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ro at techfak dot uni-bielefeld dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-sun-solaris2.10
  GCC host triplet: sparc-sun-solaris2.10
GCC target triplet: sparc-sun-solaris2.10


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

Reply via email to