Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 438746 - dev-lang/spidermonkey-1.8.5-r1: Build failure
Summary: dev-lang/spidermonkey-1.8.5-r1: Build failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords: InOverlay, InVCS
Depends on:
Blocks: kde-4.9-keyword
  Show dependency tree
 
Reported: 2012-10-17 21:13 UTC by Naohiro Aota
Modified: 2012-10-21 19:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
complete build.log (build.log,164.53 KB, text/plain)
2012-10-17 21:13 UTC, Naohiro Aota
Details
spidermonkey-1.8.5-freebsd-pthreadnp.patch (spidermonkey-1.8.5-freebsd-pthreadnp.patch,174 bytes, patch)
2012-10-17 21:15 UTC, Naohiro Aota
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Naohiro Aota gentoo-dev 2012-10-17 21:13:04 UTC
Created attachment 326790 [details]
complete build.log

Build failed with:

i686-gentoo-freebsd9.0-g++  -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 -O2 -march=native -pipe -fomit-frame-pointer -g -fno-strict-aliasing -pipe  -DNDEBUG -DTRIMMED -O3 -fstrict-aliasing -fomit-frame-pointer -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1 -fPIC -shared -Wl,-z,defs -Wl,-h,libmozjs185.so -o libmozjs185.so  jsanalyze.o jsapi.o jsarena.o jsarray.o jsatom.o jsbool.o jsclone.o jscntxt.o jscompartment.o jsdate.o jsdbgapi.o jsdhash.o jsdtoa.o jsemit.o jsexn.o jsfriendapi.o jsfun.o jsgc.o jsgcchunk.o jsgcstats.o jshash.o jsinterp.o jsinvoke.o jsiter.o jslock.o jslog2.o jsmath.o jsnativestack.o jsnum.o jsobj.o json.o jsopcode.o jsparse.o jsproxy.o jsprf.o jsprobes.o jspropertycache.o jspropertytree.o jsreflect.o jsregexp.o jsscan.o jsscope.o jsscript.o jsstr.o jstypedarray.o jsutil.o jswrapper.o jsxdrapi.o jsxml.o prmjtime.o sharkctl.o jstracer.o Assembler.o Allocator.o CodeAlloc.o Containers.o Fragmento.o LIR.o njconfig.o RegAlloc.o avmplus.o Nativei386.o jsbuiltins.o VMPI.o Writer.o MethodJIT.o StubCalls.o Compiler.o FrameState.o FastArithmetic.o FastOps.o StubCompiler.o MonoIC.o PolyIC.o ImmutableSync.o InvokeHelpers.o Retcon.o TrampolineCompiler.o checks.o conversions.o diy-fp.o v8-dtoa.o fast-dtoa.o platform.o utils.o Assertions.o ExecutableAllocatorPosix.o ExecutableAllocatorWin.o ExecutableAllocatorOS2.o ExecutableAllocator.o ARMAssembler.o Logging.o MacroAssemblerARM.o MacroAssemblerX86Common.o RegexCompiler.o RegexJIT.o pcre_compile.o pcre_exec.o pcre_tables.o pcre_xclass.o pcre_ucp_searchfuncs.o jsperf.o pm_stub.o     -pthread -Wl,-O1 -Wl,--as-needed  -Wl,-rpath-link,/bin -Wl,-rpath-link,/usr/lib  -Wl,-R/usr/lib -L/usr/lib -lplds4 -lplc4 -lnspr4 -pthread -Wl,-soname,libmozjs185.so.1.0  -lm -pthread  
jsnativestack.o: In function `js::GetNativeStackBaseImpl()':
/var/tmp/portage/dev-lang/spidermonkey-1.8.5-r1/work/js-1.8.5/js/src/jsnativestack.cpp:201: undefined reference to `pthread_attr_get_np'
/usr/lib/gcc/i686-gentoo-freebsd9.0/4.7.2/../../../../i686-gentoo-freebsd9.0/bin/ld: libmozjs185.so: hidden symbol `pthread_attr_get_np' isn't defined
/usr/lib/gcc/i686-gentoo-freebsd9.0/4.7.2/../../../../i686-gentoo-freebsd9.0/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
gmake[1]: *** [libmozjs185.so] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/dev-lang/spidermonkey-1.8.5-r1/work/js-1.8.5/js/src'
gmake: *** [default] Error 2
Comment 1 Naohiro Aota gentoo-dev 2012-10-17 21:15:19 UTC
Created attachment 326792 [details, diff]
spidermonkey-1.8.5-freebsd-pthreadnp.patch

With this patch applied, building pass both on Linux and FreeBSD.
Comment 2 Jory A. Pratt gentoo-dev 2012-10-18 17:39:44 UTC
Feel free to land on tree, patch is fine and has already been landed upstream.
Comment 3 Jory A. Pratt gentoo-dev 2012-10-21 19:32:51 UTC
Thanks for reporting, patch is landed for both 1.8.{5,7}. Patch is also avaliable in the mozilla overlay