[ 
https://issues.apache.org/jira/browse/IMPALA-15325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on IMPALA-15325 started by Michael Smith.
----------------------------------------------
> native-toolchain build of glog detects local libunwind-dev
> ----------------------------------------------------------
>
>                 Key: IMPALA-15325
>                 URL: https://issues.apache.org/jira/browse/IMPALA-15325
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Toolchain
>            Reporter: Michael Smith
>            Assignee: Michael Smith
>            Priority: Major
>
> When building cloudera/native-toolchain locally, I ran into errors like
> {code:java}
> FAILED: be/src/kudu/util/protoc-gen-insertions 
> : && /home/michael/Impala/bin/junitxml_command_wrapper.sh ccache 
> /home/michael/Cloudera/native-toolchain/build/gcc-15.3.0/bin/g++ -Wall 
> -Wno-sign-compare -Wno-unknown-pragmas -pthread -fno-strict-aliasing 
> -fno-omit-frame-pointer -fsigned-char -Wno-vla 
> -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG -DBOOST_SYSTEM_NO_DEPRECATED 
> -DBOOST_BIND_GLOBAL_PLACEHOLDERS -DBOOST_ALLOW_DEPRECATED_HEADERS 
> -DBOOST_UUID_RANDOM_PROVIDER_FORCE_POSIX -DRAPIDJSON_HAS_STDSTRING=1 -B 
> /home/michael/Cloudera/native-toolchain/build/binutils-2.44/bin/ 
> -Wno-deprecated-declarations -fuse-ld=gold -g -Wno-unused-local-typedefs 
> -gdwarf-4 -Wno-maybe-uninitialized -Wno-class-memaccess 
> -Wno-init-list-lifetime -Wno-invalid-memory-model -O3 -DNDEBUG -fverbose-asm 
> -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS 
> -D__STDC_LIMIT_MACROS -gz -O3 -DNDEBUG -Wl,--export-dynamic -rdynamic 
> be/src/kudu/util/CMakeFiles/protoc-gen-insertions.dir/protoc-gen-insertions.cc.o
>  -o be/src/kudu/util/protoc-gen-insertions  be/build/release/gutil/libgutil.a 
>  /home/michael/Cloudera/native-toolchain/build/glog-0.6.0-p2/lib/libglog.a  
> /home/michael/Cloudera/native-toolchain/build/gflags-2.2.0-p2/lib/libgflags.a 
>  
> /home/michael/Cloudera/native-toolchain/build/protobuf-3.14.0/lib/libprotoc.a 
>  
> /home/michael/Cloudera/native-toolchain/build/protobuf-3.14.0/lib/libprotobuf.a
>   /usr/lib/x86_64-linux-gnu/librt.a && :
> /home/michael/Cloudera/native-toolchain/source/glog/glog-0.6.0-p2/src/stacktrace_libunwind-inl.h:68:
>  error: undefined reference to '_Ux86_64_getcontext'
> /home/michael/Cloudera/native-toolchain/source/glog/glog-0.6.0-p2/src/stacktrace_libunwind-inl.h:69:
>  error: undefined reference to '_ULx86_64_init_local'
> /home/michael/Cloudera/native-toolchain/source/glog/glog-0.6.0-p2/src/stacktrace_libunwind-inl.h:74:
>  error: undefined reference to '_ULx86_64_get_reg'
> /home/michael/Cloudera/native-toolchain/source/glog/glog-0.6.0-p2/src/stacktrace_libunwind-inl.h:83:
>  error: undefined reference to '_ULx86_64_step'
> /home/michael/Cloudera/native-toolchain/source/glog/glog-0.6.0-p2/src/stacktrace_libunwind-inl.h:83:
>  error: undefined reference to '_ULx86_64_step'
> collect2: error: ld returned 1 exit status {code}
> My environment was picking up an older version of libunwind-dev while 
> building glog, which would later fail to link in Impala.
> We don't specify a version for glog, so we should explicitly disable using 
> unwind in the glog build to avoid picking it up from the environment.



--
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