[LLVMbugs] [Bug 8198] New: llvm-gcc42 fails to compile gcc/libgcov.c
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Sep 21 20:27:43 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=8198
Summary: llvm-gcc42 fails to compile gcc/libgcov.c
Product: Build scripts
Version: 2.7
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Makefiles
AssignedTo: unassignedbugs at nondot.org
ReportedBy: dhein at acm.org
CC: llvmbugs at cs.uiuc.edu
I get this error trying to build llvm-gcc on my PPC system (XCode 2.5, OS X
10.4.11, G4 processor).
anlib: file: ./libgcc.a(_floatundixf.o) has no symbols
ranlib: file: ./libgcc.a(ppc64-fp.o) has no symbols
ranlib: file: ./libgcc.a(darwin-64.o) has no symbols
/Users/davehein/Projects/LLVM/2.7/obj-gcc/./gcc/xgcc
-B/Users/davehein/Projects/LLVM/2.7/obj-gcc/./gcc/
-B/Users/davehein/local_t/powerpc-apple-darwin8/bin/
-B/Users/davehein/local_t/powerpc-apple-darwin8/lib/ -isystem
/Users/davehein/local_t/powerpc-apple-darwin8/include -isystem
/Users/davehein/local_t/powerpc-apple-darwin8/sys-include
-mmacosx-version-min=10.4 -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem
./include -Wa,-force_cpusubtype_ALL -pipe -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../src/llvm-gcc-4.2-2.7.source/gcc
-I../../src/llvm-gcc-4.2-2.7.source/gcc/.
-I../../src/llvm-gcc-4.2-2.7.source/gcc/../include
-I../../src/llvm-gcc-4.2-2.7.source/gcc/../libcpp/include
-I../../src/llvm-gcc-4.2-2.7.source/gcc/../libdecnumber -I../libdecnumber
-I/Users/davehein/Projects/LLVM/2.7/obj/include
-I/Users/davehein/Projects/LLVM/2.7/src/llvm-2.7/include -DL_gcov -c
../../src/llvm-gcc-4.2-2.7.source/gcc/libgcov.c -o libgcc/./_gcov.o
{standard input}:3837:Rest of line ignored. 1st junk character valued 44 (,).
make[4]: *** [libgcc/./_gcov.o] Error 1
make[3]: *** [stmp-multilib] Error 2
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [bootstrap] Error 2
I can get xgcc to succeed by adding --emit-llvm to the CFLAGS_FOR_TARGET (which
I have to do by hand editing the generated Makefile), but then the subsequent
library build complains because the object files produced are not 'Mach-O'
files.
Before the make, I used the following configure command:
EXTRALANGS=,objc,obj-c++
TRIPLE=powerpc-apple-darwin8
../src/llvm-gcc-4.2-2.7.source/configure --prefix=/Users/davehein/local_t \
--program-prefix=llvm- \
--enable-llvm=/Users/davehein/Projects/LLVM/2.7/obj \
--enable-languages=c,c++$EXTRALANGS \
--build=$TRIPLE --host=$TRIPLE \
--target=$TRIPLE
Note also that the source is the distribution ... not the latest pull from
subversion.
Please help! I'd really like to get llvm-gcc working.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list