Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-9863

Print warning when developer sets LD_LIBRARY_PATH with the system library

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: Impala 4.0.0
    • Fix Version/s: Not Applicable
    • Component/s: Infrastructure
    • Labels:
      None
    • Epic Color:
      ghx-label-4

      Description

      With the upgrade to GCC 7.5.0, the libstdc++ used for Impala development is now newer than the system libraries on several supported platforms (Centos 7, Ubuntu 16). Ubuntu 16 is particularly important as the main development platform.

      Up until recently, bin/bootstrap_system.sh added this line to bin/impala-config-local.sh:

       

      export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}

      This line causes problems for Kudu startup, because Kudu uses symbols from GCC 7.5.0's libstdc++ that are not present in the system libstdc++. When it tries to lookup those symbols, it tries LD_LIBRARY_PATH first and fails with this message:

       

      /opt/Impala-Toolchain/toolchain-packages-gcc7.5.0/kudu-d652cab17/release/bin/kudu-tserver: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /opt/Impala-Toolchain/toolchain-packages-gcc7.5.0/kudu-d652cab17/release/bin/kudu-tserver)

      Without the LD_LIBRARY_PATH, the kudu binary would use its RPATH to find the toolchain's libstdc++ (and thus not have this problem).

      Let's print a warning for this.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              joemcdonnell Joe McDonnell
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: