Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 662720 - sys-devel/llvm: llvm-config being a binary breaks cross compilation of dependent packages
Summary: sys-devel/llvm: llvm-config being a binary breaks cross compilation of depend...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: LLVM support project
URL:
Whiteboard:
Keywords: Bug, UPSTREAM
Depends on: 662722
Blocks: cross-compile
  Show dependency tree
 
Reported: 2018-08-03 14:43 UTC by Richard Yao (RETIRED)
Modified: 2022-11-18 08:05 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Yao (RETIRED) gentoo-dev 2018-08-03 14:43:16 UTC
llvm-config being a binary breaks cross compilation of dependent packages because the host architecture's binary gives us information needed to build for the host while the target architecture's binary cannot be executed by the build system.

This is an upstream bug, but we really could use a patch either switching us to pkgconfig or making llvm-config a script.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-08-03 15:41:20 UTC
Given the current state of affairs, upstream developers seem to be more in favor of replacing llvm-config use with CMake modules.
Comment 2 tt_1 2019-01-06 09:40:03 UTC
Is this fixed in trunk? 

https://reviews.llvm.org/D51714
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-18 08:05:38 UTC
(In reply to tt_1 from comment #2)
> Is this fixed in trunk? 
> 
> https://reviews.llvm.org/D51714

No, sadly. Added some relevant See Alsos. https://github.com/llvm/llvm-project/issues/58984 is the latest.