8000 Build Fail with the Message undefined reference to `_Ux86_64_getcontext' · Issue #59888 · StarRocks/starrocks · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Build Fail with the Message undefined reference to `_Ux86_64_getcontext' #59888
Open
@rajatma1993

Description

@rajatma1993

Hi Team , I am trying to build the star Rocks in the X86 machine and Facing the below error message.

Java : 17

Error Message

> Linking protoc-gen-mcpack
/usr/bin/../bin/g++ -o protoc-gen-mcpack -std=c++17 -DBRPC_WITH_GLOG=1 -DGFLAGS_NS=google -D__const__=__unused__ -g -DENABLE_THRIFT_FRAMED_PROTOCOL -DBTHREAD_USE_FAST_PTHREAD_MUTEX -D_GNU_SOURCE -DUSE_SYMBOLIZE -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DNDEBUG -DBRPC_REVISION=\"1.9.0\|main\|05b8101105\|2025-06-13T13:55:19+08:00\" -O2 -pipe -Wall -W -fPIC -fstrict-aliasing -Wno-invalid-offsetof -Wno-unused-parameter -fno-omit-frame-pointer -I./src -I/home/rajatma/starrocks/thirdparty/installed/include/ -L/home/rajatma/starrocks/thirdparty/installed/lib -Xlinker "-(" src/idl_options.pb.cc src/mcpack2pb/generator.o libbrpc.a -Wl,-Bstatic -lgflags -lprotobuf -lleveldb -lthriftnb -lprotoc -lglog -Wl,-Bdynamic -Xlinker "-)" -lpthread -lssl -lcrypto -ldl -lz -lrt
> Copying to output/include
> Copying to output/lib
/usr/bin/../bin/ld: /home/rajatma/starrocks/thirdparty/installed/lib/libglog.a(stacktrace.cc.o): in function `google::glog_internal_namespace_::GetStackTrace(void**, int, int)':
./glog-0.7.1/./glog-0.7.1/src/stacktrace_libunwind-inl.h:69: undefined reference to `_Ux86_64_getcontext'
/usr/bin/../bin/ld: ./glog-0.7.1/./glog-0.7.1/src/stacktrace_libunwind-inl.h:70: undefined reference to `_ULx86_64_init_local'
/usr/bin/../bin/ld: ./glog-0.7.1/./glog-0.7.1/src/stacktrace_libunwind-inl.h:75: undefined reference to `_ULx86_64_get_reg'
/usr/bin/../bin/ld: ./glog-0.7.1/./glog-0.7.1/src/stacktrace_libunwind-inl.h:84: undefined reference to `_ULx86_64_step'
/usr/bin/../bin/ld: ./glog-0.7.1/./glog-0.7.1/src/stacktrace_libunwind-inl.h:84: undefined reference to `_ULx86_64_step'
collect2: error: ld returned 1 exit status
make: *** [Makefile:246: protoc-gen-mcpack] Error 1
make: *** Waiting for unfinished jobs....
`````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````
Steps we fallowed !!

git clone https://github.com/StarRocks/starrocks.git 

sudo apt update 

sudo apt install gcc g++ maven openjdk-17-jdk python3 python-is-python3 unzip cmake bzip2 ccache byacc ccache flex automake libtool bison binutils-dev libiberty-dev build-essential ninja-build export
 
JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 
cd starrocks/ 
sudo ./build.sh 

Full log 
After command : sudo ./build.sh 


Libraries have been installed in:
   /home/rajatma/starrocks/thirdparty/installed/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /usr/bin/../bin/mkdir -p '/home/rajatma/starrocks/thirdparty/installed/include/thrift/async'
 /usr/bin/../bin/install -c -m 644 src/thrift/async/TAsyncChannel.h src/thrift/async/TAsyncDispatchProcessor.h src/thrift/async/TAsyncProcessor.h src/thrift/async/TAsyncBufferProcessor.h src/thrift/async/TAsyncProtocolProcessor.h src/thrift/async/TConcurrentClientSyncInfo.h src/thrift/async/TEvhttpClientChannel.h src/thrift/async/TEvhttpServer.h '/home/rajatma/starrocks/thirdparty/installed/include/thrift/async'
 /usr/bin/../bin/mkdir -p '/home/rajatma/starrocks/thirdparty/installed/include/thrift/concurrency'
 /usr/bin/../bin/install -c -m 644 src/thrift/concurrency/Exception.h src/thrift/concurrency/Mutex.h src/thrift/concurrency/Monitor.h src/thrift/concurrency/ThreadFactory.h src/thrift/concurrency/Thread.h src/thrift/concurrency/ThreadManager.h src/thrift/concurrency/TimerManager.h src/thrift/concurrency/FunctionRunner.h '/home/rajatma/starrocks/thirdparty/installed/include/thrift/concurrency'
 /usr/bin/../bin/mkdir -p '/home/rajatma/starrocks/thirdparty/installed/include/thrift/processor'
 /usr/bin/../bin/install -c -m 644 src/thrift/processor/PeekProcessor.h src/thrift/processor/StatsProcessor.h src/thrift/processor/TMultiplexedProcessor.h '/home/rajatma/starrocks/thirdparty/installed/include/thrift/processor'
 /usr/bin/../bin/mkdir -p '/home/rajatma/starrocks/thirdparty/installed/include/thrift/protocol'
 /usr/bin/../bin/install -c -m 644 src/thrift/protocol/TEnum.h src/thrift/protocol/TList.h src/thrift/protocol/TSet.h src/thrift/protocol/TMap.h src/thrift/protocol/TBinaryProtocol.h src/thrift/protocol/TBinaryProtocol.tcc src/thrift/protocol/TCompactProtocol.h src/thrift/protocol/TCompactProtocol.tcc src/thrift/protocol/TDebugProtocol.h src/thrift/protocol/THeaderProtocol.h src/thrift/protocol/TBase64Utils.h src/thrift/protocol/TJSONProtocol.h src/thrift/protocol/TMultiplexedProtocol.h src/thrift/protocol/TProtocolDecorator.h src/thrift/protocol/TProtocolTap.h src/thrift/protocol/TProtocolTypes.h src/thrift/protocol/TProtocolException.h src/thrift/protocol/TVirtualProtocol.h src/thrift/protocol/TProtocol.h '/home/rajatma/starrocks/thirdparty/installed/include/thrift/protocol'
 /usr/bin/../bin/mkdir -p '/home/rajatma/starrocks/thirdparty/installed/include/thrift/qt'
 /usr/bin/../bin/install -c -m 644 src/thrift/qt/TQIODeviceTransport.h src/thrift/qt/TQTcpServer.h '/home/rajatma/starrocks/thirdparty/installed/include/thrift/qt'
 /usr/bin/../bin/mkdir -p '/home/rajatma/starrocks/thirdparty/installed/include/thrift/server'
 /usr/bin/../bin/install -c -m 644 src/thrift/server/TConnectedClient.h src/thrift/server/TServer.h src/thrift/server/TServerFramework.h src/thrift/server/TSimpleServer.h src/thrift/server/TThreadPoolServer.h src/thrift/server/TThreadedServer.h src/thrift/server/TNonblockingServer.h '/home/rajatma/starrocks/thirdparty/installed/include/thrift/server'
 /usr/bin/../bin/mkdir -p '/home/rajatma/starrocks/thirdparty/installed/include/thrift'
 /usr/bin/../bin/install -c -m 644 ../../config.h src/thrift/thrift-config.h src/thrift/thrift_export.h src/thrift/TDispatchProcessor.h src/thrift/Thrift.h src/thrift/TOutput.h src/thrift/TProcessor.h src/thrift/TApplicationException.h src/thrift/TLogging.h src/thrift/TToString.h src/thrift/TBase.h src/thrift/TConfiguration.h src/thrift/TNonCopyable.h '/home/rajatma/starrocks/thirdparty/installed/include/thrift'
 /usr/bin/../bin/mkdir -p '/home/rajatma/starrocks/thirdparty/installed/include/thrift/transport'
 /usr/bin/../bin/install -c -m 644 src/thrift/transport/PlatformSocket.h src/thrift/transport/TFDTransport.h src/thrift/transport/TFileTransport.h src/thrift/transport/THeaderTransport.h src/thrift/transport/TSimpleFileTransport.h src/thrift/transport/TServerSocket.h src/thrift/transport/TSSLServerSocket.h src/thrift/transport/TServerTransport.h src/thrift/transport/TNonblockingServerTransport.h src/thrift/transport/TNonblockingServerSocket.h src/thrift/transport/TNonblockingSSLServerSocket.h src/thrift/transport/THttpTransport.h src/thrift/transport/THttpClient.h src/thrift/transport/THttpServer.h src/thrift/transport/TSocket.h src/thrift/transport/TSocketUtils.h src/thrift/transport/TPipe.h src/thrift/transport/TPipeServer.h src/thrift/transport/TSSLSocket.h src/thrift/transport/TSocketPool.h src/thrift/transport/TVirtualTransport.h src/thrift/transport/TTransport.h src/thrift/transport/TTransportException.h src/thrift/transport/TTransportUtils.h src/thrift/transport/TBufferTransports.h src/thrift/transport/TShortReadTransport.h src/thrift/transport/TZlibTransport.h src/thrift/transport/TWebSocketServer.h src/thrift/transport/SocketCommon.h '/home/rajatma/starrocks/thirdparty/installed/include/thrift/transport'
 /usr/bin/../bin/mkdir -p '/home/rajatma/starrocks/thirdparty/installed/lib/pkgconfig'
 /usr/bin/../bin/install -c -m 644 thrift.pc thrift-nb.pc thrift-z.pc '/home/rajatma/starrocks/thirdparty/installed/lib/pkgconfig'
make[4]: Leaving directory '/home/rajatma/starrocks/thirdparty/src/thrift-0.20.0/lib/cpp'
make[3]: Leaving directory '/home/rajatma/starrocks/thirdparty/src/thrift-0.20.0/lib/cpp'
make[2]: Leaving directory '/home/rajatma/starrocks/thirdparty/src/thrift-0.20.0/lib/cpp'
make[2]: Entering directory '/home/rajatma/starrocks/thirdparty/src/thrift-0.20.0/lib'
make[3]: Entering directory '/home/rajatma/starrocks/thirdparty/src/thrift-0.20.0/lib'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/rajatma/starrocks/thirdparty/src/thrift-0.20.0/lib'
make[2]: Leaving directory '/home/rajatma/starrocks/thirdparty/src/thrift-0.20.0/lib'
make[1]: Leaving directory '/home/rajatma/starrocks/thirdparty/src/thrift-0.20.0/lib'
make[1]: Entering directory '/home/rajatma/starrocks/thirdparty/src/thrift-0.20.0'
make[2]: Entering directory '/home/rajatma/starrocks/thirdparty/src/thrift-0.20.0'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/rajatma/starrocks/thirdparty/src/thrift-0.20.0'
make[1]: Leaving directory '/home/rajatma/starrocks/thirdparty/src/thrift-0.20.0'
===== begin build leveldb-1.20
make: Nothing to be done for 'default'.
===== begin build brpc-1.9.0
greater
> Linking protoc-gen-mcpack
/usr/bin/../bin/g++ -o protoc-gen-mcpack -std=c++17 -DBRPC_WITH_GLOG=1 -DGFLAGS_NS=google -D__const__=__unused__ -g -DENABLE_THRIFT_FRAMED_PROTOCOL -DBTHREAD_USE_FAST_PTHREAD_MUTEX -D_GNU_SOURCE -DUSE_SYMBOLIZE -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DNDEBUG -DBRPC_REVISION=\"1.9.0\|main\|05b8101105\|2025-06-13T13:55:19+08:00\" -O2 -pipe -Wall -W -fPIC -fstrict-aliasing -Wno-invalid-offsetof -Wno-unused-parameter -fno-omit-frame-pointer -I./src -I/home/rajatma/starrocks/thirdparty/installed/include/ -L/home/rajatma/starrocks/thirdparty/installed/lib -Xlinker "-(" src/idl_options.pb.cc src/mcpack2pb/generator.o libbrpc.a -Wl,-Bstatic -lgflags -lprotobuf -lleveldb -lthriftnb -lprotoc -lglog -Wl,-Bdynamic -Xlinker "-)" -lpthread -lssl -lcrypto -ldl -lz -lrt
> Copying to output/include
> Copying to output/lib
/usr/bin/../bin/ld: /home/rajatma/starrocks/thirdparty/installed/lib/libglog.a(stacktrace.cc.o): in function `google::glog_internal_namespace_::GetStackTrace(void**, int, int)':
./glog-0.7.1/./glog-0.7.1/src/stacktrace_libunwind-inl.h:69: undefined reference to `_Ux86_64_getcontext'
/usr/bin/../bin/ld: ./glog-0.7.1/./glog-0.7.1/src/stacktrace_libunwind-inl.h:70: undefined reference to `_ULx86_64_init_local'
/usr/bin/../bin/ld: ./glog-0.7.1/./glog-0.7.1/src/stacktrace_libunwind-inl.h:75: undefined reference to `_ULx86_64_get_reg'
/usr/bin/../bin/ld: ./glog-0.7.1/./glog-0.7.1/src/stacktrace_libunwind-inl.h:84: undefined reference to `_ULx86_64_step'
/usr/bin/../bin/ld: ./glog-0.7.1/./glog-0.7.1/src/stacktrace_libunwind-inl.h:84: undefined reference to `_ULx86_64_step'
collect2: error: ld returned 1 exit status
make: *** [Makefile:246: protoc-gen-mcpack] Error 1
make: *** Waiting for unfinished jobs....

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0