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:* - *OS*: CentoS 7 - *GCC Version*: 9.3.0 - *CMake Version*: 3.27.7 - *Protobuf Version*: 28.2 from GitHub *Steps to Reproduce: * => 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 => make * During the build process, I received the following error:* [ 27%] Linking CXX shared library libprotobuf-lited.so collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped compilation terminated. make[2]: *** [libprotobuf-lited.so.28.2.0] Error 1 make[2]: *** Deleting file `libprotobuf-lited.so.28.2.0' make[1]: *** [CMakeFiles/libprotobuf-lite.dir/all] Error 2 make: *** [all] Error 2 -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/6f56251d-169c-4ea8-b35b-32fa22ca2c33n%40googlegroups.com.
