You are not logged in.

#201 2009-07-02 12:00:12

b4283
Member
Registered: 2008-11-26
Posts: 123

Re: Official firefox-pgo thread

I've seen a blog post claiming that Tracemonkey doesn't support linux on x86_64 yet:
http://hacks.mozilla.org/2009/06/tracemonkey-demo/

We don't have 64 bit support for Linux in 3.5. Sounds like it's coming at some point, though.

This is like all the efforts... for nothing.

Tracemonkey is disabled for linux 64:
https://bugzilla.mozilla.org/show_bug.cgi?id=489146#c6

Last edited by b4283 (2009-07-02 12:27:16)

Offline

#202 2009-07-02 13:09:09

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Official firefox-pgo thread

b4283 wrote:

I've seen a blog post claiming that Tracemonkey doesn't support linux on x86_64 yet:
http://hacks.mozilla.org/2009/06/tracemonkey-demo/

We don't have 64 bit support for Linux in 3.5. Sounds like it's coming at some point, though.

This is like all the efforts... for nothing.

Tracemonkey is disabled for linux 64:
https://bugzilla.mozilla.org/show_bug.cgi?id=489146#c6

Link added to first post - please VOTE for this bug smile


Proud ex-maintainer of firefox-pgo

Offline

#203 2009-07-02 13:11:03

resadent
Member
Registered: 2008-05-17
Posts: 35

Re: Official firefox-pgo thread

u.u, what a dissapointment...

Offline

#204 2009-07-02 13:47:42

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Official firefox-pgo thread

resadent wrote:

u.u, what a dissapointment...

Firefox 3.5 is noticeably faster than 3.0.x even without TM wink And PGO gives another 15-25% gain wink


Proud ex-maintainer of firefox-pgo

Offline

#205 2009-07-02 15:47:00

resadent
Member
Registered: 2008-05-17
Posts: 35

Re: Official firefox-pgo thread

blasse wrote:
resadent wrote:

u.u, what a dissapointment...

Firefox 3.5 is noticeably faster than 3.0.x even without TM wink And PGO gives another 15-25% gain wink

Yeah, but I don't have TM or PGO.

Offline

#206 2009-07-02 16:33:24

markg85
Member
Registered: 2009-06-27
Posts: 149

Re: Official firefox-pgo thread

So, we can't compile firefox on x86_64 right now and to make matters worse if we do manage to comple firefox it doesn't have tracemonkey for x86_64... one of it's biggest new features. That just SUCKS HARD!

here midori is about 3 times faster then FF3. perhaps time to switch ^_^

Offline

#207 2009-07-02 17:55:43

resadent
Member
Registered: 2008-05-17
Posts: 35

Re: Official firefox-pgo thread

Well, I have finally instaled firefox-pgo 3.5, but when I run "firefox", I get this error:

edu@Naru ~/ $ firefox
/usr/lib/firefox-3.5/run-mozilla.sh: line 131: 17973 Violación de segmento  "$prog" ${1+"$@"}

sad, now I'm now using midori. Maybe it's time to switch.

Last edited by resadent (2009-07-02 17:57:43)

Offline

#208 2009-07-02 18:42:00

jt512
Member
Registered: 2009-02-19
Posts: 262

Re: Official firefox-pgo thread

pyther wrote:

I was able to compile on x86_64 using gcc-snapshot 20090604 (note: this is an older version than what is in aur).

I tried compiling Firefox-pgo on x86_64 using gcc-snapshot 20090604, and it failed.  I installed gcc-snapshot 20090604 by editing the PKGBUILD for the current gcc-snapshot in AUR.  The reason that you were able to get Firefox to compile and I was not may be due to differences between the PKGBUILD you used to build gcc-snapshot and the one I used.  So, by any chance do you still have the PKGBUILD, and if so, could you please post it to this thread.

Thanks,

Jay

Offline

#209 2009-07-02 18:45:25

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Official firefox-pgo thread

There is a link for old gcc-snapshot pkgbuild and binary on firefox-pgo-beta comments smile


Proud ex-maintainer of firefox-pgo

Offline

#210 2009-07-02 21:14:43

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Official firefox-pgo thread

Well I was able to compile using the latest gcc-snapshot build without a problem, so I don't think it has anything to do with the gcc-snapshot version. To the people who are having issues compiling 3.5, are you using testing (repo) and can you build a non-pgo version?


Website - Blog - arch-home
Arch User since March 2005

Offline

#211 2009-07-02 23:54:56

