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

GCC 10 toolchain's gdb won't run on older distributions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 4.2.0
    • Impala 4.2.0
    • Infrastructure
    • None
    • ghx-label-9

    Description

      gdb from Impala's toolchain is not running properly on centos 7:

      00:52:23 gdb: /../lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by gdb)
      00:52:23 gdb: /../lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by gdb)
      00:52:23 gdb: /../lib64/libstdc++.so.6: version `CXXABI_1.3.11' not found (required by gdb)
      00:52:23 gdb: /../lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by gdb)
      00:52:23 gdb: /../lib64/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by gdb)
      00:52:23 gdb: /../lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by gdb)
      00:52:23 gdb: /../lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by gdb)
      00:52:23 gdb: /../lib64/libstdc++.so.6: version `CXXABI_1.3.11' not found (required by gdb)
      00:52:23 gdb: /../lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by gdb)
      00:52:23 gdb: /../lib64/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by gdb)

      gdb was upgraded to version 12.1 in the upgrade to GCC 10. The rpath for GDB does not contain $ORIGIN entries:

      $ objdump -p gdb | grep RPATH
        RPATH                RIGIN/../lib64:/../lib64:RIGIN/../lib:/../lib:/mnt/source/gdb/gdb-12.1/gmp-6.1.0/install/lib
      

      Here are some expected values for RPATH:

      $ objdump -p zstd | grep RPATH
        RPATH                $ORIGIN/../lib64:$$ORIGIN/../lib64:$ORIGIN/../lib:$$ORIGIN/../lib
      $ objdump -p thrift | grep RPATH
        RPATH                RIGIN/../lib64:$ORIGIN/../lib64:RIGIN/../lib:$ORIGIN/../lib 

      gdb seems to have another layer of variable resolution or something. So, we need to fix gdb's RPATH in the toolchain.

      As a workaround, someone can install chrpth and do:

      chrpath -r '$ORIGIN/../lib:$ORIGIN/../lib64' gdb

      Attachments

        Issue Links

          Activity

            People

              joemcdonnell Joe McDonnell
              joemcdonnell Joe McDonnell
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: