[MacPorts] #63485: mozjs60 @60.8.0: fails due to no i386 atomics available when building with clang-9.0

MacPorts noreply at macports.org
Mon Sep 13 21:17:10 UTC 2021


#63485: mozjs60 @60.8.0: fails due to no i386 atomics available when building with
clang-9.0
--------------------+-------------------------------
 Reporter:  kencu   |      Owner:  kencu
     Type:  defect  |     Status:  assigned
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  mozjs60 clang-9.0
--------------------+-------------------------------
 https://build.macports.org/builders/ports-10.6_i386-builder/builds/39699/steps
 /install-port/logs/stdio

 fails because the i386 atomics were removed by default from compiler_rt on
 clang-9.0. I will put those back for i386 hosts at least.

 {{{
 Executing: /opt/local/bin/clang++-mp-9.0 -o jsapi-tests -Qunused-arguments
 -I/opt/local/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Qunused-
 arguments -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual
 -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code
 -Wunreachable-code-return -Wwrite-strings -Wno-invalid-offsetof -Wclass-
 varargs -Wloop-analysis -Wc++1z-compat -Wcomma -Wimplicit-fallthrough
 -Wstring-conversion -Wno-inline-new-delete -Wno-error=deprecated-
 declarations -Wno-error=array-bounds -Wformat -Wformat-security -Wno-gnu-
 zero-variadic-macro-arguments -Wno-noexcept-type -Wno-unknown-warning-
 option -Wno-return-type-c-linkage -fno-sized-deallocation -pipe -Os
 -stdlib=libc++ -arch i386 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-
 common -stdlib=libc++ -fno-rtti -ffunction-sections -fdata-sections -fno-
 exceptions -fno-math-errno -pthread -pipe -g -O3 -fno-stack-protector
 -fomit-frame-pointer
 -Wl,-filelist,/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_mozjs60/mozjs60/work/mozjs-60.8.0/js/src/obj/js/src
 /jsapi-tests/tmpyAHKcl.list -L/opt/local/lib
 -Wl,-headerpad_max_install_names -arch i386 -lobjc -framework
 ExceptionHandling
 -Wl,-executable_path,/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_mozjs60/mozjs60/work/mozjs-60.8.0/js/src/obj/dist/bin
 -Wl,-dead_strip ../build/libjs_static.a
 ../../../mozglue/build/libmozglue.dylib -lm -L/opt/local/lib/nspr -lplds4
 -lplc4 -lnspr4 -L/opt/local/lib -lz -lm
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_mozjs60/mozjs60/work/mozjs-60.8.0/js/src/obj/js/src
 /jsapi-tests/tmpyAHKcl.list:
     hidePointer.o
     testAssemblerBuffer.o
     Unified_cpp_js_src_jsapi-tests0.o
     Unified_cpp_js_src_jsapi-tests1.o
     Unified_cpp_js_src_jsapi-tests2.o
     Unified_cpp_js_src_jsapi-tests3.o
     Unified_cpp_js_src_jsapi-tests4.o
     Unified_cpp_js_src_jsapi-tests5.o
     Unified_cpp_js_src_jsapi-tests6.o

 Undefined symbols for architecture i386:
   "___atomic_fetch_xor_8", referenced from:
       cls_testAtomicOperationsU64::run(JS::Handle<JSObject*>) in
 Unified_cpp_js_src_jsapi-tests0.o
       cls_testAtomicOperationsI64::run(JS::Handle<JSObject*>) in
 Unified_cpp_js_src_jsapi-tests0.o
   "___atomic_fetch_and_8", referenced from:
       cls_testAtomicOperationsU64::run(JS::Handle<JSObject*>) in
 Unified_cpp_js_src_jsapi-tests0.o
       cls_testAtomicOperationsI64::run(JS::Handle<JSObject*>) in
 Unified_cpp_js_src_jsapi-tests0.o
   "___atomic_store", referenced from:
       cls_testAtomicOperationsU64::run(JS::Handle<JSObject*>) in
 Unified_cpp_js_src_jsapi-tests0.o
       cls_testAtomicOperationsI64::run(JS::Handle<JSObject*>) in
 Unified_cpp_js_src_jsapi-tests0.o
   "___atomic_compare_exchange", referenced from:
       cls_testAtomicOperationsU64::run(JS::Handle<JSObject*>) in
 Unified_cpp_js_src_jsapi-tests0.o
       cls_testAtomicOperationsI64::run(JS::Handle<JSObject*>) in
 Unified_cpp_js_src_jsapi-tests0.o
   "___atomic_exchange", referenced from:
       cls_testAtomicOperationsU64::run(JS::Handle<JSObject*>) in
 Unified_cpp_js_src_jsapi-tests0.o
       cls_testAtomicOperationsI64::run(JS::Handle<JSObject*>) in
 Unified_cpp_js_src_jsapi-tests0.o
   "___atomic_fetch_add_8", referenced from:
       cls_testAtomicOperationsU64::run(JS::Handle<JSObject*>) in
 Unified_cpp_js_src_jsapi-tests0.o
       cls_testAtomicOperationsI64::run(JS::Handle<JSObject*>) in
 Unified_cpp_js_src_jsapi-tests0.o
   "___atomic_fetch_sub_8", referenced from:
       cls_testAtomicOperationsU64::run(JS::Handle<JSObject*>) in
 Unified_cpp_js_src_jsapi-tests0.o
       cls_testAtomicOperationsI64::run(JS::Handle<JSObject*>) in
 Unified_cpp_js_src_jsapi-tests0.o
   "___atomic_fetch_or_8", referenced from:
       cls_testAtomicOperationsU64::run(JS::Handle<JSObject*>) in
 Unified_cpp_js_src_jsapi-tests0.o
       cls_testAtomicOperationsI64::run(JS::Handle<JSObject*>) in
 Unified_cpp_js_src_jsapi-tests0.o
   "___atomic_load", referenced from:
       cls_testAtomicOperationsU64::run(JS::Handle<JSObject*>) in
 Unified_cpp_js_src_jsapi-tests0.o
       cls_testAtomicOperationsI64::run(JS::Handle<JSObject*>) in
 Unified_cpp_js_src_jsapi-tests0.o
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/63485>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list