Bug 1689031

Summary: enable PowerPC (or all) arches for llvm
Product: [Fedora] Fedora Reporter: Daniel Black <daniel>
Component: llvmAssignee: serge_sans_paille <sguelton>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: dmalcolm, jakub, jistone, scottt.tw, sguelton, siddharth.kde, stewart, tstellar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: llvm-7.0.1-4.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-25 06:05:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Black 2019-03-15 01:18:44 UTC
Description of problem:

I'd like to use llvm/clang to cross-compile to ppc64/ppc64le from x86_64.

I'd also like to target NVPTX from ppc64/ppc64le.

With a TALOS workstation I'd like WebAssembly fromppc64le like rhbz#1662559 too.

More generally I'd like all targets enabled because getting a cross-compiler when one isn't available is time consuming.

llvm by default has LLVM_TARGETS_TO_BUILD=all (https://llvm.org/docs/CMake.html#llvm-specific-variables) however Fedora restricts these https://src.fedoraproject.org/rpms/llvm/blob/f29/f/llvm.spec#_18.

Can we use a bit more build time and install space and just have these back to the default of all to save incremental additions like rhbz#1662559 and rhbz#1627500?

I understand it wasn't too long ago that these where reduced however it would be good to have a fully featured clang like in Ubuntu:
https://src.fedoraproject.org/rpms/llvm/c/b772b3b219546d9bfaadfc2f715a446914088187

Very roughly looking at packages across versions this might be 25% / 8MB extra. There's buildroot for space contentious distros and I don't think its Fedoras market.

Version-Release number of selected component (if applicable):

Name         : llvm
Version      : 7.0.1
Release      : 3.fc29
Architecture : x86_64
Size         : 15 M
Source       : llvm-7.0.1-3.fc29.src.rpm
Repository   : @System
From repo    : updates

$ clang -v
clang version 7.0.1 (Fedora 7.0.1-4.fc29)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/8
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/8
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/8
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64

How reproducible:

Steps to Reproduce:
1. clang -target powerpc64le /tmp/m.c

Actual results:

error: unable to create target: 'No available targets are compatible with this triple.'
1 error generated.

Expected results:

success.

Comment 1 serge_sans_paille 2019-03-18 14:41:58 UTC
Fixed for rawhide as of llvm-8.0.0-0.6.rc4.fc31

Comment 2 Daniel Black 2019-03-18 21:53:25 UTC
Thanks Serge for enabling all arches in rawhide and fc30

Fixes bug 1662559 as wee

Comment 3 Fedora Update System 2019-03-19 09:19:54 UTC
llvm-8.0.0-0.5.rc3.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-c9b6c5b554

Comment 4 Fedora Update System 2019-03-20 06:26:40 UTC
llvm-7.0.1-4.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-350fdd6efc

Comment 5 Fedora Update System 2019-03-20 22:02:27 UTC
llvm-7.0.1-4.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-350fdd6efc

Comment 6 Fedora Update System 2019-03-21 19:11:24 UTC
llvm-8.0.0-0.5.rc3.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-c9b6c5b554

Comment 7 Fedora Update System 2019-03-25 06:05:18 UTC
llvm-7.0.1-4.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2019-03-29 19:18:04 UTC
llvm-8.0.0-0.5.rc3.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.