Bug 1365739

Summary: clang compile on ppc64le error: unable to interface with target machine
Product: [Fedora] Fedora EPEL Reporter: Daniel Black <daniel>
Component: llvmAssignee: Dave Johansen <davejohansen>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: dan, daniel, davejohansen, tstellar
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-15 00:46:12 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:
Bug Depends On:    
Bug Blocks: 1071880    

Description Daniel Black 2016-08-10 06:31:19 UTC
Description of problem:

yum info clang

Installed Packages
Name        : clang
Arch        : ppc64le
Version     : 3.4.2
Release     : 8.el7
Size        : 66 M
Repo        : installed
From repo   : epel
Summary     : A C language family front-end for LLVM
URL         : http://llvm.org/
License     : NCSA
Description : clang: noun
            :     1. A loud, resonant, metallic sound.
            :     2. The strident call of a crane or goose.
            :     3. C-language family front-end toolkit.
            :
            : The goal of the Clang project is to create a new C, C++, Objective C
            : and Objective C++ front-end for the LLVM compiler. Its tools are built
            : as libraries and designed to be loosely-coupled and extensible.


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

$ clang --version
clang version 3.4.2 (tags/RELEASE_34/dot2-final)
Target: powerpc64le-redhat-linux-gnu
Thread model: posix


How reproducible:


Steps to Reproduce:
1.

cat /tmp/test.c

int
main() {

return 0;
}


2.
clang -o /tmp/test.o -c  /tmp/test.c
error: unable to interface with target machine
1 error generated.

3.
$ clang -c  /tmp/test.c
error: unable to interface with target machine
1 error generated.


Actual results:

error: unable to interface with target machine

Expected results:

successful compile

Additional info:

Comment 1 Dave Johansen 2016-08-11 03:21:52 UTC
I don't have access to hardware, so please submit a patch.

Comment 2 Dan HorĂ¡k 2016-09-20 15:02:57 UTC
Could be that llvm 3.4 doesn't have enough of ppc64le support. There are newer versions of llvm packaged in Fedora in separate packages, so they could be brought into EPEL as well.

Comment 3 Tom Stellard 2017-09-02 00:11:57 UTC
ppc64le was not fully supported until LLVM 3.5: http://releases.llvm.org/3.5.1/docs/ReleaseNotes.html

Comment 4 Daniel Black 2017-11-07 05:58:51 UTC
Ack. Seems to be removed from EPEL which works for me: https://apps.fedoraproject.org/packages/clang/overview/

Comment 5 Daniel Black 2019-03-15 00:46:12 UTC
Fixed by of old version from EPEL.