[Debian-med-packaging] Cmake help needed: Fails to find check.h and ieeefp.h
Birger Schacht
birger at rantanplan.org
Mon Dec 3 18:53:51 GMT 2018
hi,
On 12/3/18 7:19 PM, Andreas Tille wrote:
> Hi,
>
> I try to build the latest libsbml[1] in Git but I was running
> into:
>
> cat /build/libsbml-5.17.0+dfsg/build/CMakeFiles/CMakeError.log
> Determining if files check.h exist failed with the following output:
> Change Dir: /build/libsbml-5.17.0+dfsg/build/CMakeFiles/CMakeTmp
>
> Run Build Command:"/usr/bin/make" "cmTC_71faf/fast"
> make[2]: Entering directory '/build/libsbml-5.17.0+dfsg/build/CMakeFiles/CMakeTmp'
> /usr/bin/make -f CMakeFiles/cmTC_71faf.dir/build.make CMakeFiles/cmTC_71faf.dir/build
> make[3]: Entering directory '/build/libsbml-5.17.0+dfsg/build/CMakeFiles/CMakeTmp'
> Building C object CMakeFiles/cmTC_71faf.dir/HAVE_CHECK_H.c.o
> /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/libsbml-5.17.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -fno-strict-aliasing -fPIC -o CMakeFiles/cmTC_71faf.dir/HAVE_CHECK_H.c.o -c /build/libsbml-5.17.0+dfsg/build/CMakeFiles/CheckIncludeFiles/HAVE_CHECK_H.c
> /build/libsbml-5.17.0+dfsg/build/CMakeFiles/CheckIncludeFiles/HAVE_CHECK_H.c:2:10: fatal error: check.h: No such file or directory
> #include <check.h>
> ^~~~~~~~~
> compilation terminated.
> make[3]: *** [CMakeFiles/cmTC_71faf.dir/build.make:66: CMakeFiles/cmTC_71faf.dir/HAVE_CHECK_H.c.o] Error 1
> make[3]: Leaving directory '/build/libsbml-5.17.0+dfsg/build/CMakeFiles/CMakeTmp'
> make[2]: *** [Makefile:121: cmTC_71faf/fast] Error 2
> make[2]: Leaving directory '/build/libsbml-5.17.0+dfsg/build/CMakeFiles/CMakeTmp'
apt-file search /check.h gives me:
[...]
check: /usr/include/check.h
[...]
so maybe a build dependency on the package check helps?
>
> Source:
> /* */
> #include <check.h>
>
>
> int main(void){return 0;}
>
> Determining if files ieeefp.h exist failed with the following output:
> Change Dir: /build/libsbml-5.17.0+dfsg/build/CMakeFiles/CMakeTmp
>
> Run Build Command:"/usr/bin/make" "cmTC_8b304/fast"
> make[2]: Entering directory '/build/libsbml-5.17.0+dfsg/build/CMakeFiles/CMakeTmp'
> /usr/bin/make -f CMakeFiles/cmTC_8b304.dir/build.make CMakeFiles/cmTC_8b304.dir/build
> make[3]: Entering directory '/build/libsbml-5.17.0+dfsg/build/CMakeFiles/CMakeTmp'
> Building C object CMakeFiles/cmTC_8b304.dir/HAVE_IEEEFP_H.c.o
> /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/libsbml-5.17.0+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -fno-strict-aliasing -fPIC -o CMakeFiles/cmTC_8b304.dir/HAVE_IEEEFP_H.c.o -c /build/libsbml-5.17.0+dfsg/build/CMakeFiles/CheckIncludeFiles/HAVE_IEEEFP_H.c
> /build/libsbml-5.17.0+dfsg/build/CMakeFiles/CheckIncludeFiles/HAVE_IEEEFP_H.c:2:10: fatal error: ieeefp.h: No such file or directory
> #include <ieeefp.h>
> ^~~~~~~~~~
> compilation terminated.
> make[3]: *** [CMakeFiles/cmTC_8b304.dir/build.make:66: CMakeFiles/cmTC_8b304.dir/HAVE_IEEEFP_H.c.o] Error 1
> make[3]: Leaving directory '/build/libsbml-5.17.0+dfsg/build/CMakeFiles/CMakeTmp'
> make[2]: *** [Makefile:121: cmTC_8b304/fast] Error 2
> make[2]: Leaving directory '/build/libsbml-5.17.0+dfsg/build/CMakeFiles/CMakeTmp'
>
> Source:
> /* */
> #include <ieeefp.h>
>
>
> int main(void){return 0;}
>
>
>
> I explicitly added "Build-Depends: libnewlib-dev" und thus there is
>
> find /usr/include -name ieeefp.h
> /usr/include/newlib/ieeefp.h
> /usr/include/newlib/machine/ieeefp.h
if thats the ieeefp.h you need, maybe the include statement should say
#include <newlib/ieeefp.h>
cheers,
Birger
>
>
> I have no idea what check.h is seeked in src/CMakeLists.txt which has
>
> # create libsbml-config-common.h
> #
> include(CheckIncludeFiles)
> check_include_files (check.h HAVE_CHECK_H)
> check_include_files (expat.h HAVE_EXPAT_H)
> check_include_files (errno.h HAVE_ERRNO_H)
> check_include_files (ieeefp.h HAVE_IEEEFP_H)
>
>
> but I know that the configure step worked in end of May when I did my
> last attempt to build that code. Unfortunately there seems to be some
> issue with codesearch.d.n (I get "The results may be incomplete, not all
> Debian Code Search servers are okay right now." and no results) so I
> hope somebody can give a hint how to pass the configure step
> successfully.
>
> Kind regards
>
> Andreas.
>
>
> [1] https://salsa.debian.org/med-team/libsbml
>
More information about the Debian-med-packaging
mailing list