[ 
https://issues.apache.org/jira/browse/IMPALA-11599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17608822#comment-17608822
 ] 

ASF subversion and git services commented on IMPALA-11599:
----------------------------------------------------------

Commit 296e94411d3344e2969d4b083036ff238e80ad19 in impala's branch 
refs/heads/master from Joe McDonnell
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=296e94411 ]

IMPALA-11599/IMPALA-11605: GCC 10: Fix gdb and change to flatbuffers 1.9

This contains two fixes for issues introduced by
IMPALA-9999's upgrade to GCC 10:
IMPALA-11599: Builds toolchain gdb with the OS compiler,
fixing an issue where it could not run on Centos 7 due
to problems with its RPATH / finding appropriate libstdc++.
IMPALA-11605: Reverts to flatbuffers 1.9, which avoids
a mismatch with the version that Hive uses. This avoids
classpath incompatibility issues.

Testing:
 - Verified that toolchain gdb works on Centos 7
 - Verified that interoperability with Hive is restored

Change-Id: Ieaafdb1da05cab60b254115faaae55dba8b67dfd
Reviewed-on: http://gerrit.cloudera.org:8080/19034
Tested-by: Joe McDonnell <[email protected]>
Reviewed-by: Wenzhe Zhou <[email protected]>


> 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
>            Assignee: Joe McDonnell
>            Priority: Critical
>
> 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)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to