salah1979 / iphone-dev

Automatically exported from code.google.com/p/iphone-dev
0 stars 0 forks source link

llvm compile failes with crt1 cputype errors #118

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Followed steps on wiki; everything succeeded until running compile for
llvm, whereupon I got:

gcc -g -O2  -o makedepend \
  makedepend.o libcpp.a ../libiberty/libiberty.a \
  -L/opt/local/lib -lintl -liconv -lc  -L/opt/local/lib -liconv
/usr/bin/ld: warning /opt/local/lib/crt1.o cputype (12, architecture
cputype 12 cpusubtype 6) does not match cputype (7) for specified -arch
flag: i386 (file not loaded)
/usr/bin/ld: Undefined symbols:
_environ
collect2: ld returned 1 exit status
make[1]: *** [makedepend] Error 1
make: *** [all-libcpp] Error 2

This is on OSX 10.4, i386.

Original issue reported on code.google.com by anj...@gmail.com on 6 Feb 2008 at 2:34

GoogleCodeExporter commented 8 years ago
I think CPU type 12 is ARM (iPhone), and CPU type 7 is your Intel 386. So it 
looks like you are trying to link in an 
iPhone library to an Intel 386 project. 

Original comment by bbr...@gmail.com on 6 Jul 2009 at 8:24