darlinghq / darling

Darwin/macOS emulation layer for Linux
http://www.darlinghq.org
GNU General Public License v3.0
11.41k stars 441 forks source link

make failed after JavaScriptCore #1046

Open paleknight894 opened 3 years ago

paleknight894 commented 3 years ago
[ 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
NinjaCheetah commented 2 years ago

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
bugaevc commented 2 years ago

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.

NinjaCheetah commented 2 years ago

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.

paleknight894 commented 2 years ago

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