Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1392848

Summary: ppc64le: no .eh_frame_hdr table will be created
Product: [Fedora] Fedora Reporter: gil cattaneo <puntogil>
Component: binutilsAssignee: Nick Clifton <nickc>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dan, jakub, nickc
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Unspecified   
Whiteboard:
Fixed In Version: sqlite-jdbc-3.15.1-2.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-10 12:18:13 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 gil cattaneo 2016-11-08 11:15:24 UTC
Description of problem:
from http://koji.fedoraproject.org/koji/taskinfo?taskID=16325379
 [exec] /usr/bin/ld: error in target/sqlite-3.15.1-Linux-ppc64le/NativeDB.o(.eh_frame); no .eh_frame_hdr table will be created.
     [exec] /usr/bin/ld: target/sqlite-3.15.1-Linux-ppc64le/NativeDB.o: access beyond end of merged section (30321)
     [exec] /usr/bin/ld: target/sqlite-3.15.1-Linux-ppc64le/NativeDB.o: access beyond end of merged section (30321)
     [exec] /usr/bin/ld: target/sqlite-3.15.1-Linux-ppc64le/NativeDB.o: access beyond end of merged section (30321)
     [exec] /usr/bin/ld: target/sqlite-3.15.1-Linux-ppc64le/NativeDB.o: access beyond end of merged section (30312)
     [exec] /usr/bin/ld: target/sqlite-3.15.1-Linux-ppc64le/NativeDB.o: access beyond end of merged section (30312)
     [exec] /usr/bin/ld: target/sqlite-3.15.1-Linux-ppc64le/NativeDB.o: access beyond end of merged section (30312)

Version-Release number of selected component (if applicable):
2.27-10.fc26.ppc64le

How reproducible:
Always

Comment 1 Nick Clifton 2016-11-10 10:37:43 UTC
This appears to be a problem with the makefile being used to build the
libsqlitejdbc.so library.  Running a parallel make results in the
error reported, but running a sequential make does not.  Hence I am
currently of the opinion that this is not actually a bug in the
linker, but rather a bug in the sqlite-jdbc build system. 

As a suggested fix try adding "-j 1" to the make command line, like this:

diff --git a/sqlite-jdbc.spec b/sqlite-jdbc.spec
index 9e045f4..414e7ce 100644
--- a/sqlite-jdbc.spec
+++ b/sqlite-jdbc.spec
@@ -124,6 +124,7 @@ sed -i '/SQLiteDataSourceTest/d' src/test/java/org/sqlite/AllTests.java
        </javac>
        <exec executable="make">
         <arg line="%{?_smp_mflags}
+       -j 1
         JAVA_HOME=%{_jvmdir}/java
         JAVA=%{_jvmdir}/java/bin/java
         JAVAC=%{_jvmdir}/java/bin/javac

Comment 2 gil cattaneo 2016-11-10 12:18:13 UTC
Thanks for your help! Solved using native task, as you said, "to avoid to run multiple, conflicting, operations at the same time"
Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=16383709