Summary: | sys-devel/llvm[clang,-xml,abi_x86_32]: linker fails to find 32bit libxml2 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | gentoo-user |
Component: | [OLD] Core system | Assignee: | Bernard Cafarelli <voyageur> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mgorny |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info '=sys-devel/llvm-3.7.0-r2::gentoo'
build.log |
Description
gentoo-user
2015-11-03 13:51:31 UTC
Created attachment 416008 [details]
emerge --info '=sys-devel/llvm-3.7.0-r2::gentoo'
Created attachment 416010 [details]
build.log
e Thanks for the report! Try to enable USE=xml on llvm, it should ask for the correct dependency (including libxml2 with 32bit ABI). The root problem is that the build system automatically finds libxml2: find_package(LibXml2) if (LIBXML2_FOUND) set(CLANG_HAVE_LIBXML 1) endif() That seems to work, thanks. Should I report the problem upstream (CMake enabling libxml2 usage even when the installed libxml2 is for a different architecture)? Thanks for the confirmation! This is rather related to our multilib build system, I have updated the ebuild to correctly disable libxml2 in clang with USE=-xml (also found that lldb requires xml, this is fixed too) Fixed in current 3.7.0-r2 and 9999: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce0a93f16b2dbab1a635ef41a6178e0590bf028c |