You are not logged in.

#1 2008-06-05 17:10:36

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Official firefox3 with Profile-Guided Optimization

I posted a feature request to build firefox3 from unstable with PGO enabled, as this package does. Please vote for it if you'd like that too smile

Last edited by Ramses de Norre (2008-06-05 17:15:52)

Offline

#2 2008-06-05 17:31:33

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

Re: Official firefox3 with Profile-Guided Optimization

voted


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

Offline

#3 2008-06-05 17:39:34

X/ax
Member
From: Oost vlaanderen, Belgium
Registered: 2008-01-13
Posts: 275
Website

Re: Official firefox3 with Profile-Guided Optimization

As it would be in place here more than where I got the recommendation for this pkgbuild...
Anyhow, I tried makepkg-c-ing this package, downloaded all the files, etc...

creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gawk... gawk
***
*   Your source tree contains these files:
*         /home/cpf/build/firefox3/src/mozilla/Makefile
*         /home/cpf/build/firefox3/src/mozilla/config/autoconf.mk
*   This indicates that you previously built in the source tree.
*   A source tree build can confuse the separate objdir build.
*
*   To clean up the source tree:
*     1. cd /home/cpf/build/firefox3/src/mozilla
*     2. gmake distclean
***
*** Fix above errors and then restart with               "make -f client.mk build"
make[2]: *** [configure] Error 1
make[2]: Leaving directory `/home/cpf/build/firefox3/src/mozilla'
make[1]: *** [/home/cpf/build/firefox3/src/mozilla/ff-opt-obj/Makefile] Error 2
make[1]: Leaving directory `/home/cpf/build/firefox3/src/mozilla'
make: *** [profiledbuild] Error 2
==> ERROR: Build Failed.
    Aborting...

This is where it stops...
I have no idea what it is... -.-"
If anyone could help me on this one, it would be greatly appreciated.

//edit
Rofl - after reading my own post I somehow suddenly understood the hugely simplistic request it is making... >.>
I must be getting too little sleep or something... >.>
Please ignore this post (unless you can be aided by it)

Last edited by X/ax (2008-06-05 17:41:03)


My coding blog (or an attempt at it)
Archer start page (or an attempt at it)

Offline

#4 2008-06-05 18:33:45

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

Re: Official firefox3 with Profile-Guided Optimization

i compiled just fine severals hour ago. is working fine.

try to delete src and pkg directory and then makepkg


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

Offline

#5 2008-06-05 21:00:51

_Marco_
Member
Registered: 2008-04-21
Posts: 242

Re: Official firefox3 with Profile-Guided Optimization

me too, are you using a too aggressive number of jobs?
I know that too many may broke the compilation.. it seems like the compiler find compiled file where they shouldn't be...

Offline

#6 2008-06-05 21:19:06

X/ax
Member
From: Oost vlaanderen, Belgium
Registered: 2008-01-13
Posts: 275
Website

Re: Official firefox3 with Profile-Guided Optimization

