Project

General

Profile

Actions

Issue #1846

open

Toolchain build failure when /usr/lib64/libxml2.so is not present

Added by Denis 'GNUtoo' Carikli almost 7 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Category:
Build system
Target version:
Start date:
11/10/2017
Due date:
% Done:

0%

Estimated time:
Spent time:
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.so

See the following for more details:

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

Related to Replicant - Issue #1861: Recommend to use an FSDG compliant distribution to build ReplicantIn Progress04/09/2017

Actions
Actions #1

Updated by Denis 'GNUtoo' Carikli almost 7 years ago

workaround on PureOS:

ln -s /usr/lib/x86_64-linux-gnu/libxml2.so.2 /usr/lib/x86_64-linux-gnu/libxml2.so

Actions #2

Updated by Denis 'GNUtoo' Carikli almost 7 years ago

  • Related to Issue #1861: Recommend to use an FSDG compliant distribution to build Replicant added
Actions #3

Updated by Denis 'GNUtoo' Carikli over 5 years ago

  • Assignee changed from Wolfgang Wiedmeyer to Denis 'GNUtoo' Carikli
  • Target version changed from Replicant 6.0 to Replicant 6.0 0004
Actions #5

Updated by Denis 'GNUtoo' Carikli over 5 years ago

  • Status changed from New to Resolved
  • Estimated time set to 0.10 h

Fixed by updating the build instructions and adding a build tip to notify the users about the fix

Actions #6

Updated by Denis 'GNUtoo' Carikli over 5 years ago

  • Estimated time deleted (0.10 h)
Actions #7

Updated by Denis 'GNUtoo' Carikli about 5 years ago

  • Status changed from Resolved to New
  • Target version changed from Replicant 6.0 0004 to Any version
Actions #8

Updated by Denis 'GNUtoo' Carikli about 5 years ago

  • Target version changed from Any version to Replicant 6.0
Actions #9

Updated by Denis 'GNUtoo' Carikli almost 5 years ago

  • Target version changed from Replicant 6.0 to Replicant 6.0 0005
Actions #10

Updated by _I3^ RELATIVISM over 3 years ago

  • Type of work Any programming languages (scripts, C, etc), Communication (mails, contacting people, etc) added
Actions

Also available in: Atom PDF