Joe McDonnell created IMPALA-11599:
--------------------------------------

             Summary: GCC 10 toolchain's gdb won't run on older distributions
                 Key: IMPALA-11599
                 URL: https://issues.apache.org/jira/browse/IMPALA-11599
             Project: IMPALA
          Issue Type: Bug
          Components: Infrastructure
    Affects Versions: Impala 4.2.0
            Reporter: Joe McDonnell


gdb from Impala's toolchain is not running properly on centos 7:
{noformat}
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){noformat}
gdb was upgraded to version 12.1 in the upgrade to GCC 10. The rpath for GDB 
does not contain $ORIGIN entries:
{noformat}
$ objdump -p gdb | grep RPATH
  RPATH                
RIGIN/../lib64:/../lib64:RIGIN/../lib:/../lib:/mnt/source/gdb/gdb-12.1/gmp-6.1.0/install/lib
{noformat}
Here are some expected values for RPATH:
{noformat}
$ 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 {noformat}
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:
{noformat}
chrpath -r '$ORIGIN/../lib:$ORIGIN/../lib64' gdb{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to