You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without LTO, it works: arm-linux-gnueabihf-gcc -fuse-ld=mold conftest.c
However, if I enable LTO, it fails:
[u@h d](master)% arm-linux-gnueabihf-gcc -flto=auto -fuse-ld=mold conftest.c
libc++abi: terminating due to uncaught exception of type std::__1::__fs::filesystem::filesystem_error: filesystem error: in read_symlink: No such file or directory ["/proc/self/exe"]
mold: aborted
mold: If mold failed due to a spurious failure of pthread_create, it's likely because of https://github.com/oneapi-src/oneTBB/pull/824. You should ensure that you are using 2021.9.0 or newer version of libtbb.
collect2: error: ld returned 1 exit status
The text was updated successfully, but these errors were encountered:
ttc0419
changed the title
Segmentation fault: 11 on macOS using arm-linux-gnueabihf cross compiler
Cross compiling using arm-linux-gnueabihf toolchain does not work on macOS
Feb 1, 2024
ttc0419
changed the title
Cross compiling using arm-linux-gnueabihf toolchain does not work on macOS
Cross compiling using arm-linux-gnueabihf toolchain does not work with LTO on macOS
Feb 1, 2024
Source:
Without LTO, it works:
arm-linux-gnueabihf-gcc -fuse-ld=mold conftest.c
However, if I enable LTO, it fails:
The text was updated successfully, but these errors were encountered: