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 1151741

Summary: FTBFS on arm
Product: [Fedora] Fedora Reporter: Dan Horák <dan>
Component: hadoopAssignee: Robert Rati <rrati>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: besser82, matt, pbrobinson, rrati
Target Milestone: ---   
Target Release: ---   
Hardware: armhfp   
OS: Unspecified   
Whiteboard:
Fixed In Version: avro-1.7.5-10.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-21 21:53:45 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: 245418    
Attachments:
Description Flags
fix build on ARM none

Description Dan Horák 2014-10-11 09:11:38 UTC
Created attachment 945928 [details]
fix build on ARM

hadoop build fails on ARM in Java detection in hadoop-common with

...
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (make) @ hadoop-common ---
[INFO] Executing tasks
main:
     [exec] -- The C compiler identification is GNU 4.9.1
     [exec] -- The CXX compiler identification is GNU 4.9.1
     [exec] -- Check for working C compiler: /usr/bin/cc
     [exec] -- Check for working C compiler: /usr/bin/cc -- works
     [exec] -- Detecting C compiler ABI info
     [exec] -- Detecting C compiler ABI info - done
     [exec] -- Check for working CXX compiler: /usr/bin/c++
     [exec] -- Check for working CXX compiler: /usr/bin/c++ -- works
     [exec] -- Detecting CXX compiler ABI info
     [exec] -- Detecting CXX compiler ABI info - done
     [exec] Soft-float JVM detected
     [exec] -- Looking for exit
     [exec] -- Looking for exit - not found
     [exec] -- Configuring incomplete, errors occurred!
     [exec] See also "/builddir/build/BUILD/hadoop-common-9e2ef43a240fb0f603d8c384e501daec11524510/hadoop-common-project/hadoop-common/target/native/CMakeFiles/CMakeOutput.log".
     [exec] See also "/builddir/build/BUILD/hadoop-common-9e2ef43a240fb0f603d8c384e501daec11524510/hadoop-common-project/hadoop-common/target/native/CMakeFiles/CMakeError.log".
     [exec] CMake Error at JNIFlags.cmake:59 (message):
     [exec]   Soft-float dev libraries required (e.g.  'apt-get install libc6-dev-armel'
     [exec]   on Debian/Ubuntu)
     [exec] Call Stack (most recent call first):
     [exec]   CMakeLists.txt:24 (include)
     [exec] 
...

The Java detection in JNIFlags.cmake is wrong when hadoop is built in a distribution. The solution is to drop the special handling of ARM completely, see the attached patch. Resulting scratch build is http://koji.fedoraproject.org/koji/taskinfo?taskID=7820354

Version-Release number of selected component (if applicable):
hadoop-2.4.1-5.fc21

Comment 1 Peter Robinson 2015-04-21 21:53:45 UTC

*** This bug has been marked as a duplicate of bug 999971 ***

Comment 2 Fedora Update System 2015-04-22 13:05:54 UTC
avro-1.7.5-10.fc22, hive-0.12.0-6.fc22, parquet-1.5.0-5.fc22, accumulo-1.6.1-3.fc22, hadoop-2.4.1-8.fc22, hbase-0.98.3-4.fc22, oozie-4.0.1-4.fc22, glusterfs-hadoop-2.3.2-5.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/hadoop-2.4.1-8.fc22,avro-1.7.5-10.fc22,hbase-0.98.3-4.fc22,hive-0.12.0-6.fc22,oozie-4.0.1-4.fc22,parquet-1.5.0-5.fc22,glusterfs-hadoop-2.3.2-5.fc22,accumulo-1.6.1-3.fc22

Comment 3 Fedora Update System 2015-04-27 08:39:59 UTC
avro-1.7.5-10.fc22, hive-0.12.0-6.fc22, parquet-1.5.0-5.fc22, accumulo-1.6.1-3.fc22, hadoop-2.4.1-8.fc22, hbase-0.98.3-4.fc22, oozie-4.0.1-4.fc22, glusterfs-hadoop-2.3.2-5.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.