Actions
Issue #1846
openToolchain build failure when /usr/lib64/libxml2.so is not present
Status:
New
Priority:
Normal
Assignee:
Category:
Build system
Target version:
Resolution:
Device:
Grant:
Type of work:
Any programming languages (scripts, C, etc), Communication (mails, contacting people, etc)
Description
Hi,
As I understand Debian stretch amd64 is the only distribution that can be used to build Replicant,
however it has no /usr/lib64/libxml2.so.
Instead that library is part of the libxml2-dev package, and lives at:
/usr/lib/x86_64-linux-gnu/libxml2.soSee the following for more details:
- https://packages.debian.org/search?searchon=contents&keywords=libxml2.so&mode=path&suite=stable&arch=any
- https://packages.debian.org/stretch/amd64/libxml2-dev/filelist
However the toolchain build expects it to be present:
$ ./vendor/replicant/build-toolchain [...] -- Clang version: 3.7.0 -- Configuring done -- Generating done -- Build files have been written to: /home/replicant/replicant-6.0/toolchain/clang + nproc + echo 1 + make -j 1 [...] [ 98%] Built target libclang make[2]: *** No rule to make target '/usr/lib64/libxml2.so', needed by 'bin/c-index-test'. Stop. CMakeFiles/Makefile2:13807: recipe for target 'tools/clang/tools/c-index-test/CMakeFiles/c-index-test.dir/all' failed make[1]: *** [tools/clang/tools/c-index-test/CMakeFiles/c-index-test.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2
So this should ideally be fixed in the toolchain script or at worse mentioned in the documentation to have the user create a symlink.
Denis.
Related issues
Actions