Bug 1083128

Summary: llvm ppc64le support
Product: [Fedora] Fedora Reporter: Menanteau Guy <menantea>
Component: llvmAssignee: Adam Jackson <ajax>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ajax, bos, dmalcolm, jv+fedora, petersen, scottt.tw
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-18 16:44:00 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: 1051573    
Attachments:
Description Flags
spec changes none

Description Menanteau Guy 2014-04-01 14:13:02 UTC
Created attachment 881367 [details]
spec changes

Description of problem:
Build failed for ppc64le arch 

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

There are basically two problems families.

First are problems due to abiv2 changes (suppression of .opd section...)
How reproducible:
rpmbuild --target ppc64le
Actual results:
/bin/ld: .opd not allowed in ABI version 2
/home/root/rpmbuild/BUILD/llvm-3.4/Release/lib/libLLVMPowerPCCodeGen.a(PPCJITInfo.o): error adding symbols: Bad value
collect2: error: ld returned 1 exit status

Those problems are corrected using patches described in 
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140310/208270.html

Second are problems due to bad spec file for llvm-devel files when make check is not executed.
How reproducible:
rpmbuild --target ppc64le --nocheck
Actual results:
Processing files: llvm-devel-3.4-5.fc21.ppc64le
error: Directory not found: /home/root/rpmbuild/BUILDROOT/llvm-3.4-5.fc21.ppc64le/usr/share/doc/llvm-devel

These problems are corrected by changeing spec file to define llvm-devel doc dir in %files devel and clang-devel doc dir and in %files -n clang-devel only
when make check is not run.
see llvm.spec.diff file in attachment