Source: ck
Version: 0.7.1-6

hi,

I'm seeing build failure for sysbench on mipsel with errors pointing
to an issue in ck, and a probably related test failure on mips64el.
This happens with both ck 0.7.1-5 and -6; prior to these sysbench
wasn't build for either architecture because ck wasn't available.

On mips64el [1], the build completes but sysbench's testsuite fails
the api_histogram test; on mipsel [2], linking fails with errors
similar to those observed in the build of ck/0.7.1-4 [3] on the same
arch. In more recent debian revisions of ck, its testsuite has been
disabled on the affected architectures.


Excerpt from the buildlog on mipsel (with ck/0.7.1-6):
"""
[...]
gcc -DHAVE_CONFIG_H -I. -I../config  -I../src -I/usr/include/luajit-2.1 
-D__unknown__ -DCK_USE_CC_BUILTINS=1 -DDATADIR=\"/usr/share/sysbench\" 
-DLIBDIR=\"/usr/lib/mipsel-linux-gnu/sysbench\" -D_GNU_SOURCE -Wdate-time 
-D_FORTIFY_SOURCE=2 -Wall -Wextra -Wpointer-arith -Wbad-function-cast 
-Wstrict-prototypes -Wnested-externs -Wno-format-zero-length -Wundef 
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations 
-Wredundant-decls -Wcast-align -Wvla   -pthread -O2 -funroll-loops -ggdb3 -g 
-O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -c -o sb_counter.o sb_counter.c
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wall -Wextra -Wpointer-arith 
-Wbad-function-cast -Wstrict-prototypes -Wnested-externs 
-Wno-format-zero-length -Wundef -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -Wredundant-decls -Wcast-align -Wvla   -pthread -O2 
-funroll-loops -ggdb3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security      -rdynamic 
-Wl,-z,relro -Wl,-z,now -L/usr/lib/mipsel-linux-gnu -o sysbench sysbench.o 
sb_timer.o sb_options.o sb_logger.o db_driver.o sb_histogram.o sb_rand.o 
sb_thread.o sb_barrier.o sb_lua.o sb_util.o sb_counter.o 
tests/fileio/libsbfileio.a tests/threads/libsbthreads.a 
tests/memory/libsbmemory.a tests/cpu/libsbcpu.a tests/mutex/libsbmutex.a 
drivers/mysql/libsbmysql.a -L/usr/lib/mipsel-linux-gnu/ -lmariadb   
drivers/pgsql/libsbpgsql.a -L/usr/lib/mipsel-linux-gnu -lpq  -lluajit-5.1 -ldl 
-lck -laio -lm 
libtool: link: gcc -Wall -Wextra -Wpointer-arith -Wbad-function-cast 
-Wstrict-prototypes -Wnested-externs -Wno-format-zero-length -Wundef 
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations 
-Wredundant-decls -Wcast-align -Wvla -pthread -O2 -funroll-loops -ggdb3 -g -O2 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -rdynamic -Wl,-z -Wl,relro -Wl,-z -Wl,now -o sysbench 
sysbench.o sb_timer.o sb_options.o sb_logger.o db_driver.o sb_histogram.o 
sb_rand.o sb_thread.o sb_barrier.o sb_lua.o sb_util.o sb_counter.o  
-L/usr/lib/mipsel-linux-gnu tests/fileio/libsbfileio.a 
tests/threads/libsbthreads.a tests/memory/libsbmemory.a tests/cpu/libsbcpu.a 
tests/mutex/libsbmutex.a drivers/mysql/libsbmysql.a 
-L/usr/lib/mipsel-linux-gnu/ -lmariadb drivers/pgsql/libsbpgsql.a -lpq 
-lluajit-5.1 -ldl -lck -laio -lm -pthread
/usr/bin/ld: sysbench.o: in function `sb_more_events':
./src/sysbench.c:697: undefined reference to `__sync_fetch_and_add_8'
/usr/bin/ld: sysbench.o: in function `ck_pr_faa_64':
/usr/include/gcc/ck_pr.h:228: undefined reference to `__sync_fetch_and_add_8'
/usr/bin/ld: sb_histogram.o: in function `ck_pr_cas_64_value':
/usr/include/gcc/ck_pr.h:203: undefined reference to 
`__sync_val_compare_and_swap_8'
/usr/bin/ld: /usr/include/gcc/ck_pr.h:203: undefined reference to 
`__sync_val_compare_and_swap_8'
/usr/bin/ld: sb_histogram.o: in function `ck_pr_add_64':
/usr/include/gcc/ck_pr.h:259: undefined reference to `__sync_fetch_and_add_8'
/usr/bin/ld: /usr/include/gcc/ck_pr.h:259: undefined reference to 
`__sync_fetch_and_add_8'
/usr/bin/ld: /usr/include/gcc/ck_pr.h:259: undefined reference to 
`__sync_fetch_and_add_8'
/usr/bin/ld: /usr/include/gcc/ck_pr.h:259: undefined reference to 
`__sync_fetch_and_add_8'
/usr/bin/ld: sb_histogram.o: in function `ck_pr_cas_64_value':
/usr/include/gcc/ck_pr.h:203: undefined reference to 
`__sync_val_compare_and_swap_8'
/usr/bin/ld: /usr/include/gcc/ck_pr.h:203: undefined reference to 
`__sync_val_compare_and_swap_8'
/usr/bin/ld: /usr/include/gcc/ck_pr.h:203: undefined reference to 
`__sync_val_compare_and_swap_8'
/usr/bin/ld: /usr/include/gcc/ck_pr.h:203: undefined reference to 
`__sync_val_compare_and_swap_8'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:560: sysbench] Error 1
[...]
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit 
status 2
"""

[1]https://buildd.debian.org/status/fetch.php?pkg=sysbench&arch=mips64el&ver=1.0.20%2Bds-2&stamp=1636466286&raw=0
[2]https://buildd.debian.org/status/fetch.php?pkg=sysbench&arch=mipsel&ver=1.0.20%2Bds-2&stamp=1636467712&raw=0
[3]https://buildd.debian.org/status/fetch.php?pkg=ck&arch=mipsel&ver=0.7.1-4&stamp=1630035393&raw=0

Attachment: pgpK6hEAXch1F.pgp
Description: OpenPGP digital signature

Reply via email to