prashanthspatil / iphone-dev

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

build error: "/usr/local/bin/arm-apple-darwin-ld: can't locate file for: -lc" #99

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
During the final "make LLVM_VERSION_INFO=2.0-svn-iphone-dev-0.3-svn" stage
I get the following error:

/Users/pederson/Desktop/iPod/toolchain/iphone-dev/build/llvm-gcc-4.0-ipod/gcc/xg
cc
-B/Users/pederson/Desktop/iPod/toolchain/iphone-dev/build/llvm-gcc-4.0-ipod/gcc/
-B/usr/local/arm-apple-darwin/bin/ -B/usr/local/arm-apple-darwin/lib/
-isystem /usr/local/arm-apple-darwin/include -isystem
/usr/local/arm-apple-darwin/sys-include -O2  -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -fPIC -pipe -g
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -dynamiclib
-nodefaultlibs -install_name /usr/local/arm-apple-darwin/lib/libgcc_s`if
test . = ppc64 ; then echo _. ; fi`.1.dylib -single_module -o
./libgcc_s.1.dylib.tmp -Wl,-exported_symbols_list,libgcc/./libgcc.map
-compatibility_version 1 -current_version 1.0  libgcc/./_udivsi3_s.o
libgcc/./_divsi3_s.o libgcc/./_umodsi3_s.o libgcc/./_modsi3_s.o
libgcc/./_dvmd_tls_s.o libgcc/./_muldi3_s.o libgcc/./_negdi2_s.o
libgcc/./_lshrdi3_s.o libgcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o
libgcc/./_cmpdi2_s.o libgcc/./_ucmpdi2_s.o libgcc/./_floatdidf_s.o
libgcc/./_floatdisf_s.o libgcc/./_fixunsdfsi_s.o libgcc/./_fixunssfsi_s.o
libgcc/./_fixunsdfdi_s.o libgcc/./_fixdfdi_s.o libgcc/./_fixunssfdi_s.o
libgcc/./_fixsfdi_s.o libgcc/./_fixxfdi_s.o libgcc/./_fixunsxfdi_s.o
libgcc/./_floatdixf_s.o libgcc/./_fixunsxfsi_s.o libgcc/./_fixtfdi_s.o
libgcc/./_fixunstfdi_s.o libgcc/./_floatditf_s.o libgcc/./_clear_cache_s.o
libgcc/./_enable_execute_stack_s.o libgcc/./_trampoline_s.o
libgcc/./__main_s.o libgcc/./_absvsi2_s.o libgcc/./_absvdi2_s.o
libgcc/./_addvsi3_s.o libgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o
libgcc/./_subvdi3_s.o libgcc/./_mulvsi3_s.o libgcc/./_mulvdi3_s.o
libgcc/./_negvsi2_s.o libgcc/./_negvdi2_s.o libgcc/./_ctors_s.o
libgcc/./_ffssi2_s.o libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o
libgcc/./_clzsi2_s.o libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o
libgcc/./_ctzdi2_s.o libgcc/./_popcount_tab_s.o libgcc/./_popcountsi2_s.o
libgcc/./_popcountdi2_s.o libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o
libgcc/./_powisf2_s.o libgcc/./_powidf2_s.o libgcc/./_powixf2_s.o
libgcc/./_powitf2_s.o libgcc/./_mulsc3_s.o libgcc/./_muldc3_s.o
libgcc/./_mulxc3_s.o libgcc/./_multc3_s.o libgcc/./_divsc3_s.o
libgcc/./_divdc3_s.o libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o
libgcc/./_divdi3_s.o libgcc/./_moddi3_s.o libgcc/./_udivdi3_s.o
libgcc/./_umoddi3_s.o libgcc/./_udiv_w_sdiv_s.o libgcc/./_udivmoddi4_s.o
libgcc/./unwind-dw2_s.o libgcc/./unwind-dw2-fde-darwin_s.o
libgcc/./unwind-sjlj_s.o libgcc/./unwind-c_s.o -lc
/usr/local/bin/arm-apple-darwin-ld: can't locate file for: -lc
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.dylib] Error 1
make[1]: *** [stmp-multilib] Error 2
make: *** [all-gcc] Error 2

I don't see libc anywhere in my build. Not sure what's going on here.

Original issue reported on code.google.com by apeder...@tds.net on 3 Nov 2007 at 11:01

GoogleCodeExporter commented 8 years ago
Nevermind, after getting a bit of sleep, I discovered that the ipod filesystem
transfer was incomplete.

Original comment by apeder...@tds.net on 3 Nov 2007 at 7:22

GoogleCodeExporter commented 8 years ago
First, I've same problem in Fedora 7. 
Thus, I've trying to build GCC without '-lc' but it failed. 
Please let me know how to solve it.

Original comment by bsj...@gmail.com on 28 Nov 2007 at 3:12

GoogleCodeExporter commented 8 years ago
I finally success to build GCC. I forgot the documents as following. The 
libc.dylib
should be taken from iPod Touch or iPhone itself.

o Make sure that $HEAVENLY points to a copy of the full iPhone root filesystem, 
not
just the unpacked update DMG. If you get errors about being unable to find -lc, 
then
your $HEAVENLY is set incorrectly, you mistyped the --with-heavenly option to
configure, or your copy of the root partition is incomplete. Your copy of the 
iPhone
root filesystem 
must include a usr/lib/libc.dylib file.

Original comment by bsj...@gmail.com on 3 Dec 2007 at 2:48

GoogleCodeExporter commented 8 years ago
I don't see the usr/lib/libc.dylib file in the corresponding path. Pls any body 
give
the full library files with this file. I am always getting this error because 
of this
file missing. Pls help for me. I don't think the HEAVENLY PATH is incorrect. 
Because
I am using the procedure correctly in the iPhone open application development 
document.

Original comment by karthikj...@gmail.com on 1 Jun 2010 at 6:20