[BinaryBuiler] Mix of host and target libraries in host sysroot

Hello,

While trying to build R/ROOT for arm architectures, I’ve found that /opt/x86_64-linux-musl/x86_64-linux-musl/sys-root/usr/local points to /workspace/destdir. The results is that /opt/x86_64-linux-musl/x86_64-linux-musl/sys-root file tree mixes libraries for the host (in lib) and libraries for the target (local/lib).

I would have expected to see under this sysroot only binaries compatible with the host.

On this other hands the libraries installed with HostDependency statements are not linked from this sysroot.

Why is it like this? Is it a bug or a feature?

Philippe.

That’s a symlink created automatically for all toolchains, if it creates problems you can just delete it. I think only CMake ever looks at that path, I never understood why.

ok. I have replaced it with a link to /workspace/x86_64-linux-musl-cxx11/destdir .

1 Like