jt512
Member
Registered: 2009-02-19
Posts: 262

Re: Official firefox-pgo thread

pyther wrote:

Well I was able to compile using the latest gcc-snapshot build without a problem, so I don't think it has anything to do with the gcc-snapshot version. To the people who are having issues compiling 3.5, are you using testing (repo) and can you build a non-pgo version?

I'm not using [testing].  I haven't tried building a non-pgo version.  I was able to build swiftweasel-3.5rc3, which apparently is a pgo build.

Jay

Offline

#212 2009-07-03 00:28:36

jt512
Member
Registered: 2009-02-19
Posts: 262

Re: Official firefox-pgo thread

blasse wrote:

There is a link for old gcc-snapshot pkgbuild and binary on firefox-pgo-beta comments smile

I built gcc-snapshot-20080604 using the PKGBUILD from that link, tried to build firefox-pgo again on x86_64, and the build failed with the same "-11" error.

Offline

#213 2009-07-03 01:26:53

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Official firefox-pgo thread

b4283 wrote:

I've seen a blog post claiming that Tracemonkey doesn't support linux on x86_64 yet:
http://hacks.mozilla.org/2009/06/tracemonkey-demo/

We don't have 64 bit support for Linux in 3.5. Sounds like it's coming at some point, though.

This is like all the efforts... for nothing.

Tracemonkey is disabled for linux 64:
https://bugzilla.mozilla.org/show_bug.cgi?id=489146#c6

This is a bad news, voted. (Mozilla only looks for win builds, so sad)

Offline

#214 2009-07-03 01:36:47

Renan Birck
Member
From: Brazil
Registered: 2007-11-11
Posts: 401
Website

Re: Official firefox-pgo thread

This is what I get when I try build firefox-pgo, no matter what patch I select:

OBJDIR=/mnt/arquivos/firefox-pgo/firefox-pgo/src/mozilla-1.9.1/ff-pgo python /mnt/arquivos/firefox-pgo/firefox-pgo/src/mozilla-1.9.1/ff-pgo/_profile/pgo/profileserver.py
INFO | (automation.py) | Application pid: 16627
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded: ignored.
TEST-UNEXPECTED-FAIL | (automation.py) | Exited with code -11 during test run
INFO | (automation.py) | Application ran for: 0:00:00.431064
make: ** [profiledbuild] Erro 245

As per http://aur.archlinux.org/packages.php?ID=22919, I tried "Run firefox{-bin} from ff-pgo/dist/bin/, check the error." and I get this:

  (52) [renan@sanctuary:~/Arquivos/firefox-pgo/firefox-pgo/src/mozilla-1.9.1/ff-pgo/dist/bin] $ ./firefox
./run-mozilla.sh: line 131: 17470 Falha de segmentação  "$prog" ${1+"$@"}

I'm using gcc-snapshot 4.5.20090625 on Arch Linux x86_64 from [testing] on a Intel Core 2 Duo T5550.

EDIT:

firefox-bin[16627] general protection ip:2b666b6c8268 sp:7fff96ff32c0 error:0 in libxul.so[2b666ada9000+23ba000]

