You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Joe McDonnell (Jira)" <ji...@apache.org> on 2024/06/25 16:05:00 UTC
[jira] [Commented] (IMPALA-12541) Compile toolchain GCC with --enable-linker-build-id to add Build ID to binaries
[ https://issues.apache.org/jira/browse/IMPALA-12541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17859971#comment-17859971 ]
Joe McDonnell commented on IMPALA-12541:
----------------------------------------
{noformat}
commit e78b0ef34241218cda7eac3b526cb6a824596df1
Author: Joe McDonnell <jo...@cloudera.com>
Date: Fri Nov 3 14:18:47 2023 -0700 IMPALA-12541: Build GCC with --enable-linker-build-id
This builds GCC with --enable-linker-build-id so that
binaries have Build ID specified. Build ID is needed to
produce OS packages with separate debuginfo. This is
particularly important for libstdc++, because it is
not built as part of the regular Impala build.
Testing:
- Verified that resulting binaries have .note.gnu.build-id
Change-Id: Ieb2017ba1a348a9e9e549fa3268635afa94ae6d0
Reviewed-on: http://gerrit.cloudera.org:8080/21469
Reviewed-by: Michael Smith <mi...@cloudera.com>
Reviewed-by: Laszlo Gaal <la...@cloudera.com>
Tested-by: Joe McDonnell <jo...@cloudera.com>
{noformat}
> Compile toolchain GCC with --enable-linker-build-id to add Build ID to binaries
> -------------------------------------------------------------------------------
>
> Key: IMPALA-12541
> URL: https://issues.apache.org/jira/browse/IMPALA-12541
> Project: IMPALA
> Issue Type: Improvement
> Components: Infrastructure
> Affects Versions: Impala 4.4.0
> Reporter: Joe McDonnell
> Assignee: Joe McDonnell
> Priority: Major
>
> A "Build ID" is a unique identifier for binaries (which is a hash of the contents). Producing OS packages with separate debug symbols requires each binary to have a Build ID. This is particularly important for libstdc++, because it is produced during the native-toolchain build rather than the regular Impala build. To turn on Build IDs, one can configure that at GCC build time by specifying "--enable-linker-build-id". This causes GCC to tell the linker to compute the Build ID.
> Breakpad will also use the Build ID when resolving symbols.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org