[LLVMdev] llvm-gcc fails to build libgcc when built with itself
Thorsten Glaser
tg at mirbsd.de
Tue Nov 11 15:02:37 PST 2008
Hello,
I’m trying the following thing:
• build and install llvm with mgcc (system compiler)
• build and install llvm-gcc with mgcc
• build llvm with llvm-gcc
• deinstall llvm(old), install llvm(new)
• build llvm-gcc with llvm-gcc(old)
• deinstall llvm-gcc(old), install llvm-gcc(new)
However, I have the problem that the llvm-gcc(new) does not work: after
it is compiled, it tries to build libgcc2 with itself (llvm-gcc(new)),
which fails on a few files:
/usr/ports/lang/llvm-gcc/w-llvm-gcc4.2-58935-1/llvm-gcc4.2/host-i386-ecce-mirbsd10/gcc/xgcc -B/usr/ports/lang/llvm-gcc/w-llvm-gcc4.2-58935-1/llvm-gcc4.2/host-i386-ecce-mirbsd10/gcc/ -B/usr/mpkg/i386-ecce-mirbsd10/bin/ -B/usr/mpkg/i386-ecce-mirbsd10/lib/ -isystem /usr/mpkg/i386-ecce-mirbsd10/include -isystem /usr/mpkg/i386-ecce-mirbsd10/sys-include -O2 -O2 -O2 -pipe -std=gnu99 -O1 -Wformat -fwrapv -fno-strict-aliasing -march=i486 -mtune=pentium-mmx -mpreferred-stack-boundary=2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -pthread -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -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 -DL_powisf2 -c ../.././gcc/libgcc2.c -o libgcc/./_powisf2.o
This command seems to hang spinning or something:
PID USERNAME PRI NICE SIZE RES STATE WAIT TIME CPU COMMAND
16398 tg 64 0 10M 6948K run - 14:36 93.60% cc1
Appending “-emit-llvm” to the compile command does not help.
Preprocessed output (-E -dD) is attached.
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"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: _powisf2.i.gz
Type: application/octet-stream
Size: 36629 bytes
Desc:
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081111/b308781d/attachment.obj>
More information about the llvm-dev
mailing list