[Debian-med-packaging] Bug#997215: canu: FTBFS: utility/system.C:46:10: fatal error: sys/sysctl.h: No such file or directory

Lucas Nussbaum lucas at debian.org
Sat Oct 23 20:09:59 BST 2021


Source: canu
Version: 2.0+dfsg-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> g++ -o /<<PKGBUILDDIR>>/Linux-amd64/obj/lib/libcanu.a/utility/system.o -c -MD -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -pthread -fopenmp -fPIC -DNOBACKTRACE -I/<<PKGBUILDDIR>>/src -Iutility -Istores -Istores/libsnappy -Ialignment -Iutgcns/libNDalign -Iutgcns/libcns -Iutgcns/libpbutgcns -Iutgcns/libNDFalcon -Iutgcns/libboost -IoverlapInCore -IoverlapInCore/liboverlap utility/system.C
> utility/system.C:46:10: fatal error: sys/sysctl.h: No such file or directory
>    46 | #include <sys/sysctl.h>
>       |          ^~~~~~~~~~~~~~
> compilation terminated.
> In file included from /usr/include/stdio.h:866,
>                  from /<<PKGBUILDDIR>>/src/AS_global.H:67,
>                  from utility/logging.H:29,
>                  from utility/logging.C:26:
> In function ‘int snprintf(char*, size_t, const char*, ...)’,
>     inlined from ‘void logFileInstance::rotateMessage()’ at utility/logging.C:173:15:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:70:35: warning: ‘int __builtin___snprintf_chk(char*, long unsigned int, int, long unsigned int, const char*, ...)’ specified bound 1024 exceeds destination size 256 [-Wstringop-overflow=]
>    70 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
>       |          ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    71 |                                    __bos (__s), __fmt, __va_arg_pack ());
>       |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> make[2]: *** [Makefile:715: /<<PKGBUILDDIR>>/Linux-amd64/obj/lib/libcanu.a/utility/system.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2021/10/23/canu_2.0+dfsg-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Debian-med-packaging mailing list