It compiled just fine... The error conveniently told me what to do to solve it... But I was too (What's the name? stupid?) to read it...
I assume I'm running firefox3-rc2 at this moment... however, there's no real location to check (right?)


My coding blog (or an attempt at it)
Archer start page (or an attempt at it)

Offline

#7 2008-06-05 21:41:49

Sp4rkR4t
Member
From: Southampton
Registered: 2008-05-06
Posts: 110

Re: Official firefox3 with Profile-Guided Optimization

Doesn't it say in Help > about

Oh, and back on track I voted. cool

Last edited by Sp4rkR4t (2008-06-05 21:42:16)

Offline

#8 2008-06-06 06:07:51

dhave
Arch Linux f@h Team Member
From: Outside the matrix.
Registered: 2005-05-15
Posts: 1,112

Re: Official firefox3 with Profile-Guided Optimization

Ramses de Norre wrote:

I posted a feature request to build firefox3 from unstable with PGO enabled, as this package does. Please vote for it if you'd like that too smile

Compiled just fine, and didn't take so very long, though the last time I'd try to build Firefox a couple of years ago, it was on a Pentium 3 (850MHz), which was like watching grass grow.

I also cast my vote for the package. Thanks!

Last edited by dhave (2008-06-06 06:08:26)


Donate to Arch!

Tired? There's a nap for that. --anonymous

Offline

#9 2009-04-19 21:06:10

SomeGuyDude
Member
Registered: 2008-10-09
Posts: 271

Re: Official firefox3 with Profile-Guided Optimization

Bumping this just due to frustration.  I get this massive error after compiling/building for a !@#$ HOUR AND A HALF, suddenly spits back an error 2 message, but nothing that useful. This has happened twice. I've been trying to get this thing to work since noon today and haven't a !@#$ clue what to do about it.


And in the midst of such perfection,
I can't help but feel diseased.

Offline

#10 2009-04-20 00:50:24

Zariel
Member
Registered: 2008-10-07
Posts: 446

Re: Official firefox3 with Profile-Guided Optimization

The office one is built with PGO last time I looked, are you using ccache? How many cores and what is the -j # set too?

Offline

#11 2009-04-20 02:08:43

SomeGuyDude
Member
Registered: 2008-10-09
Posts: 271

Re: Official firefox3 with Profile-Guided Optimization

PKGBUILD here:

build() {
  cd ${srcdir}/mozilla

  patch -Np1 -i ${srcdir}/mozilla-firefox-1.0-lang.patch || return 1

  # FS#10836: fixes backgroundcolor parsing with gnome
  patch -Np0 -i ${srcdir}/mozbug421977.patch || return 1

  cp ${srcdir}/mozconfig .mozconfig

  export LDFLAGS="${LDFLAGS} -lX11 -lXrender -Wl,--as-needed"

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

  export CFLAGS="-march=native"
  export CXXFLAGS="-march=native"
#  sed -e 's/#CFLAGS#/'"$CFLAGS"'/g' <"$srcdir"/mozconfig >.mozconfig

  LD_PRELOAD="" make -f client.mk profiledbuild MOZ_MAKE_FLAGS="${MAKEFLAGS}" || return 1
  kill $XPID

  make -j1 DESTDIR=${pkgdir} -C ff-opt-obj install || return 1

I've changed the -j1 to j3 a few times, added an -o2 or o3 to the CFLAGS, no go.

I'm on a Core2Duo proc, don't have ccache installed.

Last edited by SomeGuyDude (2009-04-20 02:10:06)


And in the midst of such perfection,
I can't help but feel diseased.

Offline

#12 2009-04-22 17:40:36

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: Official firefox3 with Profile-Guided Optimization

My prob appears to be related to the recent Pango 1.24.1 update...

make[7]: *** [gfxPangoFonts.o] Error 1
make[7]: Leaving directory `/home/bbs/Desktop/mozilla-1.9.1/obj-x86_64-unknown-linux-gnu/gfx/thebes/src'
make[6]: *** [libs] Error 2
make[6]: Leaving directory `/home/bbs/Desktop/mozilla-1.9.1/obj-x86_64-unknown-linux-gnu/gfx/thebes'
make[5]: *** [libs] Error 2
make[5]: Leaving directory `/home/bbs/Desktop/mozilla-1.9.1/obj-x86_64-unknown-linux-gnu/gfx'
make[4]: *** [libs_tier_gecko] Error 2
make[4]: Leaving directory `/home/bbs/Desktop/mozilla-1.9.1/obj-x86_64-unknown-linux-gnu'
make[3]: *** [tier_gecko] Error 2
make[3]: Leaving directory `/home/bbs/Desktop/mozilla-1.9.1/obj-x86_64-unknown-linux-gnu'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/home/bbs/Desktop/mozilla-1.9.1/obj-x86_64-unknown-linux-gnu'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/bbs/Desktop/mozilla-1.9.1'
make: *** [profiledbuild] Error 2

Going to downgrade to 1.24.0 and give it another shot...

Last edited by adamlau (2009-04-22 17:53:26)


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#13 2009-04-22 17:58:20

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

Re: Official firefox3 with Profile-Guided Optimization

adamlau wrote:

My prob appears to be related to the recent Pango 1.24.1 update...

make[7]: *** [gfxPangoFonts.o] Error 1
make[7]: Leaving directory `/home/bbs/Desktop/mozilla-1.9.1/obj-x86_64-unknown-linux-gnu/gfx/thebes/src'
make[6]: *** [libs] Error 2
make[6]: Leaving directory `/home/bbs/Desktop/mozilla-1.9.1/obj-x86_64-unknown-linux-gnu/gfx/thebes'
make[5]: *** [libs] Error 2
make[5]: Leaving directory `/home/bbs/Desktop/mozilla-1.9.1/obj-x86_64-unknown-linux-gnu/gfx'
make[4]: *** [libs_tier_gecko] Error 2
make[4]: Leaving directory `/home/bbs/Desktop/mozilla-1.9.1/obj-x86_64-unknown-linux-gnu'
make[3]: *** [tier_gecko] Error 2
make[3]: Leaving directory `/home/bbs/Desktop/mozilla-1.9.1/obj-x86_64-unknown-linux-gnu'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/home/bbs/Desktop/mozilla-1.9.1/obj-x86_64-unknown-linux-gnu'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/bbs/Desktop/mozilla-1.9.1'
make: *** [profiledbuild] Error 2

Going to downgrade to 1.24.0 and give it another shot...

you need this patch

diff -up xulrunner-1.9.1/mozilla-central/gfx/thebes/src/gfxPangoFonts.cpp.old xulrunner-1.9.1/mozilla-central/gfx/thebes/src/gfxPangoFonts.cpp
--- mozilla-central/gfx/thebes/src/gfxPangoFonts.cpp.old    2009-02-27 16:19:07.000000000 +0100
+++ mozilla-central/gfx/thebes/src/gfxPangoFonts.cpp    2009-02-27 16:37:30.000000000 +0100
@@ -1299,12 +1299,11 @@ gfx_pango_font_map_context_substitute(Pa
 
 static PangoFcFont *
 gfx_pango_font_map_create_font(PangoFcFontMap *fontmap,
-                               PangoContext *context,
-                               const PangoFontDescription *desc,
-                               FcPattern *pattern)
+                               PangoFcFontKey *fontkey)
 {
+    const FcPattern *p_pattern = pango_fc_font_key_get_pattern(fontkey);
     return PANGO_FC_FONT(g_object_new(GFX_TYPE_PANGO_FC_FONT,
-                                      "pattern", pattern, NULL));
+                                      "pattern", p_pattern, NULL));
 }
 
 static void
@@ -1324,9 +1323,8 @@ gfx_pango_font_map_class_init(gfxPangoFo
     // context_key_* virtual functions are only necessary if we want to
     // dynamically respond to changes in the screen cairo_font_options_t.
 
-    // context_substitute and get_font are not likely to be used but
+    // get_font is not likely to be used but
     //   implemented because the class makes them available.
-    fcfontmap_class->context_substitute = gfx_pango_font_map_context_substitute;
     fcfontmap_class->create_font = gfx_pango_font_map_create_font;
 }

FTR, this has been fixed today in mercurial (1.9.1 branch)

Offline

#14 2009-04-22 18:57:24

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: Official firefox3 with Profile-Guided Optimization

Thanks, bm. I both downgraded and set --disable-pango to no avail.


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

Board footer

Powered by FluxBB