You are not logged in.

#1 2011-11-14 10:46:55

sunliwei
Member
Registered: 2009-10-19
Posts: 15

Firefox 8.0-1 ABS build failed with "xpcshell: undefined symbol ..."

I am using the standard PKGBUILD script and try to build it on my machine. But I got this error:

symbol lookup error: ./ff-pgo/dist/bin/xpcshell: undefined symbol: __gcov_indirect_call_profiler

Does anyone encounter this error? I am using gcc 4.6.

Last edited by sunliwei (2011-11-14 10:47:27)

Offline

#2 2012-02-03 21:10:16

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Firefox 8.0-1 ABS build failed with "xpcshell: undefined symbol ..."

I've just enountered it.

/home/archman/.abs/extra/firefox/src/mozilla-release/ff-pgo/dist/bin/xpcshell: symbol lookup error: /home/archman/.abs/extra/firefox/src/mozilla-release/ff-pgo/dist/bin/xpcshell: undefined symbol: __gcov_indirect_call_profiler
make[3]: *** [make-package] Error 127
make[3]: Leaving directory `/home/archman/.abs/extra/firefox/src/mozilla-release/ff-pgo/browser/installer'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/home/archman/.abs/extra/firefox/src/mozilla-release/ff-pgo/browser/installer'
make[1]: *** [package] Error 2
make[1]: Leaving directory `/home/archman/.abs/extra/firefox/src/mozilla-release/ff-pgo'
make: *** [profiledbuild] Error 2
==> ERROR: A failure occurred in build().

Any ideas, maybe?

Offline

#3 2012-02-03 21:15:16

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Firefox 8.0-1 ABS build failed with "xpcshell: undefined symbol ..."

do you guys use gcc-multilib?

j


Give what you have. To someone, it may be better than you dare to think.

Offline

#4 2012-02-03 22:25:03

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Firefox 8.0-1 ABS build failed with "xpcshell: undefined symbol ..."

Aah, nvm this, the solution is in using a clean chroot. Use extra-i686-build for Firefox 10. It will run makepkg for you after it creates a clean new chroot env.

extra-i686-build -r /path/to/your/wanted/chroot/dir

Wonder: Nope, I'm not.
Update: Seems like extra-i686-build is not respecting /etc/makepkg.conf at all...
Update: Of course it's not, since I haven't edited a new file in chroot. Be aware of this. smile
Update (lol): Nah, it clears it up after editing, sure. No ideas..
Solution (finally): Use the "Classic Way" from the archwiki guide.
https://wiki.archlinux.org/index.php/De … ean_Chroot

Last edited by archman-cro (2012-02-03 22:54:49)

Offline

#5 2012-02-03 22:42:43

sitquietly
Member
From: On the Wolf River
Registered: 2010-07-12
Posts: 220

Re: Firefox 8.0-1 ABS build failed with "xpcshell: undefined symbol ..."

sunliwei wrote:

I am using the standard PKGBUILD script and try to build it on my machine. But I got this error:

symbol lookup error: ./ff-pgo/dist/bin/xpcshell: undefined symbol: __gcov_indirect_call_profiler

Does anyone encounter this error? I am using gcc 4.6.

Many people encounter this error.  It is a known bug in the make system for firefox https://bugzilla.mozilla.org/show_bug.cgi?id=686097.  Some distros fix it up but Archlinux has a policy of focusing on creating binary packages for us, for which purpose they build each package in a "clean chroot".

I got around the problem by using firefox-kde-opensuse from AUR, which does compile properly. (and I appreciate the nicer kde integration).  It's one version behind but I can't imagine that matters --- firefox is somewhat buggy no matter how big the version number gets.

Offline

#6 2013-01-09 15:52:09

lano1106
Member
From: Canada, Montreal
Registered: 2012-11-22
Posts: 95
Website

Re: Firefox 8.0-1 ABS build failed with "xpcshell: undefined symbol ..."

xpcshell is loading its shared libraries from /usr/lib/firefox first.

What the chroot environment do not have that your regular environment have is firefox already installed.

If you want to build firefox without a dev chroot, all you have to do is to uninstalled firefox from your system before attempting to build it yourself.

Offline

Board footer

Powered by FluxBB