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

Error building x86 emulator: Cannot find libasound.so.2

1,545 views
Skip to first unread message

bro...@gmail.com

unread,
Nov 14, 2012, 3:20:43 PM11/14/12
to mozilla...@lists.mozilla.org
Hey guys,

I've just pulled the latest source for B2G and am getting the error below when trying to build emulator-x86:

./xulrunner-sdk/bin/xpcshell: error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory


Any thoughts? Thanks.

John Ford

unread,
Nov 14, 2012, 4:03:13 PM11/14/12
to bro...@gmail.com, mozilla...@lists.mozilla.org
You are missing the alsa-libs package for your OS. On ubuntu this should be the "libasound2-dev" package (lib32asound2-dev on 32-on-64bit), on Fedora it's alsa-lib-devel (or alsa-lib-devel.i686 for 32-on-64bit)

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

bro...@gmail.com

unread,
Nov 14, 2012, 4:14:39 PM11/14/12
to mozilla...@lists.mozilla.org, mozilla...@lists.mozilla.org, bro...@gmail.com
Thanks! Got passed that error by downloading the missing package for ubuntu.

It looks like now my gecko build is failing:

/home/ywei16/B2G_latest/B2G/prebuilt/linux-x86/toolchain/i686-android-linux-4.4.3/bin/../lib/gcc/i686-android-linux/4.4.3/../../../../i686-android-linux/bin/ld: cannot find -lrt
collect2: ld returned 1 exit status
make[8]: *** [libnspr4.so] Error 1
make[7]: *** [export] Error 2
make[6]: *** [export] Error 2
make[5]: *** [export] Error 2
make[4]: *** [tier_nspr] Error 2
make[3]: *** [default] Error 2
make[2]: *** [realbuild] Error 2
make[1]: *** [build] Error 2
make: *** [out/target/product/generic_x86/obj/DATA/gecko_intermediates/gecko] Error 2

I'm not sure what's going on, just two days ago the emulator built fine on this same machine, now everything is breaking... Thanks for your help John.

bro...@gmail.com

unread,
Nov 14, 2012, 4:14:39 PM11/14/12
to mozilla...@googlegroups.com, mozilla...@lists.mozilla.org, bro...@gmail.com
Thanks! Got passed that error by downloading the missing package for ubuntu.

It looks like now my gecko build is failing:

/home/ywei16/B2G_latest/B2G/prebuilt/linux-x86/toolchain/i686-android-linux-4.4.3/bin/../lib/gcc/i686-android-linux/4.4.3/../../../../i686-android-linux/bin/ld: cannot find -lrt
collect2: ld returned 1 exit status
make[8]: *** [libnspr4.so] Error 1
make[7]: *** [export] Error 2
make[6]: *** [export] Error 2
make[5]: *** [export] Error 2
make[4]: *** [tier_nspr] Error 2
make[3]: *** [default] Error 2
make[2]: *** [realbuild] Error 2
make[1]: *** [build] Error 2
make: *** [out/target/product/generic_x86/obj/DATA/gecko_intermediates/gecko] Error 2

I'm not sure what's going on, just two days ago the emulator built fine on this same machine, now everything is breaking... Thanks for your help John.

On Wednesday, November 14, 2012 2:03:13 PM UTC-7, John Ford wrote:

61d...@gmail.com

unread,
Nov 23, 2012, 2:11:59 PM11/23/12
to mozilla...@googlegroups.com, mozilla...@lists.mozilla.org, bro...@gmail.com
I'm having the same problem (and error messages).

brd

61d...@gmail.com

unread,
Nov 23, 2012, 2:11:59 PM11/23/12
to mozilla...@lists.mozilla.org, mozilla...@lists.mozilla.org, bro...@gmail.com
I'm having the same problem (and error messages).

brd

On Wednesday, November 14, 2012 4:14:46 PM UTC-5, bro...@gmail.com wrote:

Yusuke YAMAMOTO

unread,
Dec 4, 2012, 3:29:59 AM12/4/12
to dev...@lists.mozilla.org
Hi,

Did you resolve this problem??
I have same errors.

emulator-x86 build has failed in today's environment.

If you resolve this, could you tell me the cause of this problem?

Regards,
Yusuke.

On 2012/11/15 6:14
Subject:
> On Wednesday, November 14, 2012 2:03:13 PM UTC-7, John Ford wrote:
--
Yusuke Yamamoto

kida...@gmail.com

unread,
Mar 18, 2013, 10:34:34 PM3/18/13
to mozilla...@lists.mozilla.org
Anybody solved this error?
Please command for me!!!
Thanks

Dave Hylands

unread,
Mar 18, 2013, 10:59:30 PM3/18/13
to kida...@gmail.com, mozilla...@lists.mozilla.org, dev...@lists.mozilla.org
> From: kida...@gmail.com
>
> Anybody solved this error?

It looks like linasound.so.2 comes from either the

libasound2:i386 or libasound2 package (the former for 32-bit, and the latter for 64-bit).

So I'd say that you should try:

sudo apt-get install libasound2:i386 libasound2

and see if that fixes the problem.

Dave Hylands

Dave Hylands

unread,
Mar 18, 2013, 10:59:30 PM3/18/13
to kida...@gmail.com, mozilla...@lists.mozilla.org, dev...@lists.mozilla.org

kida...@gmail.com

unread,
Mar 18, 2013, 11:28:25 PM3/18/13
to mozilla...@lists.mozilla.org
Thank you for reply.
But Two packages are already installed as below.


paran@paran-VirtualBox:~$ sudo apt-get install libasound2:i386 libasound2
Reading package lists... Done
Building dependency tree
Reading state information... Done
libasound2 is already the newest version.
libasound2:i386 is already the newest version.
The following packages were automatically installed and are no longer required:
libosmesa6 libxrandr-ltsq2 linux-headers-3.5.0-23-generic linux-headers-3.5.0-23 libllvm3.1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

kida...@gmail.com

unread,
Mar 18, 2013, 11:30:39 PM3/18/13
to mozilla...@lists.mozilla.org
Anyway, I will try build again.
Thanks.

Julien Wajsberg

unread,
Mar 19, 2013, 6:54:58 AM3/19/13
to kida...@gmail.com, mozilla...@lists.mozilla.org, dev...@lists.mozilla.org
you actually need the -dev packages.
signature.asc

Julien Wajsberg

unread,
Mar 19, 2013, 6:54:58 AM3/19/13
to kida...@gmail.com, mozilla...@lists.mozilla.org, dev...@lists.mozilla.org
you actually need the -dev packages.

Le 19/03/2013 04:28, kida...@gmail.com a écrit :
signature.asc

John Ford

unread,
Mar 25, 2013, 5:17:38 PM3/25/13
to kida...@gmail.com, mozilla...@lists.mozilla.org, mozilla...@googlegroups.com
You'll need the devel packages for asound.

Try:

sudo apt-get install libasound2-dev libasound2-dev:i386

John
0 new messages