Open Whissi opened 3 years ago
Hi, could you try with cmake based build?
cmake -DCMAKE_BUILD_TYPE=Release .
make
The cmake build is failing with:
[257/273] : && /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -fPIC -O2 -pipe -march=znver1 -mtune=znver1 -frecord-gcc-switches -Wall -Wextra -Woverloaded-virtual -g -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -shared -o libgalera_smm.so galera/src/CMakeFiles/galera_smm.dir/wsrep_provider.cpp.o -Wl,-rpath,/var/tmp/portage/sys-cluster/galera-26.4.8-r1/work/galera-26.4.8_build/galera/src:/var/tmp/portage/sys-cluster/galera-26.4.8-r1/work/galera-26.4.8_build/gcs/src:/var/tmp/portage/sys-cluster/galera-26.4.8-r1/work/galera-26.4.8_build/gcomm/src:/var/tmp/portage/sys-cluster/galera-26.4.8-r1/work/galera-26.4.8_build/gcache/src:/var/tmp/portage/sys-cluster/galera-26.4.8-r1/work/galera-26.4.8_build/galerautils/src: galera/src/libgalera.so -Wl,--version-script=/var/tmp/portage/sys-cluster/galera-26.4.8-r1/work/galera-4-26.4.8/galera/src/galera-sym.map gcs/src/libgcs.so gcomm/src/libgcomm.so gcache/src/libgcache.so galerautils/src/libgalerautilsxx.so galerautils/src/libgalerautils.so galerautils/src/libgalerautils_hw_crc32c.so -lpthread -lrt -lssl -lcrypto && cd /var/tmp/portage/sys-cluster/galera-26.4.8-r1/work/galera-26.4.8_build && sh -c "! /usr/bin/x86_64-pc-linux-gnu-objdump -T libgalera_smm.so | grep asio 1> /dev/null" && cd /var/tmp/portage/sys-cluster/galera-26.4.8-r1/work/galera-26.4.8_build && sh -c "(/usr/bin/x86_64-pc-linux-gnu-objdump -x libgalera_smm.so | grep NEEDED.*crypto 1> /dev/null) && (/usr/bin/x86_64-pc-linux-gnu-objdump -x libgalera_smm.so | grep NEEDED.*ssl 1> /dev/null)"
FAILED: libgalera_smm.so
: && /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -fPIC -O2 -pipe -march=znver1 -mtune=znver1 -frecord-gcc-switches -Wall -Wextra -Woverloaded-virtual -g -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -shared -o libgalera_smm.so galera/src/CMakeFiles/galera_smm.dir/wsrep_provider.cpp.o -Wl,-rpath,/var/tmp/portage/sys-cluster/galera-26.4.8-r1/work/galera-26.4.8_build/galera/src:/var/tmp/portage/sys-cluster/galera-26.4.8-r1/work/galera-26.4.8_build/gcs/src:/var/tmp/portage/sys-cluster/galera-26.4.8-r1/work/galera-26.4.8_build/gcomm/src:/var/tmp/portage/sys-cluster/galera-26.4.8-r1/work/galera-26.4.8_build/gcache/src:/var/tmp/portage/sys-cluster/galera-26.4.8-r1/work/galera-26.4.8_build/galerautils/src: galera/src/libgalera.so -Wl,--version-script=/var/tmp/portage/sys-cluster/galera-26.4.8-r1/work/galera-4-26.4.8/galera/src/galera-sym.map gcs/src/libgcs.so gcomm/src/libgcomm.so gcache/src/libgcache.so galerautils/src/libgalerautilsxx.so galerautils/src/libgalerautils.so galerautils/src/libgalerautils_hw_crc32c.so -lpthread -lrt -lssl -lcrypto && cd /var/tmp/portage/sys-cluster/galera-26.4.8-r1/work/galera-26.4.8_build && sh -c "! /usr/bin/x86_64-pc-linux-gnu-objdump -T libgalera_smm.so | grep asio 1> /dev/null" && cd /var/tmp/portage/sys-cluster/galera-26.4.8-r1/work/galera-26.4.8_build && sh -c "(/usr/bin/x86_64-pc-linux-gnu-objdump -x libgalera_smm.so | grep NEEDED.*crypto 1> /dev/null) && (/usr/bin/x86_64-pc-linux-gnu-objdump -x libgalera_smm.so | grep NEEDED.*ssl 1> /dev/null)"
ninja: build stopped: subcommand failed.
This issue has occurred in Fedora packaging as well. The failed build log is here: https://kojipkgs.fedoraproject.org//work/tasks/2529/69222529/build.log
Hi, could you try with cmake based build?
I prepared a patch for Fedora package 'galera' for switch from Scons to CMake: https://src.fedoraproject.org/rpms/galera/pull-request/7# The issue does not arise when switched to CMake
I had a look at your CMake patch. Note that you set -DBUILD_SHARED_LIBS:BOOL=OFF
in your spec file which will avoid the problem https://github.com/codership/galera/issues/596#issuecomment-850230266. But when you want library, issue is still there.
On Gentoo Linux, we see the following test failure: