[Bug bootstrap/46037] New: --enable-stage1-languages=c,lto --enable-languages=c,lto --with-build-config=bootstrap-lto fails on darwin

howarth at nitro dot med.uc.edu gcc-bugzilla@gcc.gnu.org
Fri Oct 15 14:36:00 GMT 2010


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

           Summary: --enable-stage1-languages=c,lto
                    --enable-languages=c,lto
                    --with-build-config=bootstrap-lto fails on darwin
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: howarth@nitro.med.uc.edu


Bootstrapping with...

../gcc/configure --prefix=/Users/howarth/dist --with-gmp=/sw --with-mpc=/sw
--with-libiconv-prefix=/sw --with-system-zlib --x-includes=/usr/X11R6/include
--x-libraries=/usr/X11R6/lib --enable-stage1-languages=c,lto
--enable-languages=c,lto --with-build-config=bootstrap-lto

fails on x86_64-apple-darwin10 with the error...

Configuring stage 2 in ./intl
Configuring stage 2 in ./libiberty
Configuring stage 2 in ./libdecnumber
make[4]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all'.
configure: creating cache ./config.cache
configure: creating cache ./config.cache
configure: creating cache ./config.cache
checking whether make sets $(MAKE)... checking whether make sets $(MAKE)...
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo --split-size=5000000 --split-size=5000000
checking for perl... perl
yes
yes
checking for a BSD-compatible install... checking for
x86_64-apple-darwin10.5.0-gcc... /usr/bin/install -c
 /Users/howarth/darwin_objdir/./prev-gcc/xgcc
-B/Users/howarth/darwin_objdir/./prev-gcc/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/lib/ -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/include -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/sys-include   
checking whether NLS is requested... yes
checking for msgfmt... checking build system type... /sw/bin/msgfmt
checking for gmsgfmt... /sw/bin/msgfmt
checking for xgettext... x86_64-apple-darwin10.5.0
checking host system type... /sw/bin/xgettext
checking for msgmerge... checking for C compiler default output file name...
x86_64-apple-darwin10.5.0
checking for x86_64-apple-darwin10.5.0-ar... ar
/sw/bin/msgmerge
checking for x86_64-apple-darwin10.5.0-ranlib... ranlib
checking for x86_64-apple-darwin10.5.0-gcc... 
/Users/howarth/darwin_objdir/./prev-gcc/xgcc
-B/Users/howarth/darwin_objdir/./prev-gcc/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/lib/ -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/include -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/sys-include   
checking for x86_64-apple-darwin10.5.0-gcc... 
/Users/howarth/darwin_objdir/./prev-gcc/xgcc
-B/Users/howarth/darwin_objdir/./prev-gcc/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/lib/ -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/include -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/sys-include   

configure: error: in `/Users/howarth/darwin_objdir/libdecnumber':
configure: error: C compiler cannot create executables
See `config.log' for more details.
checking for C compiler default output file name... checking for suffix of
object files... make[2]: *** [configure-stage2-libdecnumber] Error 77
make[2]: *** Waiting for unfinished jobs....

