Issues with history in my builds

Discussion of third-party/unofficial Firefox/Thunderbird/SeaMonkey builds.
Post Reply
neilio
Posts: 235
Joined: November 16th, 2002, 8:42 am

Issues with history in my builds

Post by neilio »

This is pretty specific, so I'm not sure if someone can help, but I could use some advice from someone wise in the arcane lore of gcc compilation flags.

My G5-optimized builds for Mac OS X work great, and definitely seem to be snappier. The biggest issue I've found, though, is that history is randomly discarded when the application quits. It's random in that while it generally happens every time on quit, sometimes it doesn't and history is maintained.

I can't get my builds to retain more than a day's worth of history, at any rate. Does anyone have any idea what I could do to fix this? I'm guessing it's a bug in the G5 optimizations, but I'm not too smart when it comes to this stuff.

Here's my .mozconfig:

Code: Select all

. $topsrcdir/browser/config/mozconfig

mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --enable-application=browser

ac_add_options --enable-strip
ac_add_options --enable-static
ac_add_options --enable-pthreads

ac_add_options --enable-optimize="-O3 -faltivec -mcpu=970 -mtune=970 -mpowerpc64 -mpowerpc-gpopt"

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

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
Slumming at the beatnikPad : http://www.beatnikpad.com/
User avatar
krmathis
Posts: 4699
Joined: May 24th, 2004, 9:40 pm
Location: Oslo, Norway
Contact:

Post by krmathis »

Strange issue!
I have never seen this with any of my builds, so I also think its caused by your G5 optimization.

Some suggestions:
1. Make sure you have the latest GCC version.
gcc --version
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1671)
Copyright (C) 2002 Free Software Foundation, Inc.

2. Try some different compiler flags, in hope one of them make the issue go away:

Code: Select all

"-O3 -faltivec -mcpu=970 -mtune=970 -mpowerpc -mpowerpc-gpopt"
"-O2 -faltivec -mcpu=970 -mtune=970 -mpowerpc64 -mpowerpc-gpopt"
"-O2 -faltivec -mcpu=970 -mtune=970 -mpowerpc -mpowerpc-gpopt"
"-Os -faltivec -mcpu=970 -mtune=970 -mpowerpc64 -mpowerpc-gpopt"

Hope you sort it out! :)
neilio
Posts: 235
Joined: November 16th, 2002, 8:42 am

Post by neilio »

Cool, thanks for those, powerbook! Just one quick question - can I just rerun the build after changing these flags in my mozconfig, or do I need to pull a completely new, clean version of the source from CVS?
User avatar
krmathis
Posts: 4699
Joined: May 24th, 2004, 9:40 pm
Location: Oslo, Norway
Contact:

Post by krmathis »

No need to pull a new source, but you might want to clean the source directory.
make -w -f client.mk clean
MozJF
Posts: 2007
Joined: July 14th, 2003, 10:07 am
Location: Near Atlantic Ocean

Post by MozJF »

or better : make a tarball of your source after getting in from CVS.

After, remove mozilla building directory, and untar a tar version ;)
MozJF
neilio
Posts: 235
Joined: November 16th, 2002, 8:42 am

Post by neilio »

I think I found the problem! I just did a bunch of builds with various flags turned on and off, and it seems that switching -mpowerpc64 to -mpowerpc fixes both the URL Manager conflict as well as the history disappearing bug.

Whoo-hoo!
Slumming at the beatnikPad : http://www.beatnikpad.com/
User avatar
krmathis
Posts: 4699
Joined: May 24th, 2004, 9:40 pm
Location: Oslo, Norway
Contact:

Post by krmathis »

Excellent! :D
Post Reply