Open Bug 386840 Opened 17 years ago Updated 2 years ago

Firefox doesn't build with Intel C++ Compiler (ICC) on Mac

Categories

(Firefox Build System :: General, enhancement)

x86
macOS
enhancement

Tracking

(Not tracked)

People

(Reporter: simon.strandman, Unassigned)

Details

(Whiteboard: [platform-rel-Intel])

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X; sv-se) AppleWebKit/419.2.1 (KHTML, like Gecko) Safari/419.3
Build Identifier: 

Hello

I'm trying to build Firefox with intel icc 10.0 on Mac OS X 10.4.10. Both latest trunkt (as of today) and 2.0.0.4 fails with:

rm -f libnspr4.a
/usr/bin/ar cr libnspr4.a ./prvrsion.o io/./prfdcach.o io/./prmwait.o
io/./prmapopt.o io/./priometh.o io/./pripv6.o io/./prlayer.o io/./prlog.o
io/./prmmap.o io/./prpolevt.o io/./prprf.o io/./prscanf.o io/./prstdio.o
threads/./prcmon.o threads/./prrwlock.o threads/./prtpd.o linking/./prlink.o
malloc/./prmem.o md/./prosdep.o memory/./prshm.o memory/./prshma.o
memory/./prseg.o misc/./pralarm.o misc/./pratom.o misc/./prcountr.o
misc/./prdtoa.o misc/./prenv.o misc/./prerr.o misc/./prerror.o
misc/./prerrortable.o misc/./prinit.o misc/./prinrval.o misc/./pripc.o
misc/./prlog2.o misc/./prlong.o misc/./prnetdb.o misc/./prolock.o
misc/./prrng.o misc/./prsystem.o misc/./prthinfo.o misc/./prtpool.o
misc/./prtrace.o misc/./prtime.o malloc/./prmalloc.o pthreads/./ptsynch.o
pthreads/./ptio.o pthreads/./ptthread.o pthreads/./ptmisc.o md/unix/./unix.o
md/unix/./unix_errors.o md/unix/./uxproces.o md/unix/./uxrng.o
md/unix/./uxshm.o md/unix/./uxwrap.o md/unix/./darwin.o
md/unix/./os_Darwin_x86.o 
ranlib libnspr4.a
rm -f libnspr4.dylib
icc -dynamiclib -compatibility_version 1 -current_version 1 -all_load
-install_name @executable_path/libnspr4.dylib -headerpad_max_install_names -o
libnspr4.dylib ./prvrsion.o io/./prfdcach.o io/./prmwait.o io/./prmapopt.o
io/./priometh.o io/./pripv6.o io/./prlayer.o io/./prlog.o io/./prmmap.o
io/./prpolevt.o io/./prprf.o io/./prscanf.o io/./prstdio.o threads/./prcmon.o
threads/./prrwlock.o threads/./prtpd.o linking/./prlink.o malloc/./prmem.o
md/./prosdep.o memory/./prshm.o memory/./prshma.o memory/./prseg.o
misc/./pralarm.o misc/./pratom.o misc/./prcountr.o misc/./prdtoa.o
misc/./prenv.o misc/./prerr.o misc/./prerror.o misc/./prerrortable.o
misc/./prinit.o misc/./prinrval.o misc/./pripc.o misc/./prlog2.o
misc/./prlong.o misc/./prnetdb.o misc/./prolock.o misc/./prrng.o
misc/./prsystem.o misc/./prthinfo.o misc/./prtpool.o misc/./prtrace.o
misc/./prtime.o malloc/./prmalloc.o pthreads/./ptsynch.o pthreads/./ptio.o
pthreads/./ptthread.o pthreads/./ptmisc.o md/unix/./unix.o
md/unix/./unix_errors.o md/unix/./uxproces.o md/unix/./uxrng.o
md/unix/./uxshm.o md/unix/./uxwrap.o md/unix/./darwin.o
md/unix/./os_Darwin_x86.o  -framework CoreServices -framework CoreFoundation
xild: error unable_to_open_argument_file1: unable to open argument file
'executable_path/libnspr4.dylib'
make[5]: *** [libnspr4.dylib] Error 1
make[4]: *** [export] Error 2
make[3]: *** [export] Error 2
make[2]: *** [tier_nspr] Error 2
make[1]: *** [default] Error 2
make: *** [build] Error 2

My mozconfig only sets CC and CXX to icc and icpc and sources the firefox mozconfig.

Reproducible: Always

Steps to Reproduce:
1. Check out the latest sources from CVS
2. Create a mozconfig that builds firefox and sets CC=icc CXX=ipcp
3. build
Summary: Firefox doesn't build with intel icc om mac. → Firefox doesn't build with Intel C++ Compiler (ICC) on Mac
Another, probably unrelated problem, when buildning with icc on OSX is that you get tons of these warnings:
icc: command line warning #10006: ignoring unknown option '-no-cpp-precomp'

-no-cpp-precomp seems to be specific to apple's gcc.

Also completely disabling optimizations (-O0) doesn't seem to help.
See bug 403224 for a way to build just spidermonkey with ICC. Confirming, as there are definitely other issues.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Product: Firefox → Core
QA Contact: build.config → build-config
Whiteboard: [platform-rel-Intel]
platform-rel: --- → ?
platform-rel: ? → ---
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.