[LLVMdev] llvm-gcc fails to build libgcc when built with itself

Thorsten Glaser tg at mirbsd.de
Wed Nov 12 13:31:25 PST 2008


Duncan Sands dixit:

>Can you bootstrap llvm-gcc (configure with --enable-bootstrap)?

Nope, probably because it uses the host C++ compiler instead of the
one built in stage1 during stage2:

/usr/ports/lang/llvm-gcc/w-llvm-gcc4.2-58935-1/llvm-gcc4.2/host-i386-ecce-mirbsd10/prev-gcc/xgcc -B/usr/ports/lang/llvm-gcc/w-llvm-gcc4.2-58935-1/llvm-gcc4.2/host-i386-ecce-mirbsd10/prev-gcc/ -B/usr/mpkg/i386-ecce-mirbsd10/bin/ -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute    -DHAVE_CONFIG_H -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include  -I../.././gcc/../libdecnumber -I../libdecnumber -I/usr/mpkg/include -I/usr/mpkg/include -DENABLE_LLVM -I/usr/mpkg/include  -DNDEBUG  -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DLLVM_VERSION_INFO='"SVN r58935-MirPorts-1"'   ../.././gcc/dummy-checksum.c -o dummy-checksum.o
c++ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wno-variadic-macros -Wmissing-format-attribute -DHAVE_CONFIG_H -Wno-unused -DTARGET_NAME=\"i386-ecce-mirbsd10\" -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include  -I../.././gcc/../libdecnumber -I../libdecnumber -I/usr/mpkg/include -I/usr/mpkg/include -DENABLE_LLVM -I/usr/mpkg/include  -DNDEBUG  -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DLLVM_VERSION_INFO='"SVN r58935-MirPorts-1"'   -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include  -I../.././gcc/../libdecnumber -I../libdecnumber -I/usr/mpkg/include -I/usr/mpkg/include ../.././gcc/llvm-main.cpp -o llvm-main.o
cc1plus: error: unrecognized command line option "-Wno-variadic-macros"
gmake[3]: *** [llvm-main.o] Error 1
gmake[3]: Leaving directory `/usr/ports/lang/llvm-gcc/w-llvm-gcc4.2-58935-1/llvm-gcc4.2/host-i386-ecce-mirbsd10/gcc'
gmake[2]: *** [all-stage2-gcc] Error 2
gmake[2]: Leaving directory `/usr/ports/lang/llvm-gcc/w-llvm-gcc4.2-58935-1/llvm-gcc4.2'
gmake[1]: *** [stage2-bubble] Error 2
gmake[1]: Leaving directory `/usr/ports/lang/llvm-gcc/w-llvm-gcc4.2-58935-1/llvm-gcc4.2'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/lang/llvm-gcc (line 2263 of /usr/ports/infrastructure/mk/bsd.port.mk).

bye,
//mirabilos
-- 
Sometimes they [people] care too much: pretty printers [and syntax highligh-
ting, d.A.] mechanically produce pretty output that accentuates irrelevant
detail in the program, which is as sensible as putting all the prepositions
in English text in bold font.	-- Rob Pike in "Notes on Programming in C"




More information about the llvm-dev mailing list