configure: error: in `/Users/howarth/darwin_objdir/intl':
configure: error: C compiler cannot create executables
See `config.log' for more details.
configure: error: in `/Users/howarth/darwin_objdir/libiberty':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage2-intl] Error 77
make[2]: *** [configure-stage2-libiberty] Error 1
make[1]: *** [stage2-bubble] Error 2
make: *** [all] Error 2

Removing "-fuse-linker-plugin" from config/bootstrap-lto.mk changes the failure
to...

checking whether fwrite_unlocked is declared...
/Users/howarth/darwin_objdir/./prev-gcc/xgcc
-B/Users/howarth/darwin_objdir/./prev-gcc/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/lib/ -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/include -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/sys-include    
-I../../gcc/libcpp -I. -I../../gcc/libcpp/../include -I../../gcc/libcpp/include
-I/sw/include -g -O2 -fwhopr=jobserver -frandom-seed=1 -W -Wall -Wwrite-strings
-Wmissing-format-attribute -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wc++-compat -pedantic -Wno-long-long -Werror
-I../../gcc/libcpp -I. -I../../gcc/libcpp/../include -I../../gcc/libcpp/include
-I/sw/include -c -o mkdeps.o -MT mkdeps.o -MMD -MP -MF .deps/mkdeps.Tpo
../../gcc/libcpp/mkdeps.c
no
checking whether getchar_unlocked is declared... yes
checking whether getc_unlocked is declared... yes
checking whether putchar_unlocked is declared... ../../gcc/libcpp/lex.c:2838:1:
sorry, unimplemented: gimple bytecode streams do not support the optimization
attribute
yes
checking whether putc_unlocked is declared... make[3]: *** [lex.o] Error 1
make[3]: *** Waiting for unfinished jobs....
yes
checking whether getrlimit is declared... yes
checking whether setrlimit is declared... yes
checking whether getrusage is declared... yes
checking whether ldgetname is declared... no
checking whether times is declared... yes
checking whether sigaltstack is declared... yes
checking for struct tms... yes
checking for clock_t... yes
checking for .preinit_array/.init_array/.fini_array support... no
checking if mkdir takes one argument... no
Using `../../gcc/gcc/config/i386/i386.c' for machine-specific logic.
Using `../../gcc/gcc/config/i386/i386.md' as machine description file.
Using the following target machine macro files:
    ../../gcc/gcc/config/vxworks-dummy.h
    ../../gcc/gcc/config/i386/biarch64.h
    ../../gcc/gcc/config/i386/i386.h
    ../../gcc/gcc/config/darwin.h
    ../../gcc/gcc/config/darwin9.h
    ../../gcc/gcc/config/darwin10.h
    ../../gcc/gcc/config/i386/darwin.h
    ../../gcc/gcc/config/i386/darwin64.h
Using host-darwin.o host-i386-darwin.o for host machine hooks.
checking for __cxa_atexit... yes
checking whether NLS is requested... yes
checking for catalogs to be installed...  be da de el es fi fr id ja nl ru sr
sv tr vi zh_CN zh_TW
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by  /Users/howarth/darwin_objdir/./prev-gcc/xgcc
-B/Users/howarth/darwin_objdir/./prev-gcc/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/lib/ -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/include -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/sys-include   ...
/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU
ld... no
checking for BSD- or MS-compatible name lister (nm)... nm
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to reload
object files... -r
checking for x86_64-apple-darwin10.5.0-objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-apple-darwin10.5.0-ar... (cached) ar
checking for x86_64-apple-darwin10.5.0-strip... no
checking for strip... strip
checking for x86_64-apple-darwin10.5.0-ranlib... (cached) ranlib
checking command to parse nm output from 
/Users/howarth/darwin_objdir/./prev-gcc/xgcc
-B/Users/howarth/darwin_objdir/./prev-gcc/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/lib/ -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/include -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/sys-include    object... ok
make[2]: *** [all-stage2-libcpp] Error 2
checking for x86_64-apple-darwin10.5.0-dsymutil... make[2]: *** Waiting for
unfinished jobs....
no
checking for dsymutil... dsymutil
checking for x86_64-apple-darwin10.5.0-nmedit... no
checking for nmedit... nmedit
checking for x86_64-apple-darwin10.5.0-lipo... no
checking for lipo... lipo
checking for x86_64-apple-darwin10.5.0-otool... no
checking for otool... otool
checking for x86_64-apple-darwin10.5.0-otool64... no
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if  /Users/howarth/darwin_objdir/./prev-gcc/xgcc
-B/Users/howarth/darwin_objdir/./prev-gcc/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/lib/ -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/include -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/sys-include    supports -fno-rtti
-fno-exceptions... no
checking for  /Users/howarth/darwin_objdir/./prev-gcc/xgcc
-B/Users/howarth/darwin_objdir/./prev-gcc/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/lib/ -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/include -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/sys-include    option to produce
PIC... -fno-common -DPIC
checking if  /Users/howarth/darwin_objdir/./prev-gcc/xgcc
-B/Users/howarth/darwin_objdir/./prev-gcc/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/lib/ -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/include -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/sys-include    PIC flag
-fno-common -DPIC works... yes
checking if  /Users/howarth/darwin_objdir/./prev-gcc/xgcc
-B/Users/howarth/darwin_objdir/./prev-gcc/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/lib/ -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/include -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/sys-include    static flag
-static works... no
checking if  /Users/howarth/darwin_objdir/./prev-gcc/xgcc
-B/Users/howarth/darwin_objdir/./prev-gcc/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/lib/ -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/include -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/sys-include    supports -c -o
file.o... yes
checking if  /Users/howarth/darwin_objdir/./prev-gcc/xgcc
-B/Users/howarth/darwin_objdir/./prev-gcc/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/lib/ -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/include -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/sys-include    supports -c -o
file.o... (cached) yes
checking whether the  /Users/howarth/darwin_objdir/./prev-gcc/xgcc
-B/Users/howarth/darwin_objdir/./prev-gcc/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/
-B/Users/howarth/dist/x86_64-apple-darwin10.5.0/lib/ -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/include -isystem
/Users/howarth/dist/x86_64-apple-darwin10.5.0/sys-include    linker
(/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries...
yes
checking dynamic linker characteristics... darwin10.5.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU
ld... no
checking whether the g++ linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld)
supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld)
supports shared libraries... yes
checking dynamic linker characteristics... darwin10.5.0 dyld
checking how to hardcode library paths into programs... immediate
checking for as... /usr/bin/as
checking what assembler to use... /usr/bin/as
checking whether we are using gold... no
checking what linker to use... /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking for nm... /usr/bin/nm
checking what nm to use... /usr/bin/nm
checking for objdump... no
checking what objdump to use... not found
checking for readelf... no
checking what readelf to use... not found
checking assembler flags...  
checking assembler for .balign and .p2align... yes
checking assembler for .p2align with maximum skip... yes
checking assembler for .literal16... yes
checking assembler for working .subsection -1... no
checking assembler for .weak... no
checking assembler for .weakref... no
checking assembler for .nsubspa comdat... no
checking assembler for .hidden... no
checking linker for .hidden support... no
checking linker read-only and read-write section mixing... unknown
checking assembler for .sleb128 and .uleb128... no
checking assembler for cfi directives... no
checking assembler for cfi personality directive... no
checking assembler for cfi sections directive... no
checking assembler for eh_frame optimization... no
checking assembler for section merging support... no
checking assembler for section merging support... (cached) no
checking assembler for COMDAT group support... no
checking assembler for COMDAT group support... no
checking assembler for line table discriminator support... no
checking assembler for thread-local storage support... no
checking linker -Bstatic/-Bdynamic option... no
checking assembler for filds and fists mnemonics... no
checking assembler for fildq and fistpq mnemonics... no
checking assembler for cmov syntax... no
checking assembler for ffreep mnemonic... yes
checking assembler for .quad directive... yes
checking assembler for sahf mnemonic... yes
checking assembler for swap suffix... no
checking assembler for different section symbol subtraction... no
checking assembler for GOTOFF in data... no
checking assembler for rep and lock prefix... yes
checking assembler for dwarf2 debug_line support... no
checking assembler for buggy dwarf2 .file directive... no
checking assembler for --gdwarf2 option... yes
checking assembler for --gstabs option... yes
checking assembler for --debug-prefix-map option... no
checking assembler for .lcomm with alignment... yes
checking assembler for gnu_unique_object... no
checking assembler for tolerance to line number 0... yes
checking linker PT_GNU_EH_FRAME support... no
checking linker position independent executable support... no
checking linker EH-compatible garbage collection of sections... no
checking linker --as-needed support... no
checking linker --build-id support... no
checking linker *_sol2 emulation support... no
checking linker --sysroot support... no
checking __stack_chk_fail in target C library... checking for
__stack_chk_fail... yes
yes
Using ggc-page for garbage collection.
checking whether to enable maintainer-specific portions of Makefiles... no
Links are now set up to build a native compiler for x86_64-apple-darwin10.5.0.
checking for exported symbols... yes
checking for library containing dlopen... none required
checking for -fPIC -shared... yes
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating as
config.status: creating collect-ld
config.status: creating nm
config.status: creating Makefile
config.status: creating gccbug
config.status: creating ada/gcc-interface/Makefile
config.status: creating ada/Makefile
config.status: creating auto-host.h
config.status: executing default commands
make[1]: *** [stage2-bubble] Error 2
make: *** [all] Error 2



More information about the Gcc-bugs mailing list