Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to link shared libraries on x86_64 #27

Open
GoogleCodeExporter opened this issue Mar 17, 2015 · 0 comments
Open

Failed to link shared libraries on x86_64 #27

GoogleCodeExporter opened this issue Mar 17, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

The attached patch fix a build error (link of shared libraries) on x86_64.


/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld -shared -o lib/libtstools.so obj/accessunit.o obj/avs.o obj/ac3.o 
obj/adts.o obj/bitdata.o obj/es.o obj/filter.o obj/fmtx.o obj/h222.o obj/h262.o 
obj/audio.o obj/l2audio.o obj/misc.o obj/nalunit.o obj/ps.o obj/pes.o 
obj/pidint.o obj/reverse.o obj/ts.o obj/tswrite.o obj/pcap.o obj/ethernet.o 
obj/ipv4.o -lc
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/accessunit.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/avs.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/ac3.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/adts.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/bitdata.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/es.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/filter.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/fmtx.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/h222.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/h262.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/audio.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/l2audio.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/misc.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/nalunit.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/ps.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/pes.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/pidint.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/reverse.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/ts.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/tswrite.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/pcap.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/ethernet.o' is 
incompatible with i386 output
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-ld: i386:x86-64 architecture of input file `obj/ipv4.o' is 
incompatible with i386 output
rm -f lib/libtstools.a
ar rc lib/libtstools.a obj/accessunit.o obj/avs.o obj/ac3.o obj/adts.o 
obj/bitdata.o obj/es.o obj/filter.o obj/fmtx.o obj/h222.o obj/h262.o 
obj/audio.o obj/l2audio.o obj/misc.o obj/nalunit.o obj/ps.o obj/pes.o 
obj/pidint.o obj/reverse.o obj/ts.o obj/tswrite.o obj/pcap.o obj/ethernet.o 
obj/ipv4.o
obj/bitdata.o: In function `read_exp_golomb':
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/build/tstools-1_11/b
itdata.c:223: undefined reference to `pow'
obj/bitdata.o: In function `read_signed_exp_golomb':
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/build/tstools-1_11/b
itdata.c:244: undefined reference to `pow'
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/build/tstools-1_11/b
itdata.c:244: undefined reference to `ceil'
obj/misc.o: In function `log2':
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/build/tstools-1_11/m
isc.c:229: undefined reference to `log10'
obj/nalunit.o: In function `read_pic_param_set_data':
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/build/tstools-1_11/n
alunit.c:604: undefined reference to `ceil'
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-gcc obj/esfilter.o -o bin/esfilter -fPIC lib/libtstools.a -g  -fPIC 
-lm
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-gcc obj/ts2es.o -o bin/ts2es -fPIC lib/libtstools.a -g  -fPIC -lm
/home/tjlee/git_repo/ambarella/a8/boss_sdk/buildroot/output/host/usr/bin/i686-pc
-linux-gnu-gcc obj/es2ts.o -o bin/es2ts -fPIC lib/libtstools.a -g  -fPIC -lm
make[1]: *** [lib/libtstools.so] Error 1
make[1]: *** Waiting for unfinished jobs....
edd40fc9c02178434d14a7054a34014d7e3c0d31

Original issue reported on code.google.com by royle...@gmail.com on 11 Nov 2013 at 10:07

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant