You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Alexey Serbin (Code Review)" <ge...@cloudera.org> on 2018/08/25 07:24:36 UTC

[kudu-CR] [gutil] add libunwind along with libglog to fix build

Alexey Serbin has uploaded this change for review. ( http://gerrit.cloudera.org:8080/11327


Change subject: [gutil] add libunwind along with libglog to fix build
......................................................................

[gutil] add libunwind along with libglog to fix build

Since libglog depends on libunwind (at least on older Linux systems),
it's necessary to add libunwind into the list of libraries when
linking in libglog.  Otherwise, in case of a static linkage, there are
errors like below:

./../../lib/../src/kudu/util/CMakeFiles/kudu_util.dir/debug-util.cc.o: In function `PrimeLibunwind':
src/kudu/src/kudu/util/debug-util.cc:349: undefined reference to `_Ux86_64_getcontext'
src/kudu/src/kudu/util/debug-util.cc:350: undefined reference to `_ULx86_64_init_local'
../../../lib/../src/kudu/util/CMakeFiles/kudu_util.dir/debug-util.cc.o: In function `kudu::StackTrace::Collect(int)':
src/kudu/src/kudu/util/debug-util.cc:591: undefined reference to `_Ux86_64_getcontext'
src/kudu/src/kudu/util/debug-util.cc:592: undefined reference to `_ULx86_64_init_local'
src/kudu/src/kudu/util/debug-util.cc:607: undefined reference to `_ULx86_64_step'
src/kudu/src/kudu/util/debug-util.cc:598: undefined reference to `_ULx86_64_get_reg'
src/kudu/src/kudu/util/debug-util.cc:607: undefined reference to `_ULx86_64_step'
../../../../../thirdparty/installed/uninstrumented/lib/libglog.a(libglog_la-utilities.o): In function `GetStackTrace':
src/kudu/thirdparty/src/glog-0.3.5/src/stacktrace_libunwind-inl.h:65: undefined reference to `_Ux86_64_getcontext'
src/kudu/thirdparty/src/glog-0.3.5/src/stacktrace_libunwind-inl.h:66: undefined reference to `_ULx86_64_init_local'
src/kudu/thirdparty/src/glog-0.3.5/src/stacktrace_libunwind-inl.h:78: undefined reference to `_ULx86_64_step'
src/kudu/thirdparty/src/glog-0.3.5/src/stacktrace_libunwind-inl.h:70: undefined reference to `_ULx86_64_get_reg'
src/kudu/thirdparty/src/glog-0.3.5/src/stacktrace_libunwind-inl.h:78: undefined reference to `_ULx86_64_step'
collect2: error: ld returned 1 exit status

This is a follow-up for a8d088e11b8b901a91e4820dcfdca9537a1e801a: in
that changelist KUDU_BASE_LIBS were removed from the linkage
of libraries/binaries where libgutil was linked in (KUDU_BASE_LIBS
contains both libglog and libunwind).

Change-Id: Ia91824b257fbc41a442b484bbc5a5f926db708ec
---
M src/kudu/gutil/CMakeLists.txt
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/27/11327/1
-- 
To view, visit http://gerrit.cloudera.org:8080/11327
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia91824b257fbc41a442b484bbc5a5f926db708ec
Gerrit-Change-Number: 11327
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>

[kudu-CR] [gutil] add libunwind along with libglog to fix build

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/11327 )

Change subject: [gutil] add libunwind along with libglog to fix build
......................................................................


Patch Set 1:

> Just tested on a centos 6.6 machine, without this patch I couldn't
 > build in release mode.

Thank you for the review!


-- 
To view, visit http://gerrit.cloudera.org:8080/11327
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia91824b257fbc41a442b484bbc5a5f926db708ec
Gerrit-Change-Number: 11327
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Comment-Date: Sat, 25 Aug 2018 08:06:18 +0000
Gerrit-HasComments: No

[kudu-CR] [gutil] add libunwind along with libglog to fix build

Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Andrew Wong has posted comments on this change. ( http://gerrit.cloudera.org:8080/11327 )

Change subject: [gutil] add libunwind along with libglog to fix build
......................................................................


Patch Set 1: Code-Review+2

Just tested on a centos 6.6 machine, without this patch I couldn't build in release mode.


-- 
To view, visit http://gerrit.cloudera.org:8080/11327
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia91824b257fbc41a442b484bbc5a5f926db708ec
Gerrit-Change-Number: 11327
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Comment-Date: Sat, 25 Aug 2018 07:51:45 +0000
Gerrit-HasComments: No

[kudu-CR] [gutil] add libunwind along with libglog to fix build

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/11327 )

Change subject: [gutil] add libunwind along with libglog to fix build
......................................................................

[gutil] add libunwind along with libglog to fix build

Since libglog depends on libunwind (at least on older Linux systems),
it's necessary to add libunwind into the list of libraries when
linking in libglog.  Otherwise, in case of a static linkage, there are
errors like below:

./../../lib/../src/kudu/util/CMakeFiles/kudu_util.dir/debug-util.cc.o: In function `PrimeLibunwind':
src/kudu/src/kudu/util/debug-util.cc:349: undefined reference to `_Ux86_64_getcontext'
src/kudu/src/kudu/util/debug-util.cc:350: undefined reference to `_ULx86_64_init_local'
../../../lib/../src/kudu/util/CMakeFiles/kudu_util.dir/debug-util.cc.o: In function `kudu::StackTrace::Collect(int)':
src/kudu/src/kudu/util/debug-util.cc:591: undefined reference to `_Ux86_64_getcontext'
src/kudu/src/kudu/util/debug-util.cc:592: undefined reference to `_ULx86_64_init_local'
src/kudu/src/kudu/util/debug-util.cc:607: undefined reference to `_ULx86_64_step'
src/kudu/src/kudu/util/debug-util.cc:598: undefined reference to `_ULx86_64_get_reg'
src/kudu/src/kudu/util/debug-util.cc:607: undefined reference to `_ULx86_64_step'
../../../../../thirdparty/installed/uninstrumented/lib/libglog.a(libglog_la-utilities.o): In function `GetStackTrace':
src/kudu/thirdparty/src/glog-0.3.5/src/stacktrace_libunwind-inl.h:65: undefined reference to `_Ux86_64_getcontext'
src/kudu/thirdparty/src/glog-0.3.5/src/stacktrace_libunwind-inl.h:66: undefined reference to `_ULx86_64_init_local'
src/kudu/thirdparty/src/glog-0.3.5/src/stacktrace_libunwind-inl.h:78: undefined reference to `_ULx86_64_step'
src/kudu/thirdparty/src/glog-0.3.5/src/stacktrace_libunwind-inl.h:70: undefined reference to `_ULx86_64_get_reg'
src/kudu/thirdparty/src/glog-0.3.5/src/stacktrace_libunwind-inl.h:78: undefined reference to `_ULx86_64_step'
collect2: error: ld returned 1 exit status

This is a follow-up for a8d088e11b8b901a91e4820dcfdca9537a1e801a: in
that changelist KUDU_BASE_LIBS were removed from the linkage
of libraries/binaries where libgutil was linked in (KUDU_BASE_LIBS
contains both libglog and libunwind).

Change-Id: Ia91824b257fbc41a442b484bbc5a5f926db708ec
Reviewed-on: http://gerrit.cloudera.org:8080/11327
Reviewed-by: Andrew Wong <aw...@cloudera.com>
Tested-by: Kudu Jenkins
---
M src/kudu/gutil/CMakeLists.txt
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Andrew Wong: Looks good to me, approved
  Kudu Jenkins: Verified

-- 
To view, visit http://gerrit.cloudera.org:8080/11327
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia91824b257fbc41a442b484bbc5a5f926db708ec
Gerrit-Change-Number: 11327
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Kudu Jenkins