-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenBSD build fails - undefined symbols - Unwind #210
Comments
Hi, You're either running -stable or an old -current version, i'm right? These issues have been fixed in -current by adding libexecinfo into base (openbsd/src@771fbea). I can build the current HEAD (646c142) without issues on OpenBSD/amd64. If you're still wanting to not use -current, by experience (openbsd/ports@025717b), you may want to drop |
I'm running release, which a normal user is supposed to do: in this case 6.9 |
Sorry, I didn't see this when it was reported. This symbol is part of the generic unwinder. This is normally provided by libgcc_s and should be added to the link step by the compiler automatically. It might be in a separate libUnwind on OpenBSD, so you can try adding Is the same undefined symbol in libobjc.so or only in the tests? If it's in only the tests, you should be able to just build without tests. Dropping |
I just upgraded to OpenBSD 7.0 - and I still have that issue, so I am unsure @julianaito spotted commit was the fix?
Tells us -lUnwind is not present and -lunwind gives me the same error
Now on 7.0 the full error actually is:
|
I am having this same issue with OpenBSD 7.1. I tried to build libunwind from source but it requires Some folks have created a libucontext implementation but, I am trying to compile on ppc which these implementations do not support without having getcontext already available. I may be stuck. |
Can you see what OpenBSD's C++ runtime (libcxxrt, libsupc++, or libc++abi) links to? It might be statically linked into the C++ standard library (libc++ or libstdc++). |
Even if you manage to build libobjc2 with OpenBSD |
It should still work with the C fallback (clang won't generate |
I'd be happy to, but I must admit, I'm pretty novice to C on unix/linux world so I'm not exactly sure how to figure this out. |
Just updated to OpenBSD 7.2 - still fails
|
Checking ldd doesn't say much:
however, I find this symbol using nm:
|
|
On OpenBSD 7.5 / i386:
this happens if TESTS are enabled |
If I build without TESTS, I can build & install, but later building of gnustep base will fail:
|
The issue can be solved in OpenBSD 7.6 by adding That way library builds and I can run tests (thanks to Sebastian Reitenback). Maybe it can be added automatically? I tested it on i386 32bit. 64bit will follow soon |
As written in https://man.openbsd.org/intro.3 |
a standard OpenBSD build with system clang and configured OOB,
The text was updated successfully, but these errors were encountered: