cwalls251 / iphone-dev

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

$HEAVENLY set incorrectly #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Check out the most recent version from the repository
2. Followed the instructions per the wiki page on installing
3. Final step (makeing llvm) fails with error as attached

What is the expected output? What do you see instead?
Expecting clean compile, getting compile error:
   /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

What version of the product are you using? On what operating system?

Using iphone-dev rev 136
Using llvm rev 41876
Using OS X 10.4.10 on an Intel MacBook

Was a 'clean' (brand new) system. Installed xcode for gcc, restarted, and
then followed the instructions.

Please provide any additional information below.

Following is a dump of the terminal:
. . .
make
GCC_FOR_TARGET="/Users/elizabeth/iphone-dev/llvm-gcc-4.0-iphone-build/gcc/xgcc
-B/Users/elizabeth/iphone-dev/llvm-gcc-4.0-iphone-build/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" \
  AR_FOR_TARGET="arm-apple-darwin-ar" \
  AR_CREATE_FOR_TARGET="arm-apple-darwin-ar  rc" \
  AR_EXTRACT_FOR_TARGET="arm-apple-darwin-ar  x" \
  AR_FLAGS_FOR_TARGET="" \
  CC="gcc" CFLAGS="-g -O2  -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wold-style-definition  " \
  BUILD_PREFIX="" \
  BUILD_PREFIX_1="loser-" \
  LANGUAGES="" \
  LIBGCC2_CFLAGS="-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  "  \
  MULTILIB_CFLAGS="" T= crt3.o
/Users/elizabeth/iphone-dev/llvm-gcc-4.0-iphone-build/gcc/xgcc
-B/Users/elizabeth/iphone-dev/llvm-gcc-4.0-iphone-build/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

Original issue reported on code.google.com by jwritec...@gmail.com on 12 Sep 2007 at 5:07

GoogleCodeExporter commented 8 years ago
Please make sure that your $HEAVENLY environment variable is set to the full 
path to the iPhone root system and 
that --with-heavenly=$HEAVENLY is supplied to LLVM-GCC's configure script. I 
don't reproduce this error on 
my own system and I can't find anything that would cause $HEAVENLY/usr/lib to 
be skipped over when looking 
for libraries.

Original comment by nightwat...@gmail.com on 12 Sep 2007 at 5:21

GoogleCodeExporter commented 8 years ago
I had this problem too.  Turns it the downloaded copy of my iPhone was missing 
the usr directory (scp barfed on 
something in /dev and I didn't notice)

Original comment by inioi...@gmail.com on 12 Sep 2007 at 5:41

GoogleCodeExporter commented 8 years ago
Ok,

Seems to have compiled and installed ok.

It must have been an issue with the iPhone libraries.

Thanks,

~ Christopher

Original comment by jwritec...@gmail.com on 12 Sep 2007 at 7:10

GoogleCodeExporter commented 8 years ago
Ok,

I just checked it and it seems to be compiling.

~ Christopher

Original comment by jwritec...@gmail.com on 12 Sep 2007 at 7:14

GoogleCodeExporter commented 8 years ago
Okay, closing this then.

Original comment by nightwat...@gmail.com on 12 Sep 2007 at 7:33

GoogleCodeExporter commented 8 years ago

Original comment by nightwat...@gmail.com on 12 Sep 2007 at 10:41