svn commit: r523492 - head/lang/spidermonkey60
Tobias C. Berner
tcberner at FreeBSD.org
Sat Jan 18 19:55:56 UTC 2020
Author: tcberner
Date: Sat Jan 18 19:55:56 2020
New Revision: 523492
URL: https://svnweb.freebsd.org/changeset/ports/523492
Log:
lang/spidermonkey60: fix build on i386
Build used to fail with
Unified_cpp_js_src_jsapi-tests0.o: In function `cls_testAtomicOperationsU64::run(JS::Handle<JSObject*>)':
...[_ZN27cls_testAtomicOperationsU643runEN2JS6HandleIP8JSObjectEE]+0x86): undefined reference to `__atomic_load_8'
...[_ZN27cls_testAtomicOperationsU643runEN2JS6HandleIP8JSObjectEE]+0xd0): undefined reference to `__atomic_store_8'
...[_ZN27cls_testAtomicOperationsU643runEN2JS6HandleIP8JSObjectEE]+0x111): undefined reference to `__atomic_exchange_8'
...[_ZN27cls_testAtomicOperationsU643runEN2JS6HandleIP8JSObjectEE]+0x185): undefined reference to `__atomic_compare_exchange_8'
...[_ZN27cls_testAtomicOperationsU643runEN2JS6HandleIP8JSObjectEE]+0x200): undefined reference to `__atomic_compare_exchange_8'
...[_ZN27cls_testAtomicOperationsU643runEN2JS6HandleIP8JSObjectEE]+0x268): undefined reference to `__atomic_fetch_add_8'
...[_ZN27cls_testAtomicOperationsU643runEN2JS6HandleIP8JSObjectEE]+0x2c5): undefined reference to `__atomic_fetch_sub_8'
...[_ZN27cls_testAtomicOperationsU643runEN2JS6HandleIP8JSObjectEE]+0x324): undefined reference to `__atomic_fetch_and_8'
...[_ZN27cls_testAtomicOperationsU643runEN2JS6HandleIP8JSObjectEE]+0x384): undefined reference to `__atomic_fetch_or_8'
...[_ZN27cls_testAtomicOperationsU643runEN2JS6HandleIP8JSObjectEE]+0x3e4): undefined reference to `__atomic_fetch_xor_8'
Switch to using gcc on i386.
Modified:
head/lang/spidermonkey60/Makefile
Modified: head/lang/spidermonkey60/Makefile
==============================================================================
--- head/lang/spidermonkey60/Makefile Sat Jan 18 19:46:26 2020 (r523491)
+++ head/lang/spidermonkey60/Makefile Sat Jan 18 19:55:56 2020 (r523492)
@@ -53,6 +53,11 @@ CONFIGURE_ENV= HOST_CC=${CC} HOST_CXX=${CXX}
CONFIGURE_TARGET=x86_64-portbld-freebsd${OSREL}
.endif
+.if ${ARCH} == i386
+# ld: error: undefined symbol: __atomic_load
+USE_GCC= 9+
+.endif
+
post-install:
${RM} ${STAGEDIR}${PREFIX}/lib/libjs_static.ajs
${LN} -fs libmozjs-${SP_VER}.so ${STAGEDIR}${PREFIX}/lib/libmozjs-${SP_VER}.so.1
More information about the svn-ports-all
mailing list