[Pkg-electronics-devel] Bug#1097265: librnd: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:33:41 GMT 2025


Package: src:librnd
Version: 4.3.1-3
Severity: important
Tags: sid forky
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-15

[This bug is NOT targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/librnd_4.3.1-3_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other Common build failures are new warnings resulting in build failures
with -Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-15/porting_to.html

[...]
Detecting temp dir... validated /build/reproducible-path/librnd-4.3.1/scconfig/
Checking for system type... OK (name: Linux; class: UNIX)
Checking for cc (host)... OK ('gcc', '-g -O2 -ffile-prefix-map=/build/reproducible-path/librnd-4.3.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_LARGE_FILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2', '-Wl,-z,relro')
Checking for ar... OK (ar)
Checking for ranlib... OK (ranlib)
Checking for mkdir... OK (mkdir -p)
Checking for rm... OK (rm -rf)
Checking for cp... OK (cp -rp)
Checking for ln... OK (ln -sf)
Checking for awk... OK (awk)
Checking for cc args for std *...  -ansi -pedantic -Wall -std=c89 -std=c99 -Werror -Wextra -W -pg -no-pie -static-pie
Checking for function attribute unused... Found.
--- Detecting target (same as host)
Checking for -fpic... OK (-fPIC)
Checking for _Pragma(message)... Found.
Checking for inline... Found.
Checking for snprintf... OK (safe)
Checking for readdir()... OK ('#include <dirent.h>\n', '' and '')
Checking for FindNextFile()... not found
Checking for rpath... OK (-Wl,-rpath=)
Checking for -ldl... OK ()
Checking for rdynamic... OK (-rdynamic)
Checking for soname... OK (-Wl,-soname,)
Checking for dynamic library ldflags... OK (-dynamic -shared)
Checking for raise()... OK ('', '' and '')
Checking whether SIGINT exists... OK ('', '' and '')
Checking whether SIGINT terminates... terminates
Checking whether SIGABRT exists... OK ('', '' and '')
Checking whether SIGABRT terminates... terminates
Checking whether SIGKILL exists... OK ('', '' and '')
Checking whether SIGKILL terminates... terminates
Checking whether SIGTERM exists... OK ('', '' and '')
Checking whether SIGTERM terminates... terminates
Checking whether SIGQUIT exists... OK ('', '' and '')
Checking whether SIGQUIT terminates... terminates
Checking whether SIGHUP exists... OK ('', '' and '')
Checking whether SIGHUP terminates... terminates
Checking whether SIGFPE exists... OK ('', '' and '')
Checking whether SIGFPE terminates... terminates
Checking whether SIGSEGV exists... OK ('', '' and '')
Checking whether SIGSEGV terminates... terminates
Checking whether SIGPIPE exists... OK ('', '' and '')
Checking whether SIGPIPE terminates... terminates
Checking for setenv()... OK ('', '' and '')
Checking for mkdtemp... OK ('#include <stdlib.h>\n', '' and '')
Checking for realpath()... OK ('', '' and '')
Checking for fileno(3)... OK ('#include <stdio.h>\n', '' and '')
Checking for popen(3)... OK ('#define _XOPEN_SOURCE\n', '' and '')
Checking for rint... OK ('#include <math.h>\n', '' and '')
Checking for round... OK ('#include <math.h>\n', '' and '')
Checking for getpwuid... OK ('#include <sys/types.h>\n#include <pwd.h>\n', '' and '')
Checking for fungw... OK ('', '' and '-lfungw -lm -lgenht')
Checking for fungw user_call_ctx... OK ('', '' and '-lfungw -lm -lgenht')
Checking for fungw configured pupdir... Found: /usr/lib/puplug
Checking for socket... OK ('' and '' and '#include <sys/types.h>\n#include <sys/socket.h>\n')
Checking for select... OK ('' and '' and '#include <sys/types.h>\n#include <sys/socket.h>\n\n#include <sys/select.h>\n')
Checking for usleep()... OK ('', '' and '')
Checking for gettimeofday()... OK ('#include <sys/time.h>\n', '' and '')
Checking for fork... OK ('#include <unistd.h>\n', '' and '')
Checking for wait... OK ('#include <sys/types.h>\n#include <sys/wait.h>\n', '' and '')
Checking for _mkdir... not found
Checking for mkdir... not found

ERROR: no mkdir() or _mkdir(). Can not compile application.

hook_detect_target failed, exiting
make[1]: *** [debian/rules:30: override_dh_auto_configure] Error 1
make[1]: Leaving directory '/build/reproducible-path/librnd-4.3.1'
make: *** [debian/rules:22: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-electronics-devel mailing list