Closed miwojcik closed 9 months ago
I also got this problem, the following patch works for me. https://github.com/kraj/meta-clang/pull/663/commits/fbd07014d73d68a9a02d7fb808c3311124eacb16
Right, with this change libclang is packaged correctly:
$ dpkg -c ./tmp/deploy/ipk/cortexa57/libclang13_14.0.6-r0_cortexa57.ipk
drwxr-xr-x root/root 0 2011-04-06 01:00 ./usr/
drwxr-xr-x root/root 0 2011-04-06 01:00 ./usr/lib/
lrwxrwxrwx root/root 0 2011-04-06 01:00 ./usr/lib/libclang.so.13 -> libclang.so.14.0.6
-rwxr-xr-x root/root 29451416 2011-04-06 01:00 ./usr/lib/libclang.so.14.0.6
I was afraid it would still fail without fixing other package dependencies, but it looks like libclang is automatically picked as runtime dependency and installed. Thank you for checking @wentao-windriver! I'll submit a PR soon
I'm posting the issue as my PR comment may not be easily discoverable if anyone else hits the same error.
Describe the bug As I mentioned in https://github.com/kraj/meta-clang/pull/881#issuecomment-1845472510, after PR https://github.com/kraj/meta-clang/pull/881 libclang is not being packaged correctly as it only contains a symlink:
and the library is still being packaged in the clang package:
Additionally, the packages that relied on clang package to contain the libclang library (for example bpftrace) don't work:
To Reproduce Reproduced on poky qemuarm64 build. Reverting the PR fixed the issue as it put back both files in the clang package:
Expected behavior I see two possible solutions, but I'm open to discuss a different one:
In my opinion, reverting the PR introduces less damage as it won't trigger the chain of dependency fixes for LTS branch at a cost of not packaging the libclang correctly (that wasn't noticed for some time).