[debian-mysql] Bug#1006528: mariadb-10.6: FTBFS on sh4: undefined reference to misc functions and files

Otto Kekäläinen otto at debian.org
Sat Feb 26 23:15:09 GMT 2022


Source: mariadb-10.6
Version: 1:10.6.7-1
Tags: confirmed, help, ftbfs
User: debian-sh4 at lists.debian.org
Usertags: sh4

Builds on sh4 currently fail due to unknown reasons. See log at
https://buildd.debian.org/status/fetch.php?pkg=mariadb-10.6&arch=sh4&ver=1%3A10.6.7-2%7Eexp1&stamp=1645784432&raw=0

There are a lot of references to unknown functions or files, but they
don't make much sense:

CheckIncludeFile.c:1:10: fatal error: event.h: No such file or directory
CheckSymbolExists.cxx:8:19: error: ‘krb5_xfree’ was not declared in
this scope; did you mean ‘krb5_cred’?
src.c:2:10: fatal error: pthread_np.h: No such file or directory
src.c:7: undefined reference to `getthrid'
src.c:8: undefined reference to `pthread_threadid_np'
ld: cannot find -lstemmer: No such file or directory
CheckIncludeFile.c:1:10: fatal error: sys/sysctl.h: No such file or directory
CheckFunctionExists.c:22: undefined reference to `floor'


Example with full context:

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_ba239/fast &&
gmake[2]: Entering directory
'/<<PKGBUILDDIR>>/builddir/CMakeFiles/CMakeTmp'
/usr/bin/gmake  -f CMakeFiles/cmTC_ba239.dir/build.make
CMakeFiles/cmTC_ba239.dir/build
gmake[3]: Entering directory '/<<PKGBUILDDIR>>/builddir/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_ba239.dir/CheckFunctionExists.c.o
/usr/bin/cc -DPACKAGE=test -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE=1
-D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS  -g -O2
-ffile-prefix-map=/<<PKGBUILDDIR>>=.
-specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2
-Wdate-time -D_FORTIFY_SOURCE=2 -pie -fPIC -fstack-protector
--param=ssp-buffer-size=4 -Wunused -Wlogical-op -Wno-uninitialized
-Wall -Wextra -Wformat-security -Wno-init-self -Wwrite-strings
-Wshift-count-overflow -Wdeclaration-after-statement -Wno-undef
-Wno-unknown-pragmas -DCHECK_FUNCTION_EXISTS=floor -o
CMakeFiles/cmTC_ba239.dir/CheckFunctionExists.c.o -c
/usr/share/cmake-3.22/Modules/CheckFunctionExists.c
<command-line>: warning: conflicting types for built-in function
‘floor’; expected ‘double(double)’ [-Wbuiltin-declaration-mismatch]
/usr/share/cmake-3.22/Modules/CheckFunctionExists.c:7:3: note: in
expansion of macro ‘CHECK_FUNCTION_EXISTS’
    7 |   CHECK_FUNCTION_EXISTS(void);
      |   ^~~~~~~~~~~~~~~~~~~~~
/usr/share/cmake-3.22/Modules/CheckFunctionExists.c:1:1: note: ‘floor’
is declared in header ‘<math.h>’
  +++ |+#include <math.h>
    1 | #ifdef CHECK_FUNCTION_EXISTS
Linking C executable cmTC_ba239
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ba239.dir/link.txt
--verbose=1
/usr/bin/cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2
-Wdate-time -D_FORTIFY_SOURCE=2 -pie -fPIC -fstack-protector
--param=ssp-buffer-size=4 -Wunused -Wlogical-op -Wno-uninitialized
-Wall -Wextra -Wformat-security -Wno-init-self -Wwrite-strings
-Wshift-count-overflow -Wdeclaration-after-statement -Wno-undef
-Wno-unknown-pragmas -DCHECK_FUNCTION_EXISTS=floor
-specs=/usr/share/dpkg/pie-link.specs -Wl,-z,relro -Wl,-z,now
-rdynamic CMakeFiles/cmTC_ba239.dir/CheckFunctionExists.c.o -o
cmTC_ba239
/usr/bin/ld: CMakeFiles/cmTC_ba239.dir/CheckFunctionExists.c.o: in
function `main':
/usr/share/cmake-3.22/Modules/CheckFunctionExists.c:22: undefined
reference to `floor'
collect2: error: ld returned 1 exit status
gmake[3]: *** [CMakeFiles/cmTC_ba239.dir/build.make:99: cmTC_ba239] Error 1
gmake[3]: Leaving directory '/<<PKGBUILDDIR>>/builddir/CMakeFiles/CMakeTmp'
gmake[2]: *** [Makefile:127: cmTC_ba239/fast] Error 2
gmake[2]: Leaving directory '/<<PKGBUILDDIR>>/builddir/CMakeFiles/CMakeTmp'

Please help!

Previous version MariaDB 10.5 used to build at some point but failed
to start the test suite:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988349
However previous version MariaDB 10.5 also had similar issues at some
point: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975315

Build history of mariadb-10.5 when builds still at least occasionally
passed: https://buildd.debian.org/status/logs.php?pkg=mariadb-10.5&arch=sh4



More information about the pkg-mysql-maint mailing list