You are not logged in.

#126 2009-06-19 06:29:53

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

Re: Official firefox-pgo thread

kazuo wrote:

Update your source links a build2 of rc1 is available.

On AUR there is RC1 release available.

bond wrote:

hmmm I tried updating my trunk and today I can't build anymore ...

getting this error on both 1.9.1 and Central trees:

Encountered the same last night when trying to build debug build. Since that every build stops with this for me...
I'm getting tired of firefox hmm


Proud ex-maintainer of firefox-pgo

Offline

#127 2009-06-19 10:12:54

bingyuan
Member
Registered: 2008-11-12
Posts: 1

Re: Official firefox-pgo thread

blasse wrote:

Encountered the same last night when trying to build debug build. Since that every build stops with this for me...
I'm getting tired of firefox hmm

Please...don't give up.
I've complished the compilation, for twice, with your help, Thank you!:)
My modification based on your files:
1, as you mentioned, remove ldflags2.patch and comment out the line

sed -i -e "s/${pkgname}-${pkgver}/mozilla-1.9.1/g" -e "s/mozilla-devel-${pkgver}/mozilla-devel-1.9.1/g" ${pkgdir}/usr/lib/pkgconfig/*.pc || return 1

2, replace the line

rm -rf "$pkgdir"/usr/lib/firefox-devel-${pkgver}/

with

rm -rf "$pkgdir"/usr/lib/firefox-devel-3.5/

it will delete the devel files;
3, unset CFLAGS and CXXFLAGS in PKGBUILD;
4, use CFLAGS in mozconfig, mine:

ac_add_options --enable-optimize="-march=native -O2 -pipe -fomit-frame-pointer -fforce-addr -ftracer -floop-block -floop-interchange -floop-strip-mine"

BTW,on my machine,

-finline-functions -funswitch-loops

leads to errors like "...coverage...".

Last edited by bingyuan (2009-06-19 10:19:49)

Offline

#128 2009-06-22 00:10:03

bond
Member
From: Melbourne, Australia
Registered: 2009-05-05
Posts: 62

Re: Official firefox-pgo thread

well it builds and runs fine without profiledbuild in the client.mk line ....

I had accidently deleted my old pgo pkg files, so at least I can still have a new firefox build installed roll

I'll try playing around with some different flags in the mozconfig to see if I can get rid of this __gcov_ error ...


Has anyone thought of writing a better profileserver.sh script?
ie one that automatically loads up the sunspider page and runs some tests, then closes the browser?

Offline

#129 2009-06-22 05:13:13

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

Re: Official firefox-pgo thread

OK, I've got it compiled smile
http://omploader.org/vMXY2cA
To deal with gcov problem I've added -lgcov to ldflags. Also I've disabled almost all patches and optimizations (I've left mozilla's default). And I compiled it with gcc-4.5 (gcc-snapshot from AUR) - gcc4.4 finishes with errors with the same settings.


Proud ex-maintainer of firefox-pgo

Offline

#130 2009-06-22 07:56:08

oddsocks
Member
Registered: 2008-12-08
Posts: 47

Re: Official firefox-pgo thread

bond wrote:

Has anyone thought of writing a better profileserver.sh script?
ie one that automatically loads up the sunspider page and runs some tests, then closes the browser?

I thought the generic python script already does this? I used it to build a new minefield yesterday from central.

Offline

#131 2009-06-22 17:28:43

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

Re: Official firefox-pgo thread

http://omploader.org/vMXY5Ng/firefox-pgo-beta.tar.gz - firefox-pgo-beta-3.5rc2-2
Has gcc-snapshot in deps, cleared patches and removed devel libs. Compiles and works fine for me smile
If testing confirms this workaround I will update aur package.


Proud ex-maintainer of firefox-pgo

Offline

#132 2009-06-22 18:26:04

seenxu
Member
Registered: 2008-08-25
Posts: 111

Re: Official firefox-pgo thread

blasse wrote:

http://omploader.org/vMXY5Ng/firefox-pgo-beta.tar.gz - firefox-pgo-beta-3.5rc2-2
Has gcc-snapshot in deps, cleared patches and removed devel libs. Compiles and works fine for me smile
If testing confirms this workaround I will update aur package.

is it 32bit or 64bit?

Offline

#133 2009-06-22 18:39:54

jordz
Member
Registered: 2006-02-01
Posts: 250

Re: Official firefox-pgo thread

I'm building gcc-snapshot and I'm going to try to build the new pkg rel.
How did you found out the new gcc would help?

Edit: FYI use makepkg --source smile

Last edited by jordz (2009-06-22 18:41:06)

Offline

#134 2009-06-22 19:47:54

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

Re: Official firefox-pgo thread

seenxu wrote:
blasse wrote:

http://omploader.org/vMXY5Ng/firefox-pgo-beta.tar.gz - firefox-pgo-beta-3.5rc2-2
Has gcc-snapshot in deps, cleared patches and removed devel libs. Compiles and works fine for me smile
If testing confirms this workaround I will update aur package.

is it 32bit or 64bit?

It's plain pkgbuild and other files. If you build it 32bit - it will be 32bit. If you build it 64bit - i will be 64bit smile

jordz wrote:

I'm building gcc-snapshot and I'm going to try to build the new pkg rel.
How did you found out the new gcc would help?

The problems started with gcc4.4, Ted Mielczarek fro mozilla also suggested bugs in gcc. So I've decided to try newer version, which luckily is available on AUR big_smile


Proud ex-maintainer of firefox-pgo

Offline

#135 2009-06-22 19:52:48

jordz
Member
Registered: 2006-02-01
Posts: 250

Re: Official firefox-pgo thread

No luck sad x86_64 + testing

OBJDIR=/home/jordz/Desktop/firefox-pgo-beta/src/mozilla-1.9.1/ff-pgo python /home/jordz/Desktop/firefox-pgo-beta/src/mozilla-1.9.1/ff-pgo/_profile/pgo/profileserver.py
INFO | (automation.py) | Application pid: 19546
TEST-UNEXPECTED-FAIL | (automation.py) | Exited with code -11 during test run
INFO | (automation.py) | Application ran for: 0:00:00.028509
make: *** [profiledbuild] Error 245
==> ERROR: Build Failed.
    Aborting...

Offline

#136 2009-06-22 19:56:50

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

Re: Official firefox-pgo thread

What error when running ./firefox -no-remote from src/ff-pgo/dist/bin ?


Proud ex-maintainer of firefox-pgo

Offline

#137 2009-06-22 20:12:52

seenxu
Member
Registered: 2008-08-25
Posts: 111

Re: Official firefox-pgo thread

blasse wrote:

It's plain pkgbuild and other files. If you build it 32bit - it will be 32bit. If you build it 64bit - i will be 64bit smile

sorry, my bad, I mean, if ff3.5 can already be built on x86_64 with pgo. I'm not sure if someone in this thread had already done it succussfully. at least for me, still no luck.

Offline

#138 2009-06-22 20:16:00

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

Re: Official firefox-pgo thread

seenxu wrote:
blasse wrote:

It's plain pkgbuild and other files. If you build it 32bit - it will be 32bit. If you build it 64bit - i will be 64bit smile

sorry, my bad, I mean, if ff3.5 can already be built on x86_64 with pgo. I'm not sure if someone in this thread had already done it succussfully. at least for me, still no luck.

I'm on 64bit smile So it can be done. btw. Remember to do pacman -S base-devel before install - without full devel something may not work....


Proud ex-maintainer of firefox-pgo

Offline

#139 2009-06-22 20:22:37

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

Re: Official firefox-pgo thread

Compiles fine for me on x86_64 using firefox-pgo-beta-3.5rc2-1 and AFAIK the pkgbuild was just cleaned up in -2.

Thanks blasse for all of your hard work!


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

Offline

#140 2009-06-22 20:26:18

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

Re: Official firefox-pgo thread

pyther wrote:

Compiles fine for me on x86_64 using firefox-pgo-beta-3.5rc2-1 and AFAIK the pkgbuild was just cleaned up in -2.

Thanks blasse for all of your hard work!

Cleaned pkgbuild, cleaned optimizations, cleaned patches and added export for gcc-4.5. But that makes it work on my rig wink


Proud ex-maintainer of firefox-pgo

Offline

#141 2009-06-22 20:54:29

seenxu
Member
Registered: 2008-08-25
Posts: 111

Re: Official firefox-pgo thread

blasse wrote:
pyther wrote:

Compiles fine for me on x86_64 using firefox-pgo-beta-3.5rc2-1 and AFAIK the pkgbuild was just cleaned up in -2.

Thanks blasse for all of your hard work!

Cleaned pkgbuild, cleaned optimizations, cleaned patches and added export for gcc-4.5. But that makes it work on my rig wink

oh, my... gcc4.5 hmm

Offline

#142 2009-06-22 23:04:53

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

Re: Official firefox-pgo thread

seenxu wrote:

oh, my... gcc4.5 hmm

That was my expression at first, but Allan did a nice job with gcc-snapshot! You can have both gcc-4.4 (official) and gcc-4.5 installed at the same time.


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

Offline

#143 2009-06-23 00:54:45

xyrico
Member
Registered: 2009-06-11
Posts: 13

Re: Official firefox-pgo thread

Blasse, you're my hero. That was the first PGO Firefox I've been able to build in over a month. I had also read that GCC was to blame, but was kinda afraid to run an untested version since I compile a lot of stuff. However, the 4.5 snapshot you suggested seems to co-exist quite happily with 4.4. I went from 6000 to 4000ms on Sunspider vs a regular RC2 build on 32-bit, which is not too shabby.

Offline

#144 2009-06-23 09:28:15

jordz
Member
Registered: 2006-02-01
Posts: 250

Re: Official firefox-pgo thread

blasse wrote:

What error when running ./firefox -no-remote from src/ff-pgo/dist/bin ?

[jordz@jordz-desktop bin]$ ./firefox-bin 
./firefox-bin: error while loading shared libraries: libxul.so: cannot open shared object file: No such file or directory
[jordz@jordz-desktop bin]$ ./firefox
./run-mozilla.sh: line 131: 17729 Segmentation fault      "$prog" ${1+"$@"}
[jordz@jordz-desktop bin]$

Offline

#145 2009-06-23 10:01:55

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

Re: Official firefox-pgo thread

That is the same I've got before switching to gcc-4.5... Could you try compile it without PGO and see if it will work that way?


Proud ex-maintainer of firefox-pgo

Offline

#146 2009-06-23 11:46:41

bond
Member
From: Melbourne, Australia
Registered: 2009-05-05
Posts: 62

Re: Official firefox-pgo thread

I also get the error ...

./run-mozilla.sh: line 131: 22865 Segmentation fault      "$prog" ${1+"$@"}

I'll try non pgo, and debug in a moment

Offline

#147 2009-06-23 14:12:31

bond
Member
From: Melbourne, Australia
Registered: 2009-05-05
Posts: 62

Re: Official firefox-pgo thread

built non profiledbuild fine roll

Offline

#148 2009-06-23 17:43:28

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

Re: Official firefox-pgo thread

OK, so something is wrong with profiling. Try disabling optimize in mozconfig. First by commenting the line, second if the first doesn't help - add --disable-optimize. Also ldflags2 patch can help (but is intended for help in other problem, so don't expect a miracle). Unsetting ldflags may also help.


Proud ex-maintainer of firefox-pgo

Offline

#149 2009-06-23 22:31:44

bond
Member
From: Melbourne, Australia
Registered: 2009-05-05
Posts: 62

Re: Official firefox-pgo thread

hmm, yep I'll try removing those extra flags in the optimize line.

oh, btw your depends had libxt listed twice, and you should add sqlite3 to the depends as well,
when I went to built mozilla-central it required > 3.6.14-1 before it would start building.

Last edited by bond (2009-06-23 22:56:20)

Offline

#150 2009-06-24 03:43:25

methuselah
Member
Registered: 2007-10-02
Posts: 570

Re: Official firefox-pgo thread

xyrico wrote:

Blasse, you're my hero. That was the first PGO Firefox I've been able to build in over a month. I had also read that GCC was to blame, but was kinda afraid to run an untested version since I compile a lot of stuff. However, the 4.5 snapshot you suggested seems to co-exist quite happily with 4.4. I went from 6000 to 4000ms on Sunspider vs a regular RC2 build on 32-bit, which is not too shabby.

Yeah that gcc-snapshot has solved everything for me. I built one using your default package and my cflags changed to "march=athlon64-sse3" and "-Os", and it built perfectly. My benchmarks went from 4800 to 4600, not much but at least it seems a bit quicker.

Thanks blasse. You might as well remove that ldflags2 patch that was from the mozilla bugs page, because it does screws something up.

Last edited by methuselah (2009-06-24 03:43:43)

Offline

Board footer

Powered by FluxBB