Closed Bug 412829 Opened 17 years ago Closed 8 years ago

Linux x86_64 and ICC 10 problem

Categories

(Firefox Build System :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: dmitry.leonenko, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11 Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11 I'm using Intel(R) 10.1.008 on Ubuntu Linux (7.10 x86_64) and Ubuntu's Firefox package (http://packages.ubuntu.com/gutsy/source/firefox). First I encounter an error about C++ compiler temporary file removal. After removing it's checking from configure file I encounter next problem, saying something like: ld -shared -z defs -h libmozjs.so -o libmozjs.so jsapi.o jsarena.o jsarray.o jsatom.o jsbool.o jscntxt.o jsdate.o jsdbgapi.o jsdhash.o jsdtoa.o jsemit.o jsexn.o jsfun.o jsgc.o jshash.o jsinterp.o jsiter.o jslock.o jslog2.o jslong.o jsmath.o jsnum.o jsobj.o jsopcode.o jsparse.o jsprf.o jsregexp.o jsscan.o jsscope.o jsscript.o jsstr.o jsutil.o jsxdrapi.o jsxml.o prmjtime.o -lm -ldl -L/usr/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -ldl -lm jsapi.o: In function `JS_free': /usr/src/firefox-2.0.0.11+2nobinonly/build-tree/mozilla/js/src/jsapi.c:1690: undefined reference to `free' jsapi.o: In function `JS_CompileFile': /usr/src/firefox-2.0.0.11+2nobinonly/build-tree/mozilla/js/src/jsapi.c:3929: undefined reference to `stdin' jsapi.o: In function `JS_malloc': /usr/src/firefox-2.0.0.11+2nobinonly/build-tree/mozilla/js/src/jsapi.c:1667: undefined reference to `malloc' jsapi.o: In function `js_generic_native_method_dispatcher': /usr/src/firefox-2.0.0.11+2nobinonly/build-tree/mozilla/js/src/jsapi.c:3659: undefined reference to `memmove' jsapi.o: In function `JS_ClearNewbornRoots': /usr/src/firefox-2.0.0.11+2nobinonly/build-tree/mozilla/js/src/jsapi.c:1764: undefined reference to `_intel_fast_memset' jsapi.o: In function `JS_strdup': /usr/src/firefox-2.0.0.11+2nobinonly/build-tree/mozilla/js/src/jsapi.c:1703: undefined reference to `_intel_fast_memcpy' .................. and so on Then I removed "-z defs" from configure file. And third error I've found: Building deps for xptcinvoke_x86_64_linux.cpp icpc -o xptcinvoke_x86_64_linux.o -c -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=2008011721 -DEXPORT_XPTC_API -I../../../../../../dist/include/xpcom -I../../../../../../dist/include -I/usr/include/nspr -I/usr/include -I/usr/include -I./../.. -KPIC -fno-handle-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -g -Wall -O2 -fshort-wchar -pthread -DNDEBUG -DTRIMMED -pipe -w -O3 -xT -parallel -fPIC -lguide -lpthread -g -lguide -lpthread -L/opt/intel/cce/10.1.008/lib -DHAVE_64BIT_OS=1 -DMOZILLA_VERSION=\"1.8.1.11\" -DMOZILLA_VERSION_U=1.8.1.11 -DD_INO=d_ino -DSTDC_HEADERS=1 -DHAVE_ST_BLKSIZE=1 -DHAVE_SIGINFO_T=1 -DHAVE_INT16_T=1 -DHAVE_INT32_T=1 -DHAVE_INT64_T=1 -DHAVE_UINT=1 -DHAVE_UNAME_DOMAINNAME_FIELD=1 -DHAVE_DIRENT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SYS_BITYPES_H=1 -DHAVE_MEMORY_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GNU_LIBC_VERSION_H=1 -DHAVE_NL_TYPES_H=1 -DHAVE_MALLOC_H=1 -DHAVE_X11_XKBLIB_H=1 -DHAVE_SYS_STATVFS_H=1 -DHAVE_SYS_STATFS_H=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 -DMOZ_DEFAULT_MOZILLA_FIVE_HOME=\"\" -DMOZ_USER_DIR=\".mozilla\" -DMOZ_XUL=1 -DMOZ_PROFILELOCKING=1 -DMOZ_MORK=1 -DMOZ_DLL_SUFFIX=\".so\" -DXP_UNIX=1 -DUNIX_ASYNC_DNS=1 -DJS_THREADSAFE=1 -DMOZ_ACCESSIBILITY_ATK=1 -DMOZILLA_1_8_BRANCH=1 -DMOZILLA_LOCALE_VERSION=\"1.8.1\" -DMOZILLA_REGION_VERSION=\"1.8.1\" -DMOZILLA_SKIN_VERSION=\"1.8\" -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT xptcinvoke_x86_64_linux.cpp xptcinvoke_x86_64_linux.cpp(153) (col. 21): error: register xmm0's type does not match variable type "double" xptcinvoke_x86_64_linux.cpp(154) (col. 21): error: register xmm1's type does not match variable type "double" xptcinvoke_x86_64_linux.cpp(155) (col. 21): error: register xmm2's type does not match variable type "double" xptcinvoke_x86_64_linux.cpp(156) (col. 21): error: register xmm3's type does not match variable type "double" xptcinvoke_x86_64_linux.cpp(157) (col. 21): error: register xmm4's type does not match variable type "double" xptcinvoke_x86_64_linux.cpp(158) (col. 21): error: register xmm5's type does not match variable type "double" xptcinvoke_x86_64_linux.cpp(159) (col. 21): error: register xmm6's type does not match variable type "double" xptcinvoke_x86_64_linux.cpp(160) (col. 21): error: register xmm7's type does not match variable type "double" compilation aborted for xptcinvoke_x86_64_linux.cpp (code 2) Reproducible: Always Steps to Reproduce: 1. Install ICC 10.1.008 2. Try to compile from source package of Ubuntu Linux 3. Actual Results: Error Expected Results: Successfully build I've copied all libs from /opt/intel/cce/10.1.008/lib to /usr/lib CFLAGS="-O3 -xT -parallel -lguide -lpthread"
The `undefined reference to` sounds like an ICC bug in -z defs. I don't know much about that inline assembly in xptcinvoke: perhaps ICC typedefs things differently and that needs to be a float? For reference, see http://mxr.mozilla.org/mozilla/source/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_64_linux.cpp#152 Schrep, could you ask the intel ICC group about this particular usage of inline assembly?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Bug against ancient compiler that we no longer support.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Component: Build Config → General
Product: Firefox → Firefox Build System
You need to log in before you can comment on or make changes to this bug.