Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507508 - sys-devel/llvm - add support for building only non-native targets
Summary: sys-devel/llvm - add support for building only non-native targets
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-12 14:35 UTC by Luke-Jr
Modified: 2016-10-01 16:08 UTC (History)
0 users

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 Luke-Jr 2014-04-12 14:35:08 UTC
Since llvm doesn't work on x32, I'd like to just build the r600 backend.
But it seems the current ebuilds don't have any way to do this?
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-04-14 15:03:04 UTC
Please rephrase that more verbosely, since I don't understand what you exactly want to get and for which targets.
Comment 2 Luke-Jr 2014-04-14 15:07:06 UTC
LLVM does not currently support x32, but Mesa's OpenCL requires LLVM for the r600 compiler. So the only way to get OpenCL support on x32 right now would be to build LLVM targetting *only* r600, but not the native platform (x32, unsupported).
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-04-14 15:13:27 UTC
Oh, so you mean you want libx32 version of llvm without the 'host' target, correct? Did you confirm that building like this works?

Also, could you elaborate a bit more on how x32 doesn't work? Looking at the configure code, I think it should select plain x86_64 on x32. Does that fail to build or does something else happen? Build log would be appreciated to understand the issue better.
Comment 4 Luke-Jr 2014-04-14 15:16:05 UTC
(In reply to Michał Górny from comment #3)
> Oh, so you mean you want libx32 version of llvm without the 'host' target,
> correct? Did you confirm that building like this works?

I wasn't able to get it to work, but the LLVM developers tell me it should... somehow.

> Also, could you elaborate a bit more on how x32 doesn't work? Looking at the
> configure code, I think it should select plain x86_64 on x32. Does that fail
> to build or does something else happen? Build log would be appreciated to
> understand the issue better.

At least bugs #480378 and #506594 are tracking this.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-04-14 15:37:22 UTC
Ok, I'm going to take a look at this but I need to get x32-capable toolchain first and this will take a while.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-08-16 16:43:54 UTC
Since this specific subset of targets is quite uncommon, I'm going to merge this into the bug requesting full target selection.

*** This bug has been marked as a duplicate of bug 523732 ***
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-10-01 16:08:10 UTC
Ok, so things changed a little.

Good news is that we have fine-grained target selection now. Bad news is that in order to keep dependencies sane, native target is always enabled. However, you can explicitly un-package.use.force if you really want to.