Don't bother guys, I just saw new options that can be passed to Abseil: https://github.com/abseil/abseil-cpp/blob/3848ed7f1b13259a8ddd35dc56bf216ecd36d968/ci/linux_gcc-latest_libstdcxx_cmake.sh#L33
On Wednesday, August 7, 2024 at 3:19:48 PM UTC+3 saif kandil wrote: > Hello folks, > > I created this simple solution to try to link absl, protobuf, and grpc > together to see if they work without problems, and I have figured out that > static linking is working perfect however the dynamic linking is not: > > Static linking status: > https://github.com/k0T0z/absl-proto-grpc-ci/actions/runs/10282329751/job/28453797159 > Dynamic linking status: > https://github.com/k0T0z/absl-proto-grpc-ci/actions/runs/10283676833/job/28458035515 > > The error exists in the job file but here is a version of it: > > ``` > [ 53%] Linking CXX shared library libprotobuf.so > /usr/bin/ld: > /home/runner/work/absl-proto-grpc-ci/absl-proto-grpc-ci/absl-k0t0z-lib/lib/libabsl_log_internal_log_sink_set.a(log_sink_set.cc.o): > > relocation R_X86_64_TPOFF32 against > `_ZZN4absl12lts_2024072212log_internal12_GLOBAL__N_121ThreadIsLoggingStatusEvE17thread_is_logging' > > can not be used when making a shared object; recompile with -fPIC > /usr/bin/ld: failed to set dynamic section sizes: bad value > collect2: error: ld returned 1 exit status > make[2]: *** [CMakeFiles/libprotobuf.dir/build.make:1389: > libprotobuf.so.28.0.1] Error 1 > make[1]: *** [CMakeFiles/Makefile2:142: CMakeFiles/libprotobuf.dir/all] > Error 2 > make: *** [Makefile:136: all] Error 2 > ``` > > Can anyone please explain it to me? Why this happened? I built absl from > scratch. > -- 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/e10c651c-74c6-447f-b93f-5bd0fbdc2e7bn%40googlegroups.com.
