sheebz / iphone-dev

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

odcctools fails on 10.5.1 9B18 Intel #106

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Following the instructions as written

What is the expected output? What do you see instead?
A Proper make

cd libstuff && make
gcc -Wall -Wno-long-double -Wno-import  -DHAVE_CONFIG_H    -I..//include -
I../../../odcctools/include   -g -O2 -fno-builtin-round -fno-builtin-trunc 
-no-cpp-precomp -
mdynamic-no-pic  -c -o execute.o ../../../odcctools/libstuff/execute.c
In file included from ../../../odcctools/include/libkern/OSByteOrder.h:70,
                 from ../../../odcctools/include/mach/ndr.h:94,
                 from ../../../odcctools/include/mach/clock_priv.h:7,
                 from ../../../odcctools/include/mach/mach_interface.h:37,
                 from ../../../odcctools/include/mach/mach.h:62,
                 from ../../../odcctools/libstuff/execute.c:25:
../../../odcctools/include/libkern/machine/OSByteOrder.h:45: error: 
redefinition of 
‘_OSSwapInt16’
/usr/include/libkern/i386/_OSByteOrder.h:49: error: previous definition of 
‘_OSSwapInt16’ was 
here
../../../odcctools/include/libkern/machine/OSByteOrder.h:54: error: 
redefinition of 
‘_OSSwapInt32’
/usr/include/libkern/i386/_OSByteOrder.h:58: error: previous definition of 
‘_OSSwapInt32’ was 
here
../../../odcctools/include/libkern/machine/OSByteOrder.h:63: error: 
redefinition of 
‘_OSSwapInt64’
/usr/include/libkern/i386/_OSByteOrder.h:69: error: previous definition of 
‘_OSSwapInt64’ was 
here
make[1]: *** [execute.o] Error 1
make: *** [libstuff] Error 2

What version of the product are you using? On what operating system?
Latest as of 12/3
10.5.1 9B18 Intel

Please provide any additional information below.
export INCPRIVEXT="-isysroot /Developer/SDKs/MacOSX10.4u.sdk" does NOT help 
with this

Original issue reported on code.google.com by clayton....@gmail.com on 4 Dec 2007 at 12:15

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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