Hello everyone,
I’m encountering a segmentation fault (signal 11) while building Protobuf from source on my Linux system. The error occurs during the linking phase when trying to generate the libprotobuf-lite.so shared object file. I’ve included details below about my setup, the commands I used, and the errors I’m seeing.
System Information:
=> git clone https://github.com/protocolbuffers/protobuf.git
=> cd protobuf/
=> git checkout v28.2
=> git submodule update
--init --recursive
=> mkdir cmake_build
=> cd cmake_build/
=> cmake .. -DABSL_PROPAGATE_CXX_STD=ON -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=/home/smahalin/protobuf -DCMAKE_C_COMPILER=/path_to/gcc/9.3.0/bin/gcc -DCMAKE_CXX_COMPILER=/path_to/gcc/9.3.0/bin/g++ -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug