Open GoogleCodeExporter opened 9 years ago
Fixed this issue by following #6 on issue 31. For some reason
export INCPRIVEXT="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
didn't work on my system. However, manually editing every Makefile in the
odcctools subdirectory that has a
MYINCLUDES line to include "-isysroot /Developer/SDKs/MacOSX10.4u.sdk" (leave
off the parentheses when
adding to Makefiles) did work for me.
Now all I need to figure out is why I get an error on the second to the last
step:
make LLVM_VERSION_INFO=2.0-svn-iphone-dev-0.3-svn
I get a good way through the compiling process, then I receive the following
error:
/usr/local/bin/arm-apple-darwin-ld: can't locate file for: -ldylib1.10.5.o
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.dylib] Error 1
make[1]: *** [stmp-multilib] Error 2
make: *** [all-gcc] Error 2
Perhaps I am the only one attempting to install the iPhone toolchain on a
10.5.1 9B18 Intel platform... So, I
guess I'll just have to be the guinea pig and blaze ahead... I will post the
fix to this last error (and any others I
might receive) here when I find a solution ;)
Original comment by clayton....@gmail.com
on 4 Dec 2007 at 4:32
[deleted comment]
This is how I overcame the error:
/usr/local/bin/arm-apple-darwin-ld: can't locate file for: -ldylib1.10.5.o
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.dylib] Error 1
make[1]: *** [stmp-multilib] Error 2
make: *** [all-gcc] Error 2
<begin regular leopard instruction section>
$ mv llvm-gcc-4.0-iphone/configure llvm-gcc-4.0-iphone/configure.old
$ sed 's/^FLAGS_FOR_TARGET=$/FLAGS_FOR_TARGET=${FLAGS_FOR_TARGET-}/g' \
llvm-gcc-4.0-iphone/configure.old > llvm-gcc-4.0-iphone/configure
$ export FLAGS_FOR_TARGET="-mmacosx-version-min=10.1"
$ sudo ln -s /usr/local/arm-apple-darwin/lib/crt1.o \
/usr/local/arm-apple-darwin/lib/crt1.10.5.o
<end regular leopard instruction section>
1) Remove the "\" at the end of the first line in the sudu ln... command. So,
the command should be:
sudo ln -s /usr/local/arm-apple-darwin/lib/crt1.o
/usr/local/arm-apple-darwin/lib/crt1.10.5.o
2) Perform the following command after the sudo command above:
sudo ln -s /usr/local/arm-apple-darwin/lib/dylib1.o
/usr/local/arm-apple-darwin/lib/dylib1.10.5.o
BOOYAA!! The Make worked!! And, so did the following Make Install :)~
Now its time for iPhone Application Development... (i.e. the FUN part)...
Original comment by clayton....@gmail.com
on 5 Dec 2007 at 4:30
export INCPRIVEXT="-isysroot /Developer/SDKs/MacOSX10.4u.sdk" works if you use
"make
-e" to import the environment, and not otherwise.
Original comment by sha...@gmail.com
on 23 Jul 2008 at 5:37
Original issue reported on code.google.com by
clayton....@gmail.com
on 4 Dec 2007 at 12:15