Bug 1392851

Summary: aarch64: 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: aarch64   
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:17:32 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:
Bug Depends On:    
Bug Blocks: 922257    

Description gil cattaneo 2016-11-08 11:17:23 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-aarch64/NativeDB.o(.eh_frame); no .eh_frame_hdr table will be created.

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

How reproducible:
Always

Comment 1 Dan HorĂ¡k 2016-11-08 11:30:13 UTC
same problem as on ppc64/ppc64le (bugs 1392848, 1392854)

Comment 2 Nick Clifton 2016-11-10 10:38:07 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 3 gil cattaneo 2016-11-10 12:17:32 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