You are not logged in.

#1 2008-04-04 04:06:59

smartcat99s
Member
Registered: 2006-03-17
Posts: 44

Firefox3b5 build failing (64bit)

I'm trying to build firefox3-branded with Profile Guided Optimization, however when it goes to run the binary for the profile run, it bails with this:

OBJDIR=src/mozilla src/run-firefox.sh
mkdir: cannot create directory `src/mozilla/_profileprofile': File exists
src/mozilla/dist/bin/run-mozilla.sh: line 131: 12013 Aborted                 "$prog" ${1+"$@"}
make: *** [profiledbuild] Error 134
==> ERROR: Build Failed.
    Aborting...

(paths were trimmed for length relative to the makepkg root)
The mkdir line is harmless.

The abort shows up when exiting the newly built firefox normally (File -> Exit)

I've done a bit of research, and my /tmp folder does have the correct partitions (1777). There are no errors in Xorg.0.log or any other syslog.

Anybody have a clue on how to get this working?


Running Folding@Home for Team 11108 - My Stats

Offline

#2 2008-04-04 04:44:52

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

Re: Firefox3b5 build failing (64bit)

Offline

#3 2008-04-04 16:26:16

smartcat99s
Member
Registered: 2006-03-17
Posts: 44

Re: Firefox3b5 build failing (64bit)

That made no difference at all. -- It still aborted in the same way.

This is the source of the run-firefox.sh script that the mozilla documentation indicated to use (and is what I'm using)

#!/bin/sh
export NO_EM_RESTART=1
mkdir -p $OBJDIR/_profileprofile
$OBJDIR/dist/bin/firefox -no-remote -profile $OBJDIR/_profileprofile

Running Folding@Home for Team 11108 - My Stats

Offline

#4 2008-04-05 01:59:44

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

Re: Firefox3b5 build failing (64bit)

Could you post your PKGBUILD ?

Offline

#5 2008-04-05 05:32:59

smartcat99s
Member
Registered: 2006-03-17
Posts: 44

Re: Firefox3b5 build failing (64bit)

I started with the firefox3-branded AUR package, then edited one line to enable PGO.

PKGBUILD:

pkgname=firefox3-branded
pkgver=3.0b5
pkgrel=1
pkgdesc="Standalone web browser from mozilla.org"
arch=(i686 x86_64)
license=('MPL' 'GPL' 'LGPL')
depends=('gtk2>=2.12.0' 'pango>=1.18.0' 'gcc-libs' 'libxt' 'libidl2' 'mozilla-common' 'desktop-file-utils' 'cairo' 'curl' 'nss>=3.11.7' 'dbus-glib' 'libpng>=1.2.24-3')
makedepends=('zip' 'imagemagick' 'pkgconfig' 'python')
replaces=('firefox3')
conflicts=('firefox3')
provides=('firefox3=3.0b5')
install=firefox.install
url="http://www.mozilla.org/projects/firefox"
source=(http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${pkgver}/source/firefox-${pkgver}-source.tar.bz2
        mozconfig
        firefox3.desktop
        firefox3-safe.desktop
        mozilla-firefox-1.0-lang.patch)
md5sums=('6a97a0933f8cd71b34436daa41530c29'
         '656971c2710e33110abab0538ba48831'
         'ff1c7b1fb25fee646a0c6d2b08d3b98c'
         '370aa36551a70150c1c6f07672ca0f32'
         'bd5db57c23c72a02a489592644f18995')
options=('!makeflags')

build() {
  export MAKEFLAGS="-j1"
  export HOME=/tmp
  cd ${startdir}/src/mozilla
  patch -Np1 -i $startdir/src/mozilla-firefox-1.0-lang.patch || return 1

  export MOZ_PROJECT=browser

  sed "s/#CFLAGS#/${CFLAGS}/g" ${startdir}/src/mozconfig >.mozconfig
  make -f client.mk profiledbuild || return 1
  make DESTDIR=${startdir}/pkg install || return 1

  cd ${startdir}/pkg/opt/mozilla/lib/firefox-${pkgver}
  export MOZ_DISABLE_GNOME=1
  export MOZTMP=`mktemp -d -p ${startdir}/src`
  LD_LIBRARY_PATH=`pwd` HOME=${MOZTMP} ./firefox-bin -register
  rm -rf ${MOZTMP}
  cd chrome
  find . -maxdepth 1 -type d -exec rm -rf {} \;

  #Remove mozilla devel stuff, this is in XULRunner now
  rm -rf ${startdir}/pkg/opt/mozilla/share
  rm -rf ${startdir}/pkg/opt/mozilla/include
  rm -rf ${startdir}/pkg/opt/mozilla/lib/pkgconfig
  rm -rf ${startdir}/pkg/opt/mozilla/lib/firefox-devel-${pkgver}

  cd ${startdir}/pkg/opt/mozilla/lib && ln -sf firefox-${pkgver} firefox3

  rm -rf ${startdir}/pkg/opt/mozilla/bin/defaults

  mkdir -p ${startdir}/pkg/usr/share/applications
  mkdir -p ${startdir}/pkg/usr/share/pixmaps
  install -m644 ${startdir}/src/mozilla/other-licenses/branding/firefox/default48.png ${startdir}/pkg/usr/share/pixmaps/firefox3.png
  install -m644 ${startdir}/src/firefox3.desktop ${startdir}/pkg/usr/share/applications/
  install -m644 ${startdir}/src/firefox3-safe.desktop ${startdir}/pkg/usr/share/applications/

  mkdir -p ${startdir}/pkg/opt/mozilla/lib/firefox3/chrome/icons/default
  install -m644 ${startdir}/src/mozilla/other-licenses/branding/firefox/mozicon50.xpm ${startdir}/pkg/opt/mozilla/lib/firefox3/chrome/icons/default/default.xpm
  install -m644 ${startdir}/src/mozilla/other-licenses/branding/firefox/mozicon50.xpm ${startdir}/pkg/opt/mozilla/lib/firefox3/icons/default.xpm

  cd ${startdir}/pkg/opt/mozilla/bin && mv firefox firefox3
}

mozconfig:

# load defaults from src tarball
. $topsrcdir/browser/config/mozconfig
# add our own options

# TODO need to wait for version 4.7 to be built
#ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-png
ac_add_options --with-system-mng
ac_add_options --with-pthreads
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-installer
ac_add_options --enable-optimize="#CFLAGS#"
ac_add_options --disable-xinerama
ac_add_options --enable-default-toolkit=cairo-gtk2
ac_add_options --disable-xprint
ac_add_options --enable-strip
ac_add_options --enable-pango
ac_add_options --enable-xft
# TODO we cannot use the system cairo until we go to a version >= 1.5.2
#ac_add_options --enable-system-cairo
ac_add_options --enable-svg
ac_add_options --enable-canvas
ac_add_options --prefix=/opt/mozilla
ac_add_options --with-default-mozilla-five-home=/opt/mozilla/lib/firefox3
ac_add_options --enable-crypto
ac_add_options --enable-single-profile
ac_add_options --disable-profilesharing
ac_add_options --disable-gnomevfs
ac_add_options --enable-official-branding
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
mk_add_options PROFILE_GEN_SCRIPT=/home/xraytux/aurpkgs/firefox3-branded/src/run-firefox.sh

CFLAGS are the defaults in /etc/makepkg.conf "-march=x86-64 -mtune=generic -O2 -pipe"


Running Folding@Home for Team 11108 - My Stats

Offline

#6 2008-04-05 07:22:57

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

Re: Firefox3b5 build failing (64bit)

guess you have to change your build directory, you can try the following:

in mozconfig:

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@

change to:

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/smartcat

in your PKGBUILD:

make DESTDIR=${startdir}/pkg install || return 1

change to:

make DESTDIR=${startdir}/pkg -C ./smartcat install || return 1

Offline

#7 2008-04-05 14:59:09

SpookyET
Member
Registered: 2008-01-27
Posts: 410

Re: Firefox3b5 build failing (64bit)

Offline

#8 2008-04-05 18:54:59

smartcat99s
Member
Registered: 2006-03-17
Posts: 44

Re: Firefox3b5 build failing (64bit)

@bangkok_manouel: That didn't help -- same error

@spookyet: I had to disable using system cairo and disable ccache ("!ccache" in options in the PKGBUILD) to get it to build properly.

I could have gone and found updated cairo packages, but it was easier to reenable firefox's built in cairo libs.


Running Folding@Home for Team 11108 - My Stats

Offline

#9 2008-04-06 02:24:35

SpookyET
Member
Registered: 2008-01-27
Posts: 410

Re: Firefox3b5 build failing (64bit)

smartcat99s wrote:

@bangkok_manouel: That didn't help -- same error

@spookyet: I had to disable using system cairo and disable ccache ("!ccache" in options in the PKGBUILD) to get it to build properly.

I could have gone and found updated cairo packages, but it was easier to reenable firefox's built in cairo libs.

You had to install cairo-ubuntu. If you are on LCD, it's a must.

Offline

Board footer

Powered by FluxBB