darling icon indicating copy to clipboard operation
darling copied to clipboard

make failed after JavaScriptCore

Open paleknight894 opened this issue 4 years ago • 4 comments

[ 94%] Linking CXX shared library JavaScriptCore
ld: warning: OS dylibs should not add rpaths (linker option: -rpath) (Xcode build setting: LD_RUNPATH_SEARCH_PATHS)
ld: warning: direct access in function '__ZN3JSC4Heap20lastChanceToFinalizeEv' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFvvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE0_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap20lastChanceToFinalizeEv' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFbvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap20lastChanceToFinalizeEv' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFlNS_10ParkingLot12UnparkResultEEZNS_9Condition9notifyOneEvEUlS2_E_E12implFunctionEPvS2_' from file '../WTF/libWTF.a(AutomaticThread.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap17waitForCollectionEy' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFvvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE0_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap17waitForCollectionEy' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFbvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap19finishChangingPhaseENS_11GCConductorE' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFvvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE0_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap19finishChangingPhaseENS_11GCConductorE' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFbvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap21waitWhileNeedFinalizeEv' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFvvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE0_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap21waitWhileNeedFinalizeEv' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFbvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap17acquireAccessSlowEv' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFvvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE0_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap17acquireAccessSlowEv' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFbvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap17preventCollectionEv' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFvvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE0_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap17preventCollectionEv' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFbvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3WTF13LockAlgorithmIhLh64ELh128ENS_14EmptyLockHooksIhEEE8lockSlowERNS_6AtomicIhEE' from file 'CMakeFiles/JavaScriptCore.dir/runtime/JSCell.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFvvEZNS_10ParkingLot14compareAndParkIhhEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE0_E12implFunctionEPv' from file '../WTF/libWTF.a(Lock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3WTF13LockAlgorithmIhLh64ELh128ENS_14EmptyLockHooksIhEEE8lockSlowERNS_6AtomicIhEE' from file 'CMakeFiles/JavaScriptCore.dir/runtime/JSCell.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFbvEZNS_10ParkingLot14compareAndParkIhhEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE_E12implFunctionEPv' from file '../WTF/libWTF.a(Lock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: OS dylibs should not add rpaths (linker option: -rpath) (Xcode build setting: LD_RUNPATH_SEARCH_PATHS)
ld: warning: direct access in function '__ZN3JSC4Heap20lastChanceToFinalizeEv' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFvvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE0_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap20lastChanceToFinalizeEv' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFbvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap20lastChanceToFinalizeEv' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFlNS_10ParkingLot12UnparkResultEEZNS_9Condition9notifyOneEvEUlS2_E_E12implFunctionEPvS2_' from file '../WTF/libWTF.a(AutomaticThread.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap17waitForCollectionEy' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFvvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE0_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap17waitForCollectionEy' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFbvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap19finishChangingPhaseENS_11GCConductorE' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFvvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE0_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap19finishChangingPhaseENS_11GCConductorE' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFbvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap21waitWhileNeedFinalizeEv' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFvvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE0_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap21waitWhileNeedFinalizeEv' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFbvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap17acquireAccessSlowEv' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFvvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE0_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap17acquireAccessSlowEv' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFbvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap17preventCollectionEv' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFvvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE0_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3JSC4Heap17preventCollectionEv' from file 'CMakeFiles/JavaScriptCore.dir/heap/Heap.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFbvEZNS_10ParkingLot14compareAndParkIjjEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE_E12implFunctionEPv' from file '../WTF/libWTF.a(CountingLock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3WTF13LockAlgorithmIhLh64ELh128ENS_14EmptyLockHooksIhEEE8lockSlowERNS_6AtomicIhEE' from file 'CMakeFiles/JavaScriptCore.dir/runtime/JSCell.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFvvEZNS_10ParkingLot14compareAndParkIhhEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE0_E12implFunctionEPv' from file '../WTF/libWTF.a(Lock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function '__ZN3WTF13LockAlgorithmIhLh64ELh128ENS_14EmptyLockHooksIhEEE8lockSlowERNS_6AtomicIhEE' from file 'CMakeFiles/JavaScriptCore.dir/runtime/JSCell.cpp.o' to global weak symbol '__ZN3WTF22ScopedLambdaRefFunctorIFbvEZNS_10ParkingLot14compareAndParkIhhEENS2_10ParkResultEPKNS_6AtomicIT_EET0_EUlvE_E12implFunctionEPv' from file '../WTF/libWTF.a(Lock.cpp.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
[ 94%] Built target JavaScriptCore
make: *** [Makefile:136: all] Error 2

paleknight894 avatar Sep 30 '21 15:09 paleknight894

Also having this issue, shallow build doesn't help because then it fails at building Ruby.

[ 93%] Linking C shared library Ruby
ld: warning: OS dylibs should not add rpaths (linker option: -rpath) (Xcode build setting: LD_RUNPATH_SEARCH_PATHS)
ld: warning: -undefined dynamic_lookup is incompatible with dyld share cache
ld: warning: OS dylibs should not add rpaths (linker option: -rpath) (Xcode build setting: LD_RUNPATH_SEARCH_PATHS)
ld: warning: -undefined dynamic_lookup is incompatible with dyld share cache
[ 93%] Built target Ruby
make: *** [Makefile:130: all] Error 2

NinjaCheetah avatar Oct 08 '21 13:10 NinjaCheetah

it fails at building Ruby.

Where's the error? In your log there's only a make error, not a compiler error. This usually indicates that a compiler was simply OOM-killed, and is typically fixed by retrying again, perhaps with a lower -j count.

bugaevc avatar Oct 08 '21 14:10 bugaevc

Alright I'll try again then with -j4 instead of -j8. It's very possible that 8 jobs is just too many for my older CPU.

NinjaCheetah avatar Oct 08 '21 19:10 NinjaCheetah

i just find it not happen in only 64 bit build,must some thing wrong with i386 code

paleknight894 avatar Oct 13 '21 11:10 paleknight894