Open realchonk opened 1 year ago
Let me try to use mold on an OpenBSD machine.
OK, so I think you guys should fix libtbb first so that mold can be built on OpenBSD out-of-the-box. We can't maintain OpenBSD-specific local patches for libtbb as we are not using the operating system. Can you file a bug to libtbb?
Seems like OpenBSD has a tbb package, but it doesn't provide CMake or pkg-config files, only headers and libs.
OK, so I think you guys should fix libtbb first so that mold can be built on OpenBSD out-of-the-box. We can't maintain OpenBSD-specific local patches for libtbb as we are not using the operating system. Can you file a bug to libtbb?
That has now been fixed upstream. https://github.com/oneapi-src/oneTBB/commit/ea4e6156a2cde839fc01b21b76cd9b5743ec0cef
Seems like OpenBSD has a tbb package, but it doesn't provide CMake or pkg-config files, only headers and libs.
That is TBB 2020. I have an update to 2021.
@brad0 That's good news! With that I can now build mold on an OpenBSD machine. Currently mold unittests only care about Linux, so the first step to port it to OpenBSD is to enable them on non-Linux non-Apple Unix-like systems. Let me take a look.
@rui34 Just as a note, we have a fair bit of patching to our lld linker. Here is a complete diff from upstream and commit history.
https://github.com/llvm/llvm-project/compare/release/13.x...mordak:llvm-project:openbsd-release/13.x.diff https://github.com/mordak/llvm-project/commits/openbsd-release/13.x/lld
Hi,
your linker doesn't produce working binaries on OpenBSD 7.3. I compiled it following the instructions in #970.
Here's a bit of (maybe) useful data. If you need anything else, don't hesitate to ask.
test.c
Compilation
Debugging
readelf -a test.clang
https://pastebin.com/ixn6t2XJ
readelf -a test.mold
https://pastebin.com/cV46jdFB