[LLVMbugs] [Bug 8208] New: llvm-gcc-4.2 compilation failure of darwin-crt3.c (2.8 RC2)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Sep 22 15:59:37 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=8208
Summary: llvm-gcc-4.2 compilation failure of darwin-crt3.c (2.8
RC2)
Product: Build scripts
Version: 2.8
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: release blocker
Priority: P
Component: Makefiles
AssignedTo: unassignedbugs at nondot.org
ReportedBy: dhein at acm.org
CC: llvmbugs at cs.uiuc.edu
On my PowerPC system (OS X 10.4.11, XCode 2.5), llvm-gcc-4.2 version 2.8 rc2
fails the build with this error:
# APPLE LOCAL use -mlongcall for large text support
/Users/davehein/Projects/LLVM/2.8/svn/obj-llvm-gcc/./gcc/xgcc
-B/Users/davehein/Projects/LLVM/2.8/svn/obj-llvm-gcc/./gcc/
-B/Users/davehein/llvm_t/powerpc-apple-darwin8/bin/
-B/Users/davehein/llvm_t/powerpc-apple-darwin8/lib/ -isystem
/Users/davehein/llvm_t/powerpc-apple-darwin8/include -isystem
/Users/davehein/llvm_t/powerpc-apple-darwin8/sys-include -O2 -g -O2 -DIN_GCC
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -I. -I.
-I../../src/llvm-gcc-4.2/rc2/gcc -I../../src/llvm-gcc-4.2/rc2/gcc/.
-I../../src/llvm-gcc-4.2/rc2/gcc/../include
-I../../src/llvm-gcc-4.2/rc2/gcc/../libcpp/include
-I../../src/llvm-gcc-4.2/rc2/gcc/../libdecnumber -I../libdecnumber
-I/Users/davehein/Projects/LLVM/2.8/svn/obj-llvm/include
-I/Users/davehein/Projects/LLVM/2.8/svn/src/llvm/rc2/include
-isysroot/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -mlongcall \
-fno-tree-dominator-opts -mlongcall \
-mlongcall \
-c ../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c -o crt3.o
In file included from ../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c:38:
../../src/llvm-gcc-4.2/rc2/gcc/tsystem.h:90:19: error: stdio.h: No such file or
directory
../../src/llvm-gcc-4.2/rc2/gcc/tsystem.h:93:23: error: sys/types.h: No such
file or directory
../../src/llvm-gcc-4.2/rc2/gcc/tsystem.h:96:19: error: errno.h: No such file or
directory
../../src/llvm-gcc-4.2/rc2/gcc/tsystem.h:103:20: error: string.h: No such file
or directory
../../src/llvm-gcc-4.2/rc2/gcc/tsystem.h:104:20: error: stdlib.h: No such file
or directory
../../src/llvm-gcc-4.2/rc2/gcc/tsystem.h:105:20: error: unistd.h: No such file
or directory
In file included from ../../src/llvm-gcc-4.2/rc2/gcc/tsystem.h:108,
from ../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c:38:
/Users/davehein/Projects/LLVM/2.8/svn/obj-llvm-gcc/./gcc/include/limits.h:15:25:
error: no include path in which to search for limits.h
In file included from ../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c:38:
../../src/llvm-gcc-4.2/rc2/gcc/tsystem.h:111:18: error: time.h: No such file or
directory
../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c:40:19: error: dlfcn.h: No
such file or directory
../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c: In function
'find_atexit_10_3':
../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c:232: warning: implicit
declaration of function 'strcmp'
../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c: In function 'get_globals':
../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c:271: warning: implicit
declaration of function 'calloc'
../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c:271: warning: incompatible
implicit declaration of built-in function 'calloc'
../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c:280: warning: implicit
declaration of function 'dlopen'
../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c:280: error: 'RTLD_NOLOAD'
undeclared (first use in this function)
../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c:280: error: (Each
undeclared identifier is reported only once
../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c:280: error: for each
function it appears in.)
../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c:280: warning: assignment
makes pointer from integer without a cast
../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c:298: warning: implicit
declaration of function 'dlsym'
../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c: In function 'add_routine':
../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c:335: warning: implicit
declaration of function 'malloc'
../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c:335: warning: incompatible
implicit declaration of built-in function 'malloc'
../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c: In function
'run_routines':
../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c:374: warning: implicit
declaration of function 'free'
../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c: In function
'atexit_common':
../../src/llvm-gcc-4.2/rc2/gcc/config/darwin-crt3.c:498: warning: incompatible
implicit declaration of built-in function 'malloc'
make[5]: *** [crt3.o] Error 1
make[4]: *** [extra] Error 2
make[3]: *** [stmp-multilib] Error 2
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [bootstrap] Error 2
These were my config and make statements:
EXTRALANGS=,objc,obj-c++
CFLAGS=--emit-llvm
TRIPLE=powerpc-apple-darwin8
../src/llvm-gcc-4.2/rc2/configure --prefix=/Users/davehein/llvm_t \
--program-prefix=llvm- \
--enable-llvm=/Users/davehein/Projects/LLVM/2.8/svn/obj-llvm \
--enable-languages=c,c++$EXTRALANGS \
--build=$TRIPLE --host=$TRIPLE \
--target=$TRIPLE
make bootstrap LLVM_VERSION_INFO=2.8rc2
Note that llvm 2.8 rc2 built without problems.
I obtained the source via svn using the 2.8 tag.
--
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