[DRE-maint] Bug#1067084: ruby-sigar: FTBFS on arm{el, hf}: /usr/include/features-time64.h:26:5: error: #error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
Sebastian Ramacher
sramacher at debian.org
Mon Mar 18 08:13:47 GMT 2024
Source: ruby-sigar
Version: 0.7.3-3
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: sramacher at debian.org
https://buildd.debian.org/status/fetch.php?pkg=ruby-sigar&arch=armhf&ver=0.7.3-3%2Bb4&stamp=1710723184&raw=0
current directory: /<<PKGBUILDDIR>>/bindings/ruby
["make", "V=1", "CC=gcc -fdebug-prefix-map=/<<PKGBUILDDIR>>=.", "CXX=g++ -fdebug-prefix-map=/<<PKGBUILDDIR>>=.", "DESTDIR=", "sitearchdir=./.gem.20240318-6671-qutq04", "sitelibdir=./.gem.20240318-6671-qutq04"]
/usr/lib/ruby/vendor_ruby/rubygems/ext/builder.rb:119:in `run': make failed, exit code 2 (Gem::InstallError)
from /usr/lib/ruby/vendor_ruby/rubygems/ext/builder.rb:53:in `block in make'
from /usr/lib/ruby/vendor_ruby/rubygems/ext/builder.rb:45:in `each'
from /usr/lib/ruby/vendor_ruby/rubygems/ext/builder.rb:45:in `make'
from /usr/lib/ruby/vendor_ruby/rubygems/ext/ext_conf_builder.rb:42:in `build'
from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:81:in `block in build_and_install'
from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:71:in `chdir'
from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:71:in `build_and_install'
from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:115:in `block in build_all_extensions'
from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:112:in `each'
from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:112:in `build_all_extensions'
from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:128:in `<main>'
make[1]: Entering directory '/<<PKGBUILDDIR>>/bindings/ruby'
gcc -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -I. -I/usr/include/arm-linux-gnueabihf/ruby-3.1.0 -I/usr/include/ruby-3.1.0/ruby/backward -I/usr/include/ruby-3.1.0 -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -I../../include -I../../src/os/linux -U_FILE_OFFSET_BITS -I /usr/include/tirpc -DRB_HAS_RE_ERROR -DRB_RUBY_19 -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=BUILDDIR=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fPIC -o linux_sigar.o -c linux_sigar.c
In file included from /usr/include/features.h:393,
from /usr/include/dirent.h:25,
from linux_sigar.c:19:
/usr/include/features-time64.h:26:5: error: #error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
26 | # error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
| ^~~~~
linux_sigar.c: In function ‘sigar_os_proc_list_get’:
linux_sigar.c:622:5: warning: ‘readdir_r’ is deprecated [-Wdeprecated-declarations]
622 | while (readdir_r(dirp, &dbuf, &ent) == 0) {
| ^~~~~
/usr/include/dirent.h:185:12: note: declared here
185 | extern int readdir_r (DIR *__restrict __dirp,
| ^~~~~~~~~
linux_sigar.c: In function ‘sigar_proc_port_get’:
linux_sigar.c:2510:5: warning: ‘readdir_r’ is deprecated [-Wdeprecated-declarations]
2510 | while (readdir_r(dirp, &dbuf, &ent) == 0) {
| ^~~~~
/usr/include/dirent.h:185:12: note: declared here
185 | extern int readdir_r (DIR *__restrict __dirp,
| ^~~~~~~~~
linux_sigar.c:2551:9: warning: ‘readdir_r’ is deprecated [-Wdeprecated-declarations]
2551 | while (readdir_r(fd_dirp, &fd_dbuf, &fd_ent) == 0) {
| ^~~~~
/usr/include/dirent.h:185:12: note: declared here
185 | extern int readdir_r (DIR *__restrict __dirp,
| ^~~~~~~~~
linux_sigar.c: In function ‘sigar_cpu_list_get’:
linux_sigar.c:458:11: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
458 | (void)fgets(cpu_total, sizeof(cpu_total), fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux_sigar.c: In function ‘get_iostat_procp’:
linux_sigar.c:1367:11: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1367 | (void)fgets(buffer, sizeof(buffer), fp); /* skip header */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux_sigar.c: In function ‘sigar_net_route_list_get’:
linux_sigar.c:1739:11: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1739 | (void)fgets(buffer, sizeof(buffer), fp); /* skip header */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux_sigar.c: In function ‘sigar_net_interface_stat_get’:
linux_sigar.c:1782:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1782 | fgets(buffer, sizeof(buffer), fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux_sigar.c:1783:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1783 | fgets(buffer, sizeof(buffer), fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux_sigar.c: In function ‘proc_net_read’:
linux_sigar.c:1947:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1947 | fgets(buffer, sizeof(buffer), fp); /* skip header */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux_sigar.c: In function ‘sigar_arp_list_get’:
linux_sigar.c:2428:11: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
2428 | (void)fgets(buffer, sizeof(buffer), fp); /* skip header */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:246: linux_sigar.o] Error 1
Cheers
--
Sebastian Ramacher
More information about the Pkg-ruby-extras-maintainers
mailing list