comeon010 / ios-toolchain-based-on-clang-for-linux

Automatically exported from code.google.com/p/ios-toolchain-based-on-clang-for-linux
0 stars 0 forks source link

undefined reference to 'lto_get_version()' #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install the llvm 3.2 binarry for ubuntu 12.04TS
2. compile the cctools: ./configure && make 
3. got the error

What is the expected output? What do you see instead?
undefined reference to 'lto_get_version()'

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

Please provide any additional information below.

Original issue reported on code.google.com by yangqingrong on 15 Jun 2013 at 4:13

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
the issue is fixed now!i did this:
$ sudo ln -s /apps/clang3.2/bin/* /usr/bin/
./configure --target=arm-apple-darwin11 --prefix=/usr 
LDFLAGS='-L/apps/clang3.2/lib'

Original comment by yangqingrong on 15 Jun 2013 at 5:09

GoogleCodeExporter commented 9 years ago
may be you need add the '-luuid' options 
shell$ ./configure --target=arm-apple-darwin11 --prefix=/usr 
LDFLAGS='-L/apps/clang3.2/lib:/lib/i386-linux-gnu/ -luuid'

Original comment by yangqingrong on 15 Jun 2013 at 5:25

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
How to fix this issue?
~/source/iphonesdk-utils-1.8$ ./configure --prefix=/usr 
LDFLAGS='-L/usr/lib/i386-linux-gnu/libdl.so -ldl'

/usr/bin/ld: /apps/clang3.2/lib/libLLVMSupport.a(Signals.o): undefined 
reference to symbol 'dladdr@@GLIBC_2.0'
/usr/bin/ld: note: 'dladdr@@GLIBC_2.0' is defined in DSO 
/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libdl.so so try adding 
it to the linker command line
/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libdl.so: could not 
read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [ios-genLocalization] Error 1
make[2]:Leaving Directory 
`/home/rong/source/iphonesdk-utils-1.8/genLocalization2'
make[1]: *** [all-recursive] Error 1
make[1]:Leaving Directory `/home/rong/source/iphonesdk-utils-1.8'
make: *** [all] Error 2

Original comment by yangqingrong on 15 Jun 2013 at 6:37

GoogleCodeExporter commented 9 years ago
for ios 4.6 
rong@rong-VirtualBox:~/source$ sudo mv 
/mnt/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPh
oneOS6.1.sdk /usr/share

rong@rong-VirtualBox:~/source$ sudo locate iphoneos.a
/mnt/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/ar
c/libarclite_iphoneos.a

sudo mkdir -p /usr/share/iPhoneOS6.1.sdk/usr/lib/arc
sudo cp 
/mnt/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/ar
c/libarclite_iphoneos.a /usr/share/iPhoneOS6.1.sdk/usr/lib/arc

Original comment by yangqingrong on 15 Jun 2013 at 9:07

GoogleCodeExporter commented 9 years ago
for gdb errors:
cd gdb-1822-for-linux && \
    CFLAGS+=-I/home/rong/source/gdb-1822-for-linux/opencflite-476.19.0/include ./configure --prefix=/usr --target=arm-apple-darwin11 && \
    make && \
    cp gdb/gdb ../binary/arm-apple-darwin11-gdb 
/bin/sh: 2: 
CFLAGS+=-I/home/rong/source/gdb-1822-for-linux/opencflite-476.19.0/include: not 
found
make: *** [gdb] 错误 127

solution:
modify CFLAGS+=-I${PWD}/opencflite-476.19.0/include ./configure --prefix=/usr 
--target=arm-apple-darwin11 && \
to 
CFLAGS =-I${PWD}/opencflite-476.19.0/include ./configure --prefix=/usr 
--target=arm-apple-darwin11 && \

remark: remove the "+" ,"CFLAGS+" to "CFLAGS"

Original comment by yangqingrong on 16 Jun 2013 at 11:26

GoogleCodeExporter commented 9 years ago
undefined reference to "yyparse()"?
my god
how much errors are!

Original comment by yangqingrong on 16 Jun 2013 at 12:30

GoogleCodeExporter commented 9 years ago
Hello yangqingrong,

Have you find a solution for "yyparse()" ?

Souhire

Original comment by souhirek...@gmail.com on 20 Jun 2013 at 10:58

GoogleCodeExporter commented 9 years ago
hello souhirek...@gmail.com,
 i have not found the solution for "yyparse()",it was found at the gdb debug source code.

yangqingrong

Original comment by yangqingrong on 4 Jul 2013 at 6:08