Hadoop Common
  1. Hadoop Common
  2. HADOOP-7868

Hadoop native fails to compile when default linker option is -Wl,--as-needed

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 2.0.0-alpha
    • Fix Version/s: 1.2.0, 2.0.2-alpha, 0.23.6
    • Component/s: native
    • Labels:
      None
    • Environment:

      Ubuntu Precise, Ubuntu Oneiric, Debian Unstable

    • Hadoop Flags:
      Reviewed

      Description

      Recent releases of Ubuntu and Debian have switched to using --as-needed as default when linking binaries.

      As a result the AC_COMPUTE_NEEDED_DSO fails to find the required DSO names during execution of configure resulting in a build failure.

      Explicitly using "Wl,-no-as-needed" in this macro when required resolves this issue.

      See http://wiki.debian.org/ToolChain/DSOLinking for a few more details

      1. HADOOP-7868.patch
        2 kB
        James Page
      2. hadoop-7868-b1.txt
        3 kB
        Eli Collins
      3. HADOOP-7868-portable.patch
        3 kB
        Trevor Robinson

        Issue Links

          Activity

          James Page created issue -
          James Page made changes -
          Field Original Value New Value
          Summary Hadoop native failes to compile when default linker option is -Wl,--as-needed Hadoop native fails to compile when default linker option is -Wl,--as-needed
          Description Recent releases of Ubuntu and Debian have switched to using --as-needed as default when linking binaries.

          As a result the AC_COMPUTE_NEEDED_DSO fails to find the required DSO names during execution of configure resulting in a build failure.

          Explicitly using -Wl,--no-as-needed in this macro when required resolves this issue.

          See http://wiki.debian.org/ToolChain/DSOLinking for a few more details
          Recent releases of Ubuntu and Debian have switched to using --as-needed as default when linking binaries.

          As a result the AC_COMPUTE_NEEDED_DSO fails to find the required DSO names during execution of configure resulting in a build failure.

          Explicitly using "-Wl,--no-as-needed" in this macro when required resolves this issue.

          See http://wiki.debian.org/ToolChain/DSOLinking for a few more details
          James Page made changes -
          Attachment HADOOP-7868.patch [ 12505473 ]
          James Page made changes -
          Link This issue blocks BIGTOP-280 [ BIGTOP-280 ]
          James Page made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Affects Version/s 1.0.0 [ 12318244 ]
          Eugene Koontz made changes -
          Link This issue is duplicated by HADOOP-8196 [ HADOOP-8196 ]
          Eugene Koontz made changes -
          Link This issue is related to HADOOP-7979 [ HADOOP-7979 ]
          Trevor Robinson made changes -
          Attachment HADOOP-7868-portable.patch [ 12525955 ]
          Eli Collins made changes -
          Assignee Trevor Robinson [ scurrilous ]
          Eli Collins made changes -
          Fix Version/s 2.0.0 [ 12320352 ]
          Affects Version/s 2.0.0 [ 12320352 ]
          Affects Version/s 0.23.0 [ 12315569 ]
          Affects Version/s 0.20.205.0 [ 12316390 ]
          Target Version/s 1.1.0 [ 12316501 ]
          Arun C Murthy made changes -
          Fix Version/s 2.0.1-alpha [ 12321441 ]
          Fix Version/s 2.0.0-alpha [ 12320352 ]
          Eli Collins made changes -
          Attachment hadoop-7868-b1.txt [ 12533351 ]
          Eli Collins made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Target Version/s 1.1.0 [ 12316501 ]
          Fix Version/s 1.2.0 [ 12321659 ]
          Resolution Fixed [ 1 ]
          Arun C Murthy made changes -
          Fix Version/s 2.0.2-alpha [ 12322473 ]
          Fix Version/s 2.1.0-alpha [ 12321441 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Thomas Graves made changes -
          Fix Version/s 0.23.6 [ 12323504 ]
          Gavin made changes -
          Link This issue blocks BIGTOP-280 [ BIGTOP-280 ]
          Gavin made changes -
          Link This issue is depended upon by BIGTOP-280 [ BIGTOP-280 ]
          Peter Linnell made changes -
          Link This issue is related to BIGTOP-280 [ BIGTOP-280 ]

            People

            • Assignee:
              Trevor Robinson
              Reporter:
              James Page
            • Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development