reading the AUR page for firefox-pgo-beta I noticed that people solved the problem with segfault in libxul.so by upgrading to GCC 4.5. (which I did and didn't work for me).

Any ideas? (if none, I will stay with the Firefox from the repos).


Thanks.

Last edited by Renan Birck (2009-07-03 01:48:09)

Offline

#215 2009-07-03 05:18:14

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Official firefox-pgo thread

As mentioned in thread - it happens on x86-64 and nobody really knows why... It can just compile without changes after xxx tries... If you don't know to spend a night or to over it - don't even start wink


Proud ex-maintainer of firefox-pgo

Offline

#216 2009-07-03 12:06:58

Rydgel
Member
From: France
Registered: 2008-09-04
Posts: 166
Website

Re: Official firefox-pgo thread

After your recently update on the PKGBUILD, firefox doesn't compile anymore on i686. I will post the stack trace tonight.

Offline

#217 2009-07-03 12:26:26

Shapeshifter
Member
Registered: 2008-03-11
Posts: 230

Re: Official firefox-pgo thread

Can't build gcc-snapshot. "Bootstrap comparison failure"

make[2]: Entering directory `/tmp/yaourt-tmp-root/aur-gcc-snapshot/gcc-snapshot/src/gcc-4.5-20090625/build'
make[3]: Entering directory `/tmp/yaourt-tmp-root/aur-gcc-snapshot/gcc-snapshot/src/gcc-4.5-20090625/build'
rm -f stage_current
make[3]: Leaving directory `/tmp/yaourt-tmp-root/aur-gcc-snapshot/gcc-snapshot/src/gcc-4.5-20090625/build'
Comparing stages 2 and 3
Bootstrap comparison failure!
libiberty/pic/strerror.o differs
libiberty/pic/fibheap.o differs
libiberty/pic/strsignal.o differs
libiberty/pic/xstrerror.o differs
libiberty/pic/choose-temp.o differs
libiberty/pic/cplus-dem.o differs
libiberty/pic/splay-tree.o differs
libiberty/pic/floatformat.o differs
libiberty/pic/pex-one.o differs
libiberty/pic/xexit.o differs
libiberty/pic/mkstemps.o differs
libiberty/pic/filename_cmp.o differs
libiberty/pic/partition.o differs
libiberty/pic/pex-unix.o differs
libiberty/pic/lrealpath.o differs
libiberty/pic/physmem.o differs
libiberty/pic/objalloc.o differs
libiberty/pic/fopen_unlocked.o differs
libiberty/pic/spaces.o differs
libiberty/pic/pexecute.o differs
libiberty/pic/alloca.o differs
libiberty/pic/getpwd.o differs
libiberty/pic/xstrdup.o differs
libiberty/pic/cp-demangle.o differs
libiberty/pic/sha1.o differs
libiberty/pic/fdmatch.o differs
libiberty/pic/pex-common.o differs
libiberty/pic/argv.o differs
libiberty/pic/hashtab.o differs
libiberty/pic/concat.o differs
libiberty/pic/regex.o differs
libiberty/pic/getruntime.o differs
libiberty/pic/make-temp-file.o differs
libiberty/pic/xmemdup.o differs
libiberty/pic/cp-demint.o differs
libiberty/pic/md5.o differs
libiberty/pic/xatexit.o differs
libiberty/pic/unlink-if-ordinary.o differs
libiberty/pic/xstrndup.o differs
libiberty/pic/xmalloc.o differs
libiberty/pic/make-relative-prefix.o differs
libiberty/pic/dyn-string.o differs
make[2]: *** [compare] Error 1
make[2]: Leaving directory `/tmp/yaourt-tmp-root/aur-gcc-snapshot/gcc-snapshot/src/gcc-4.5-20090625/build'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/tmp/yaourt-tmp-root/aur-gcc-snapshot/gcc-snapshot/src/gcc-4.5-20090625/build'
make: *** [all] Error 2

Offline

#218 2009-07-03 13:52:17

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Official firefox-pgo thread

Rydgel wrote:

After your recently update on the PKGBUILD, firefox doesn't compile anymore on i686. I will post the stack trace tonight.

Posted already in comments. It's probably fault of --as-needed ldflag. Remove it and compile again. I will reupload pkgbuild later today.


Proud ex-maintainer of firefox-pgo

Offline

#219 2009-07-03 22:57:51

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Official firefox-pgo thread

Well I think I found some interesting information. After I upgraded (from the repos) and attempted to recompile I got an error, during the compile test, that firefox-bin could not load libjpeg.so.62

I was very confused by this error because I should have been building against libjpeg.so.7 (that's what I installed). I talked to brain0 and he suggested running LD_DEBUG=files /home/pyther/builds/firefox-pgo/src/mozilla-1.9.1/ff-pgo/dist/bin/firefox

The debug output showed that /usr/lib/firefox-3.5/libxul.so was trying to use libjpeg.so.62. This caused me to wonder why libs were trying to be used from /usr/lib/firefox-3.5/. I was not sure, but I uninstalled firefox-pgo, and rebuilt. This time I got a segment fault.

I think the reason for the libs being used is because of this in LDFLAGS: -rpath,/usr/lib/firefox-3.5

EDIT: I believe this might explain why, it would build for some and not others

Last edited by pyther (2009-07-03 23:04:13)


Website - Blog - arch-home
Arch User since March 2005

Offline

#220 2009-07-04 01:06:04

droog
Member
Registered: 2004-11-18
Posts: 877

Re: Official firefox-pgo thread

@pyther thanks for posting that, I had the same so.62 error yesterday and couldn't figure it out.
I just uninstalled firefox and rebuilding now, hopefully it builds this time Oo. what a pain pgo is, but on my old computer it
seems to make enough difference to make it worth it.

Offline

#221 2009-07-04 01:25:33

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Official firefox-pgo thread

Let us know if it recompiles for you. I know when I tried I got the segment faults like everyone else. sad


Website - Blog - arch-home
Arch User since March 2005

Offline

#222 2009-07-04 03:14:30

droog
Member
Registered: 2004-11-18
Posts: 877

Re: Official firefox-pgo thread

pyther wrote:

Let us know if it recompiles for you. I know when I tried I got the segment faults like everyone else. sad

Removing the last ffox-pgo seems to have done it.
It built and works fine now with libjpeg-7 on i686.

The current pkgbuild in aur gives me an error after about 5 minutes that i forgot to look into, so i went back to one from a couple days ago that worked for me.

heres the pkgbuild and mozconfig i used.

dbus is disabled, no external hunspell, and disabled safe browsing are the only other changes i made.

# Contributor: blasse <koralik(at)gmail(dot)com>
pkgname=firefox-pgo
pkgver=3.5
pkgrel=1
pkgdesc="Mozilla Firefox - tracemonkey-enabled, XULRunner independent, optimized with PGO - real standalone"
arch=('i686' 'x86_64')
license=('MPL' 'GPL' 'LGPL')
    if [ "${CARCH}" = 'i686' ]; then
makedepends=('zip' 'pkgconfig' 'diffutils' 'python' 'xorg-server' 'imagemagick' 'alsa-lib' 'file' 'autoconf-compat')
    elif [ "${CARCH}" = 'x86_64' ]; then
makedepends=('zip' 'pkgconfig' 'diffutils' 'python' 'xorg-server' 'imagemagick' 'alsa-lib' 'file' 'autoconf-compat' 'gcc-snapshot')
    else
        error Unknown architecture.
        exit 1
    fi
depends=('gtk2>=2.16.0' 'gcc-libs>=4.4' 'libidl2>=0.8.13' 'mozilla-common' 'nss>=3.12.2' 'libxt' 'lcms' 'startup-notification>=0.9' 'desktop-file-utils' 'libjpeg' 'libpng' 'cairo' )
provides=('firefox'="$pkgver")
conflicts=('firefox')
options=('!makeflags' 'ccache')
install=firefox.install
url="http://www.mozilla.org/projects/firefox"
source=(
    #ftp://ftp.mozilla.org/pub/firefox/nightly/"$pkgver"-candidates/build1/source/firefox-"$pkgver"-source.tar.bz2
    ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/"$pkgver"/source/firefox-"$pkgver"-source.tar.bz2
        mozconfig
        100-system-hunspell-corrections.patch
    firefox.desktop
    firefox-safe.desktop
    ldflags.patch
    ldflags2.patch)

build() {
  cd ${startdir}/src/mozilla-1.9.1
  cp ${startdir}/src/mozconfig .mozconfig

  #fix build with system hunspell - gentoo
  patch -Np0 -i ${srcdir}/100-system-hunspell-corrections.patch || return 1

  patch -Np1 -i ${srcdir}/ldflags.patch || return 1

  #PGO patch - use when compiling stops with control sum mismatch error, thanks to methuselah
  #patch -Np1 -i ${srcdir}/ldflags2.patch || return 1

#  LD_PRELOAD="" /usr/bin/Xvfb -nolisten tcp -extension GLX :1 &
#  XPID=$!
#  export DISPLAY=:1

    if [ "${CARCH}" = 'x86_64' ]; then
  export CC='gcc-4.5'
  export CXX='g++-4.5'
    fi

  LD_PRELOAD=""
  unset CFLAGS
  unset CXXFLAGS
  export LDFLAGS="-lgcov -Wl,-rpath,/usr/lib/firefox-3.5 -Wl,--hash-style=gnu,--sort-common"

  make -f client.mk profiledbuild MOZ_MAKE_FLAGS="${MAKEFLAGS}" || return 1
#  make -f client.mk MOZ_MAKE_FLAGS="${MAKEFLAGS}" || return 1
#  kill $XPID
  make -j1 DESTDIR=${pkgdir} -C ff-pgo install || return 1

  install -m755 -d ${pkgdir}/usr/share/applications
  install -m755 -d ${pkgdir}/usr/share/pixmaps
  convert "$srcdir"/mozilla-1.9.1/other-licenses/branding/firefox/mozicon50.xpm ${pkgdir}/usr/share/pixmaps/firefox.png || return 1
  install -m644 ${srcdir}/firefox.desktop ${pkgdir}/usr/share/applications/ || return 1
  install -m644 ${srcdir}/firefox-safe.desktop ${pkgdir}/usr/share/applications/ || return 1
#Remove devel stuff
  rm -rf "$pkgdir"/usr/include/
  rm -rf "$pkgdir"/usr/lib/firefox-devel-${pkgver}/
  rm -rf "$pkgdir"/usr/lib/firefox-devel-3.5/
  rm -rf "$pkgdir"/usr/share/idl/
  return 0
}
ac_add_options --enable-application=browser
#set system libs instead of native
ac_add_options --prefix=/usr --libdir=/usr/lib
ac_add_options --with-system-nspr --with-system-nss --with-pthreads
ac_add_options --with-system-zlib --with-system-jpeg --with-system-png --enable-system-cairo 
ac_add_options --with-system-lcms --with-system-sqlite --with-system-bz2
#optimize
#ac_add_options --disable-optimize --enable-debug
ac_add_options --enable-optimize="-march=native -O2 -pipe -fomit-frame-pointer"
ac_add_options --enable-profile-guided-optimization
ac_add_options --disable-pedantic
ac_add_options --disable-tests
ac_add_options --disable-mochitest
ac_add_options --enable-xterm-updates
#linux build
ac_add_options --disable-installer
ac_add_options --disable-updater
ac_add_options --enable-official-branding
#disable video for compatibility
#ac_add_options --disable-ogg
#Even more optimize
ac_add_options --enable-jemalloc 
ac_add_options --enable-strip 
ac_add_options --enable-install-strip
#disable print support
ac_add_options --disable-printing
#remove unused/enable useful
ac_add_options --disable-dbus
ac_add_options --enable-places
ac_add_options --disable-crashreporter 
ac_add_options --disable-parental-controls
ac_add_options --disable-safe-browsing
#experimental
#ac_add_options --enable-xpctools
#ac_add_options --disable-jvaxpcom
#ac_add_options --enable-native-uconv
#ac_add_options --disable-xpcom-obsolete 
#ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-1.9.1 #before uncommenting install xulrunner-1.9.1 from aur
ac_add_options --enable-default-toolkit=cairo-gtk2 --disable-freetype2 --enable-xft

#mk_add_options AUTOCONF=autoconf213
mk_add_options MOZ_CO_PROJECT=browser
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-pgo
mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) $(MOZ_OBJDIR)/_profile/pgo/profileserver.py'
export BUILD_OFFICIAL=1
export MOZILLA_OFFICIAL=1
mk_add_options BUILD_OFFICIAL=1
mk_add_options MOZILLA_OFFICIAL=1

/edit anyone using oss4 try to build with the sydney_audio_oss.c instead of alsa?

Last edited by droog (2009-07-04 04:36:27)

Offline

#223 2009-07-04 06:46:28

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Official firefox-pgo thread

[slightlyOT]

For anyone interested, I've done a PGO build of 3.6a1pre with merged Tracemonkey development branch from Mercurial (i686 - Core2 CPU only):
http://omploader.org/vMXg3Ng/firefox-3. … pkg.tar.gz
f1c5893926443db2ca204543529c4f1a  firefox-3.6a1pre-10-i686.pkg.tar.gz

[/slightlyOT]

Offline

#224 2009-07-04 11:06:37

markg85
Member
Registered: 2009-06-27
Posts: 149

Re: Official firefox-pgo thread

bangkok_manouel wrote:

[slightlyOT]

For anyone interested, I've done a PGO build of 3.6a1pre with merged Tracemonkey development branch from Mercurial (i686 - Core2 CPU only):
http://omploader.org/vMXg3Ng/firefox-3. … pkg.tar.gz
f1c5893926443db2ca204543529c4f1a  firefox-3.6a1pre-10-i686.pkg.tar.gz

[/slightlyOT]

Do you also have a x64 build?

Offline

#225 2009-07-04 11:09:30

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Official firefox-pgo thread

markg85 wrote:
bangkok_manouel wrote:

[slightlyOT]

For anyone interested, I've done a PGO build of 3.6a1pre with merged Tracemonkey development branch from Mercurial (i686 - Core2 CPU only):
http://omploader.org/vMXg3Ng/firefox-3. … pkg.tar.gz
f1c5893926443db2ca204543529c4f1a  firefox-3.6a1pre-10-i686.pkg.tar.gz

[/slightlyOT]

Do you also have a x64 build?

nope sorry, my only x86_64 arch machine is a xorg-less home server :-(

Offline

Board footer

Powered by FluxBB