Superbelko / ohmygentool

LLVM/Clang based bindings generator for D language
The Unlicense
39 stars 6 forks source link

[Clang-9] Build issues #3

Closed Superbelko closed 4 years ago

Superbelko commented 4 years ago

Due to build system changes on clang side[1] it is now not possible to build this with Linux packages for example on Ubuntu.

In short - they changed all modular pieces and put them in 2 libraries instead -> libclang-9 and libclang-cpp.

It is still fails for some reason due to naming scheme, for some reason ld (ld.lld in my case) won't pick libclang-cpp-9.so.1 nor libclang-cpp.so.9

[1] https://releases.llvm.org/9.0.0/tools/clang/docs/ReleaseNotes.html#build-system-changes

Superbelko commented 4 years ago

Should now be resolved with d17e13f394cdbeb20873aa30535ef356593274cc

Superbelko commented 4 years ago

Closing this as fixed.

Note that however LLD linker still won't work without extra steps such as adding symlink to versioned .so files as LLD ignores them, or specifying the exact library names in linker flags with colon (e.g. "libs": ":libclang-cpp-9.so.1").