MozillaZine

[FX] PowerBook: 2005-07-16 [Trunk/OS X] (G4, O3, Altivec)

Discussion of third-party/unofficial Firefox/Thunderbird/SeaMonkey builds.
krmathis

User avatar
 
Posts: 4699
Joined: May 24th, 2004, 9:40 pm
Location: Oslo, Norway

Post Posted November 3rd, 2004, 10:47 pm

xebechene wrote:excellent :P
did you use a special method to build them for a G4 (i mean different from some build under linux) ?
The process for building Firefox under Mac OS X is very simular to GNU/Linux.
Its using the same compiler (GCC), and I think I could use the same .mozconfig file as well (with PPC7450 optimization and all).

I run the following script to build Firefox:
#!/bin/sh
export CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
cvs co -r AVIARY_1_0_20040515_BRANCH mozilla/client.mk mozilla/browser/config
cd mozilla/
make -f client.mk

tobstone
 
Posts: 1
Joined: November 4th, 2004, 1:47 am
Location: Neuss

Post Posted November 4th, 2004, 1:50 am

this is really lightning fast on my imac g4, i think about switching from safari now.
--
tobias steinhoff
franziskanerstrasse 51
41063 moenchengladbach
germany

http://mactobias.de

krmathis

User avatar
 
Posts: 4699
Joined: May 24th, 2004, 9:40 pm
Location: Oslo, Norway

Post Posted November 4th, 2004, 9:38 am

11/04

xebechene
 
Posts: 176
Joined: November 11th, 2003, 5:55 pm

Post Posted November 4th, 2004, 5:42 pm

ok thanx for the information
yeah i thought too that gcc was The compiler:)

krmathis

User avatar
 
Posts: 4699
Joined: May 24th, 2004, 9:40 pm
Location: Oslo, Norway

Post Posted November 5th, 2004, 10:14 am

11/05

ankh

User avatar
 
Posts: 503
Joined: November 8th, 2003, 6:09 pm

Post Posted November 5th, 2004, 12:25 pm

I just downloaded from your "latest build" link
firefox-ppc7450-2004.11.05.dmg.gz

The "About" window shows this:
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.5) Gecko/20041104 Firefox/1.0RC2

(Edited) I don't know how FF's "about" box identification works, but I'm assuming the "About" window is supposed to be updated manually, and wasn't, for the 1105 build?

Note, I'm using a G3/900

Talkback is still not showing up in this build, for me.

neilio
 
Posts: 235
Joined: November 16th, 2002, 8:42 am

Post Posted November 5th, 2004, 10:29 pm

These are great - thanks!

I was wondering - is there any way to build optimized for the G5 processor? I have no idea what I would add to the .mozconfig... if anyone has any ideas, I'd love to hear them.
Slumming at the beatnikPad : http://www.beatnikpad.com/

krmathis

User avatar
 
Posts: 4699
Joined: May 24th, 2004, 9:40 pm
Location: Oslo, Norway

Post Posted November 5th, 2004, 11:32 pm

@ankh. The date in the about box should be updating automaticly, but it obviously does not.
I am aware of that and will be looking into it...

@theNonsuch. Try to build Firefox optimized for G5 with the following .mozconfig file. :)
Code: Select all
 . $topsrcdir/browser/config/mozconfig

export MOZILLA_OFFICIAL=1
export BUILD_OFFICIAL=1

mk_add_options MOZILLA_OFFICIAL=1
mk_add_options BUILD_OFFICIAL=1
mk_add_options MOZ_MAKE_FLAGS=-j2

ac_add_options --enable-pthreads
ac_add_options --enable-prebinding
ac_add_options --enable-static
ac_add_options --enable-strip
ac_add_options --enable-strip-libs
ac_add_options --enable-optimize="-O3 -faltivec -mcpu=970 -mtune=970 -mpowerpc -mpowerpc-gfxopt"

ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.2.8.sdk

ac_add_options --disable-tests
ac_add_options --disable-shared
ac_add_options --disable-debug

ac_add_options --without-system-nspr
ac_add_options --without-system-zlib
ac_add_options --without-system-jpeg
ac_add_options --without-system-png
ac_add_options --without-system-mng

Thats the same .mozconfig file I use, but with PPC970 (G5) optimization instead of PPC7450 (G4).
Hopefully it works!

Source:
http://www.opensource.apple.com/darwins ... Notes.html

krmathis

User avatar
 
Posts: 4699
Joined: May 24th, 2004, 9:40 pm
Location: Oslo, Norway

Post Posted November 6th, 2004, 3:53 am

11/06 ready for you! :)

ankh

User avatar
 
Posts: 503
Joined: November 8th, 2003, 6:09 pm

Post Posted November 6th, 2004, 7:22 am

ok, thanks; I went back to the official build because I got my real first FF crash since October -- perhaps there IS a difference between my G3/750 chip and the G4s you've optimized for! Guess I'll just watch for now (sigh).

krmathis

User avatar
 
Posts: 4699
Joined: May 24th, 2004, 9:40 pm
Location: Oslo, Norway

Post Posted November 6th, 2004, 7:43 am

@ankh.
Sad to say, but it looks like my builds is not working properly on your G3. :(
There sure are differences between G3 and G4 (read here), which seems to make a G4 optimized build unstable on a G3...

So I guess you have two options:
1. Go back to the official builds.
2. Build firefox optimized for G3 yourself. ;)

neilio
 
Posts: 235
Joined: November 16th, 2002, 8:42 am

Post Posted November 6th, 2004, 8:03 am

Hey, powerbook -

I found that page yesterday and made the changes to my .mozconfig file - thanks!

I pulled from CVS successfully, but got an error when the build first started. Do you know what this means?

"configure: error: Your compiler does not follow the C++ specification for temporary object destruction order"

It errors out and quits right after this. I'm running OS 10.3.6, Xcode version 1.5.

Thanks!

Neil
Slumming at the beatnikPad : http://www.beatnikpad.com/

neilio
 
Posts: 235
Joined: November 16th, 2002, 8:42 am

Post Posted November 6th, 2004, 9:15 am

Found the problem - I didn't notice until I re-examined the .mozconfig that you were also including support for OS 10.2. Building right now...
Slumming at the beatnikPad : http://www.beatnikpad.com/

krmathis

User avatar
 
Posts: 4699
Joined: May 24th, 2004, 9:40 pm
Location: Oslo, Norway

Post Posted November 6th, 2004, 11:21 am

theNonsuch wrote:Found the problem - I didn't notice until I re-examined the .mozconfig that you were also including support for OS 10.2. Building right now...
I forgot to mention that you need to install 10.2 SDK with Xcode to use that line in .mozconfig. But seems you found out.

Dont forget to share your build(s), because your probably not the only one with a G5 around here! :D

neilio
 
Posts: 235
Joined: November 16th, 2002, 8:42 am

Post Posted November 6th, 2004, 11:38 am

Okay, I followed the instructions on this page:

http://www.mozilla.org/projects/firefox/build.html

I ran the command make -f client.mk, which took a VERY long time, so I removed the 10.2.8 support for now and tried again. The build took about 1 hour, 15 minutes or so. There were no errors reported when it finished.

Now what do I do? I don't see a Firefox package file anywhere, so I'm assuming I need to do one more thing before this is completed.

Thanks, powerbook! I will most definitely share if I can get this to successfully build.

One last question - once I've run through the entire build process once successfully, after I run a cvs update, are subsequent builds faster? Or do they always take this long?
Slumming at the beatnikPad : http://www.beatnikpad.com/

Return to Third Party/Unofficial Builds


Who is online

Users browsing this forum: No registered users and 2 guests