codership / galera

Synchronous multi-master replication library
GNU General Public License v2.0
451 stars 176 forks source link

wsrep_test test fails: Provider version string '4.8(rd54ebf8)' not expected '26.4.8(rd54ebf8)' #596

Open Whissi opened 3 years ago

Whissi commented 3 years ago

On Gentoo Linux, we see the following test failure:

x86_64-pc-linux-gnu-gcc -o wsrep/tests/wsrep_test -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 wsrep/tests/wsrep_loader_test.o wsrep/src/wsrep_loader.o wsrep/src/wsrep_dummy.o -ldl
builder_unit_test(["wsrep/tests/wsrep_test.passed"], ["wsrep/tests/wsrep_test"])
Provider version string '4.8(rd54ebf8)' not expected '26.4.8(rd54ebf8)'
scons: *** [wsrep/tests/wsrep_test.passed] Error 1
scons: building terminated because of errors.
temeo commented 3 years ago

Hi, could you try with cmake based build?

cmake -DCMAKE_BUILD_TYPE=Release .
make
Whissi commented 3 years ago

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.

build.log

ljavorsk commented 3 years ago

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

FaramosCZ commented 3 years ago

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

Whissi commented 3 years ago

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.