Closed Bug 627721 Opened 14 years ago Closed 14 years ago

jsapi.o will not build on mips64el-unknown-linux-gnu

Categories

(Core :: JavaScript Engine, defect)

Other
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 623277

People

(Reporter: christophe.jarry, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux mips64; en-US; rv:1.9.0.19) Gecko Galeon/2.0.6 (Debian 2.0.6-2.1) Build Identifier: http://releases.mozilla.org/pub/mozilla.org/firefox/releases/4.0b9/source/firefox-4.0b9.source.tar.bz2 After a successful "./configure", I did "make" and build process stopped while building "jsapi.o". Reproducible: Always Steps to Reproduce: 1. Download firefox-4.0b9 at http://releases.mozilla.org/pub/mozilla.org/firefox/releases/4.0b9/source/firefox-4.0b9.source.tar.bz2. 2. Extract it: tar -xjf firefox-4.0b9.source.tar.bz2. 3. Create ".mozconfig": cp mozilla-central/browser/config/mozconfig mozilla-central/.mozconfig. 4. Create "firefox-4.0b9-build" and `cd' to it: mkdir firefox-4.0b9-build cd firefox-4.0b9-build 5. Run configure: ../mozilla-central/configure 6. Run make (with silent option): make -s Actual Results: In the directory /home/christophe/gnewsense/dev/metad/icecat/firefox-4.0b9-build/js/src The following command failed to execute properly: c++ -o jsapi.o -c -fvisibility=hidden -DOSTYPE="Linux2.6.33" -DOSARCH=Linux -DEXPORT_JS_API -D__STDC_LIMIT_MACROS -DJS_HAS_CTYPES -DDLL_PREFIX="lib" -DDLL_SUFFIX=".so" -Ictypes/libffi/include -I. -I../../../mozilla-central/js/src -I. -I./../../dist/include -I./../../dist/include/nsprpub -I/home/christophe/gnewsense/dev/metad/icecat/firefox-4.0b9-build/dist/include/nspr -I../../../mozilla-central/js/src -I../../../mozilla-central/js/src/assembler -I../../../mozilla-central/js/src/yarr -fPIC -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -pedantic -Wno-long-long -fno-strict-aliasing -pthread -pipe -DNDEBUG -DTRIMMED -O3 -fstrict-aliasing -fomit-frame-pointer -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1 -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MF .deps/jsapi.pp ../../../mozilla-central/js/src/jsapi.cpp make[3]: *** [jsapi.o] Error 1 make[2]: *** [libs_tier_js] Error 2 make[1]: *** [tier_js] Error 2 make: *** [default] Error 2 Expected Results: The `c++' command should have shown no error. Arch: mips64el-unknown-linux-gnu (Loongson 2F on Lemote Yeeloong). Compiler: GCC 4.3.2. OS: gNewSense metad (almost a debian lenny).
I don't actually see any error output there, other than the "Error 1". It'd be useful to get the actual compiler error message. More than useful, actually, there's no possible way to know what's wrong otherwise.
Assignee: nobody → general
Component: Build Config → JavaScript Engine
Product: Firefox → Core
QA Contact: build.config → general
If the result of `make -d' (for debugging output) is sufficient, here is the interesting part of `make -d': No need to remake target `jsapi.cpp'; using VPATH name `../../../mozilla-central/js/src/jsapi.cpp'. Pruning file `Makefile'. Pruning file `../../../mozilla-central/js/src/Makefile.in'. Pruning file `config/autoconf.mk'. Pruning file `../../../mozilla-central/js/src/config/config.mk'. Pruning file `/home/christophe/gnewsense/dev/metad/icecat/firefox-4.0b9-build/js/src/jsautokw.h'. Pruning file `/home/christophe/gnewsense/dev/metad/icecat/firefox-4.0b9-build/js/src/jsautooplen.h'. Finished prerequisites of target file `jsapi.o'. Must remake target `jsapi.o'. make[3]: Entering directory `/home/christophe/gnewsense/dev/metad/icecat/firefox-4.0b9-build/js/src' Putting child 0x00471e00 (jsapi.o) PID 3756 on the chain. Live child 0x00471e00 (jsapi.o) PID 3756 jsapi.cpp Reaping winning child 0x00471e00 PID 3756 c++ -o jsapi.o -c -fvisibility=hidden -DOSTYPE=\"Linux2.6.33\" -DOSARCH=Linux -DEXPORT_JS_API -D__STDC_LIMIT_MACROS -DJS_HAS_CTYPES -DDLL_PREFIX=\"lib\" -DDLL_SUFFIX=\".so\" -Ictypes/libffi/include -I. -I../../../mozilla-central/js/src -I. -I./../../dist/include -I./../../dist/include/nsprpub -I/home/christophe/gnewsense/dev/metad/icecat/firefox-4.0b9-build/dist/include/nspr -I../../../mozilla-central/js/src -I../../../mozilla-central/js/src/assembler -I../../../mozilla-central/js/src/yarr -fPIC -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -pedantic -Wno-long-long -fno-strict-aliasing -pthread -pipe -DNDEBUG -DTRIMMED -O3 -fstrict-aliasing -fomit-frame-pointer -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1 -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MF .deps/jsapi.pp ../../../mozilla-central/js/src/jsapi.cpp Live child 0x00471e00 (jsapi.o) PID 3757 In file included from ../../../mozilla-central/js/src/jsatom.h:52, from ../../../mozilla-central/js/src/jsarray.h:47, from ../../../mozilla-central/js/src/jsapi.cpp:57: ../../../mozilla-central/js/src/jsstr.h: In member function ‘js::gc::FreeCell* JSString::asFreeCell()’: ../../../mozilla-central/js/src/jsstr.h:189: warning: cast from ‘JSString*’ to ‘js::gc::FreeCell*’ increases required alignment of target type In file included from ../../../mozilla-central/js/src/jsfun.h:49, from ../../../mozilla-central/js/src/jscntxt.h:62, from ../../../mozilla-central/js/src/jsclone.h:43, from ../../../mozilla-central/js/src/jsapi.cpp:61: ../../../mozilla-central/js/src/jsscript.h: In member function ‘JSObjectArray* JSScript::objects()’: ../../../mozilla-central/js/src/jsscript.h:496: warning: cast from ‘uint8*’ to ‘JSObjectArray*’ increases required alignment of target type ../../../mozilla-central/js/src/jsscript.h: In member function ‘JSUpvarArray* JSScript::upvars()’: ../../../mozilla-central/js/src/jsscript.h:501: warning: cast from ‘uint8*’ to ‘JSUpvarArray*’ increases required alignment of target type ../../../mozilla-central/js/src/jsscript.h: In member function ‘JSObjectArray* JSScript::regexps()’: ../../../mozilla-central/js/src/jsscript.h:506: warning: cast from ‘uint8*’ to ‘JSObjectArray*’ increases required alignment of target type ../../../mozilla-central/js/src/jsscript.h: In member function ‘JSTryNoteArray* JSScript::trynotes()’: ../../../mozilla-central/js/src/jsscript.h:511: warning: cast from ‘uint8*’ to ‘JSTryNoteArray*’ increases required alignment of target type ../../../mozilla-central/js/src/jsscript.h: In member function ‘js::GlobalSlotArray* JSScript::globals()’: ../../../mozilla-central/js/src/jsscript.h:516: warning: cast from ‘uint8*’ to ‘js::GlobalSlotArray*’ increases required alignment of target type ../../../mozilla-central/js/src/jsscript.h: In member function ‘JSConstArray* JSScript::consts()’: ../../../mozilla-central/js/src/jsscript.h:521: warning: cast from ‘uint8*’ to ‘JSConstArray*’ increases required alignment of target type In file included from ../../../mozilla-central/js/src/jscntxt.h:63, from ../../../mozilla-central/js/src/jsclone.h:43, from ../../../mozilla-central/js/src/jsapi.cpp:61: ../../../mozilla-central/js/src/jsgc.h: In member function ‘size_t js::gc::Cell::cellIndex() const’: ../../../mozilla-central/js/src/jsgc.h:383: warning: cast from ‘const js::gc::Cell*’ to ‘const js::gc::FreeCell*’ increases required alignment of target type In file included from ../../../mozilla-central/js/src/jsclone.h:43, from ../../../mozilla-central/js/src/jsapi.cpp:61: ../../../mozilla-central/js/src/jscntxt.h: In member function ‘js::Value* js::StackSegment::valueRangeBegin() const’: ../../../mozilla-central/js/src/jscntxt.h:338: warning: cast from ‘const js::StackSegment*’ to ‘js::Value*’ increases required alignment of target type ../../../mozilla-central/js/src/jscntxt.h: In function ‘JSAtom** FrameAtomBase(JSContext*, JSStackFrame*)’: ../../../mozilla-central/js/src/jscntxt.h:2257: warning: cast from ‘uint8*’ to ‘JSAtom**’ increases required alignment of target type ../../../mozilla-central/js/src/jscntxt.h: In function ‘JSContext* js_ContextFromLinkField(JSCList*)’: ../../../mozilla-central/js/src/jscntxt.h:2904: warning: cast from ‘uint8*’ to ‘JSContext*’ increases required alignment of target type In file included from ../../../mozilla-central/js/src/jsemit.h:49, from ../../../mozilla-central/js/src/jsapi.cpp:65: ../../../mozilla-central/js/src/jsparse.h: In member function ‘JSParseNode* JSParseNode::last() const’: ../../../mozilla-central/js/src/jsparse.h:637: warning: cast from ‘char*’ to ‘JSParseNode*’ increases required alignment of target type In file included from ../../../mozilla-central/js/src/jsapi.cpp:94: ../../../mozilla-central/js/src/jsinterpinlines.h: In member function ‘bool js::InvokeSessionGuard::invoke(JSContext*) const’: ../../../mozilla-central/js/src/jsinterpinlines.h:589: error: ‘struct JSScript’ has no member named ‘getJIT’ ../../../mozilla-central/js/src/jsapi.cpp: In function ‘JSAtom* StdNameToAtom(JSContext*, JSStdName*)’: ../../../mozilla-central/js/src/jsapi.cpp:1518: warning: cast from ‘char*’ to ‘JSAtom**’ increases required alignment of target type ../../../mozilla-central/js/src/jsapi.cpp:1523: warning: cast from ‘char*’ to ‘JSAtom**’ increases required alignment of target type ../../../mozilla-central/js/src/jsapi.cpp: In function ‘JSBool JS_ResolveStandardClass(JSContext*, JSObject*, jsid, JSBool*)’: ../../../mozilla-central/js/src/jsapi.cpp:1683: warning: cast from ‘char*’ to ‘JSAtom**’ increases required alignment of target type ../../../mozilla-central/js/src/jsapi.cpp: In function ‘JSBool JS_EnumerateStandardClasses(JSContext*, JSObject*)’: ../../../mozilla-central/js/src/jsapi.cpp:1764: warning: cast from ‘char*’ to ‘JSAtom**’ increases required alignment of target type ../../../mozilla-central/js/src/jsapi.cpp: In function ‘JSIdArray* JS_EnumerateResolvedStandardClasses(JSContext*, JSObject*, JSIdArray*)’: ../../../mozilla-central/js/src/jsapi.cpp:1866: warning: cast from ‘char*’ to ‘JSAtom**’ increases required alignment of target type Reaping losing child 0x00471e00 PID 3757 make[3]: *** [jsapi.o] Error 1 Removing child 0x00471e00 PID 3757 from chain. make[3]: Leaving directory `/home/christophe/gnewsense/dev/metad/icecat/firefox-4.0b9-build/js/src' Reaping losing child 0x0047d958 PID 3753 make[2]: *** [libs_tier_js] Error 2 Removing child 0x0047d958 PID 3753 from chain. make[2]: Leaving directory `/home/christophe/gnewsense/dev/metad/icecat/firefox-4.0b9-build' Reaping losing child 0x0047d8c8 PID 3735 make[1]: *** [tier_js] Error 2 Removing child 0x0047d8c8 PID 3735 from chain. make[1]: Leaving directory `/home/christophe/gnewsense/dev/metad/icecat/firefox-4.0b9-build' Reaping losing child 0x0047cca0 PID 3641 make: *** [default] Error 2 Removing child 0x0047cca0 PID 3641 from chain.
I just needed to see the compiler output, of which the relevant bit is: ../../../mozilla-central/js/src/jsinterpinlines.h: In member function ‘bool js::InvokeSessionGuard::invoke(JSContext*) const’: ../../../mozilla-central/js/src/jsinterpinlines.h:589: error: ‘struct JSScript’ has no member named ‘getJIT’ This looks like it was already fixed in bug 623277, but that didn't make the beta 9 release. You'll either have to build directly from our Mercurial repository or wait for beta 10.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.