Hadoop Common
  1. Hadoop Common
  2. HADOOP-7276

Hadoop native builds fail on ARM due to -m32

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.21.0
    • Fix Version/s: 0.23.0
    • Component/s: native
    • Labels:
      None
    • Environment:
    • Hadoop Flags:
      Reviewed

      Description

      The native build fails on machine targets where gcc does not support -m32. This is any target other than x86, SPARC, RS/6000, or PowerPC, such as ARM.

      $ ant -Dcompile.native=true
      ...
      [exec] make all-am
      [exec] make[1]: Entering directory
      `/home/trobinson/dev/hadoop-common/build/native/Linux-arm-32'
      [exec] /bin/bash ./libtool --tag=CC --mode=compile gcc
      -DHAVE_CONFIG_H -I. -I/home/trobinson/dev/hadoop-common/src/native
      -I/usr/lib/jvm/java-6-openjdk/include
      -I/usr/lib/jvm/java-6-openjdk/include/linux
      -I/home/trobinson/dev/hadoop-common/src/native/src
      -Isrc/org/apache/hadoop/io/compress/zlib
      -Isrc/org/apache/hadoop/security -Isrc/org/apache/hadoop/io/nativeio/
      -g -Wall -fPIC -O2 -m32 -g -O2 -MT ZlibCompressor.lo -MD -MP -MF
      .deps/ZlibCompressor.Tpo -c -o ZlibCompressor.lo `test -f
      'src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c' || echo
      '/home/trobinson/dev/hadoop-common/src/native/'`src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c
      [exec] libtool: compile: gcc -DHAVE_CONFIG_H -I.
      -I/home/trobinson/dev/hadoop-common/src/native
      -I/usr/lib/jvm/java-6-openjdk/include
      -I/usr/lib/jvm/java-6-openjdk/include/linux
      -I/home/trobinson/dev/hadoop-common/src/native/src
      -Isrc/org/apache/hadoop/io/compress/zlib
      -Isrc/org/apache/hadoop/security -Isrc/org/apache/hadoop/io/nativeio/
      -g -Wall -fPIC -O2 -m32 -g -O2 -MT ZlibCompressor.lo -MD -MP -MF
      .deps/ZlibCompressor.Tpo -c
      /home/trobinson/dev/hadoop-common/src/native/src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c
      -fPIC -DPIC -o .libs/ZlibCompressor.o
      [exec] make[1]: Leaving directory
      `/home/trobinson/dev/hadoop-common/build/native/Linux-arm-32'
      [exec] cc1: error: unrecognized command line option "-m32"
      [exec] make[1]: *** [ZlibCompressor.lo] Error 1
      [exec] make: *** [all] Error 2

        Issue Links

          Activity

          Trevor Robinson created issue -
          Trevor Robinson made changes -
          Field Original Value New Value
          Link This issue relates to HADOOP-6258 [ HADOOP-6258 ]
          Trevor Robinson made changes -
          Attachment hadoop-common-arm.patch [ 12478844 ]
          Trevor Robinson made changes -
          Link This issue relates to HDFS-1920 [ HDFS-1920 ]
          Trevor Robinson made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Eli Collins made changes -
          Assignee Trevor Robinson [ scurrilous ]
          Eli Collins made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Fix Version/s 0.23.0 [ 12315569 ]
          Resolution Fixed [ 1 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Eugene Koontz made changes -
          Link This issue is related to MAPREDUCE-3922 [ MAPREDUCE-3922 ]

            People

            • Assignee:
              Trevor Robinson
              Reporter:
              Trevor Robinson
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development