Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Missing 'liblto_plugin.so' when building the emulator on Ubuntu 12.04 64bit

1,397 views
Skip to first unread message

Henrik Skupin

unread,
Nov 8, 2012, 12:07:47 PM11/8/12
to mozilla...@lists.mozilla.org
Hi all,

I need a self-build version of b2g to get started with tests for
different WebAPI. But so far I'm struggling in getting the emulator
built at all. So far no-one was able to help me with that problem, but I
hope that a solution can be found here.

So I have followed the steps on MDN and installed all the required
packages, checked out the B2G repository and ran the config script with
'./config.sh emulator'. When I now start build.sh I get a failure quite
early in the process, which doesn't let me continue:

> host C: emulator-common <= external/qemu/distrib/zlib-1.2.3/compress.c
> i686-linux-gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
> compilation terminated.
> make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/emulator-common_intermediates/distrib/zlib-1.2.3/compress.o] Error 1
> make: *** Deleting file `out/host/linux-x86/obj/STATIC_LIBRARIES/emulator-common_intermediates/distrib/zlib-1.2.3/compress.o'
> make: *** Waiting for unfinished jobs....
> i686-linux-gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
> compilation terminated.
> make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/emulator-common_intermediates/distrib/zlib-1.2.3/adler32.o] Error 1
> make: *** Deleting file `out/host/linux-x86/obj/STATIC_LIBRARIES/emulator-common_intermediates/distrib/zlib-1.2.3/adler32.o'
> i686-linux-gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
> compilation terminated.
> make: *** [out/host/linux-x86/obj/EXECUTABLES/emulator_intermediates/android/main-emulator.o] Error 1
> make: *** Deleting file `out/host/linux-x86/obj/EXECUTABLES/emulator_intermediates/android/main-emulator.o'

liblto_plugin.so is part of the toolchain and located in:

../prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/libexec/gcc/i686-linux/4.6.x-google/liblto_plugin.so


What did I wrong or what's missing so this compile error can be eliminated?

Thanks a lot!

Henrik

seanya...@gmail.com

unread,
Apr 21, 2013, 4:57:30 AM4/21/13
to
在 2012年11月9日星期五UTC+8上午1时07分56秒,Henrik Skupin写道:
So, I met the same problem as yours ,may you tell the fix to it? Thanks.

lanecr...@gmail.com

unread,
Jan 10, 2014, 2:56:34 AM1/10/14
to
Hi there

I had a similar problem and found a work-around that might help - check out http://stackoverflow.com/questions/19272524/arm-linux-androideabi-g-liblto-plugin-so-not-found.

Cheers,
Lane

Naoki Hirata

unread,
Jan 10, 2014, 12:34:26 PM1/10/14
to lanecr...@gmail.com, dev...@lists.mozilla.org
Hi Henrik,

I haven't updated it in a while, but I do have a ubuntu VM with the emulator compiled.
http://shizen008.wordpress.com/2013/11/11/images-for-b2gemulator/

In regards to your situation, I suggest trying the part in the MDN that states to disable the 32 bit compilation.
see solution 2 in https://developer.mozilla.org/en-US/Firefox_OS/Firefox_OS_build_prerequisites
There's a patch to disable the 32 bit compilation.

Regards,
Naoki
> _______________________________________________
> dev-b2g mailing list
> dev...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-b2g

0 new messages