2.0.0.7 fails to build on Solaris

RESOLVED INCOMPLETE

Status

()

Firefox
Build Config
RESOLVED INCOMPLETE
11 years ago
6 years ago

People

(Reporter: Tim Bishop, Unassigned)

Tracking

2.0 Branch
Sun
Solaris
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

11 years ago
User-Agent:       Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
Build Identifier: 

The build fails in xpcom/stub:

gmake[4]: Entering directory `/u1/src/garstow/net/firefox/work/mozilla/xpcom/stub'
rm -f libxpcom.so
c++ -O2 -mcpu=ultrasparc  -I/usr/openwin/include -fno-rtti -fno-exceptions -Wno-long-long -pedantic -O2 -mcpu=ultrasparc -fshort-wchar -pthread  -DNDEBUG -DTRIMMED -w -O2 -fPIC -G -Wl,-h,libxpcom.so -o libxpcom.so  nsXPComStub.o    -L/usr/local/lib -R/usr/local/lib   -L../../dist/bin -L../../dist/lib -Wl,-rpath-link,../../dist/bin -lxpcom_core -L../../dist/lib -lplds4 -lplc4 -lnspr4 -L/usr/local/lib -lpthread -ldl -lrt -lsocket -ldl -lm
ld: fatal: option -dn and -h are incompatible
ld: fatal: option -dn and -P are incompatible
ld: fatal: option -dn and -G are incompatible
ld: fatal: Flags processing errors
collect2: ld returned 1 exit status
gmake[4]: *** [libxpcom.so] Error 1
gmake[4]: Leaving directory `/u1/src/garstow/net/firefox/work/mozilla/xpcom/stub'

This is using gcc 4.2.1 and the Solaris ld.

This is the version 2.x build of firefox I've done, so I can't confirm if it's new in 2.0.0.7.

Reproducible: Always
(Reporter)

Updated

11 years ago
OS: Other → Solaris
Hardware: Other → Sun
Version: unspecified → 2.0 Branch

Comment 1

11 years ago
Sun CC/cc is the recommended compiler on Solaris and it's free available with Sun Studio. Could you try Sun compiler to make the build?

Comment 2

10 years ago
gcc/g++ is not supported at this time.
You can use Sun Studio 11 instead.

Perhaps, just fix the ld flags, and gcc 4.2.1 would work fine.
Some days ago, I fixed the ld flags and compiled trunk with gcc 3.4.3, it crashed at startup.
I don't have a gcc 4.2.1 for Solaris, so I don't know.

Confirm this, in case anyone would like to work on it.
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 3

6 years ago
Can you please update to a recent and supported version, create a fresh profile (see http://support.mozilla.com/en-US/kb/managing+profiles for more information), and test this again? 

If you still see this problem, please add a comment to this report and tell us your version and your operating system (Windows, Mac OS, Linux). If the problem does not happen anymore, please set the status of this report to RESOLVED > WORKSFORME. Thanks for your help!
This is against a really old version in a non-standard build configuration, so I'm just going to close it out.
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.