Your message dated Thu, 15 Aug 2024 21:49:11 +0000
with message-id <[email protected]>
and subject line Bug#1078190: fixed in chiark-utils 7.0.2
has caused the Debian Bug report #1078190,
regarding chiark-utils:FTBFS:build failure(compile failed)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1078190: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1078190
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: chiark-utils
Version: 7.0.1
Severity: serious
Tags: FTBFS, patch
User: [email protected]
Usertags: riscv64
X-Debbugs-Cc: [email protected]
Dear chiark-utils Maintainer,
The package chiark-utils build failed on arch riscv64, amd64,arm64 and most
64bit arch.The crucial buildd log below:
···
In file included from /usr/include/features.h:394,
from /usr/include/x86_64-linux-gnu/sys/time.h:21,
from rwbuffer.h:34,
from readbuffer.c:31:
/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"
| ^~~~~
In file included from /usr/include/features.h:394,
from /usr/include/x86_64-linux-gnu/sys/time.h:21,
from rwbuffer.h:34,
from writebuffer.c:31:
/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"
| ^~~~~
In file included from /usr/include/features.h:394,
from /usr/include/x86_64-linux-gnu/sys/time.h:21,
from rwbuffer.h:34,
from wrbufcore.c:31:
/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"
| ^~~~~
In file included from /usr/include/features.h:394,
from /usr/include/x86_64-linux-gnu/sys/time.h:21,
from rwbuffer.h:34,
from rwbuffer.c:31:
/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"
| ^~~~~
In file included from /usr/include/features.h:394,
from /usr/include/errno.h:25,
from with-lock-ex.c:57:
/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"
| ^~~~~
In file included from /usr/include/features.h:394,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from xbatmon-simple.c:43:
/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"
| ^~~~~
make[1]: *** [<builtin>: readbuffer.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [<builtin>: with-lock-ex] Error 1
make[1]: *** [<builtin>: writebuffer.o] Error 1
make[1]: *** [<builtin>: wrbufcore.o] Error 1
make[1]: *** [<builtin>: rwbuffer.o] Error 1
make[1]: *** [<builtin>: xbatmon-simple] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>/cprogs'
dh_auto_build: error: cd cprogs && make -j6 "INSTALL=install
--strip-program=true" all OPTIMISE= DEBUG= "CMDLINE_CFLAGS=-g -O2
-Werror=implicit-function-declaration
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
-fstack-clash-protection -Wformat -Werror=format-security
-fcf-protection" "CMDLINE_CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2
-D_TIME_BITS=64" CMDLINE_LDFLAGS=-Wl,-z,relro returned exit code 2
make: *** [debian/rules:25: build] Error 255
dpkg-buildpackage: error: debian/rules build-arch subprocess returned
exit status 2
···
The full buildd log is here:
https://buildd.debian.org/status/fetch.php?pkg=chiark-utils&arch=riscv64&ver=7.0.1&stamp=1720098681&raw=0
My solution to this issue:
The error is caused by _TIME_BITS=64 is used without also setting
_FILE_OFFSET_BITS=64.To fix this problem, you need to add
_FILE_OFFSET_BITS=64 definition to the compilation options. We can modify
the file debian/rules on line20 "CMDLINE_CPPFLAGS="$(shell $(D_BUILDFLAGS)
--get CPPFLAGS) -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64" \". Replace that
with "CMDLINE_CPPFLAGS="$(shell $(D_BUILDFLAGS) --get CPPFLAGS)
-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64" \".This way the issue can be fixed.
I have tested that in local, and it works well. Please let me know wheather
this solution can be accepted.
Gui-Yue
Best Regards
--- End Message ---
--- Begin Message ---
Source: chiark-utils
Source-Version: 7.0.2
Done: Ian Jackson <[email protected]>
We believe that the bug you reported is fixed in the latest version of
chiark-utils, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Ian Jackson <[email protected]> (supplier of updated chiark-utils
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Thu, 15 Aug 2024 22:28:46 +0100
Source: chiark-utils
Architecture: source
Version: 7.0.2
Distribution: unstable
Urgency: medium
Maintainer: Ian Jackson <[email protected]>
Changed-By: Ian Jackson <[email protected]>
Closes: 1075821 1078190
Changes:
chiark-utils (7.0.2) unstable; urgency=medium
.
* debian/rules: Pass -D_TIME_BITS=64 too. Closes: #1078190.
* Change file size type to unsigned long long. Closes: #1075821.
Checksums-Sha1:
725da99d625cd8964d5c7e3b940b0654570e353e 1712 chiark-utils_7.0.2.dsc
5167ffa5846d750e748c2392397ad7db7b4802cd 161508 chiark-utils_7.0.2.tar.xz
Checksums-Sha256:
eb76a4395117162bec3cc6cf7340dd337be6964b4f70bdc0c051f88a83a2c6d5 1712
chiark-utils_7.0.2.dsc
7cef66adb7347592b046fa44f9003c3b968027ec0772f4c5f3cbbd8d7fa10d61 161508
chiark-utils_7.0.2.tar.xz
Files:
5ee1e7c27a7cec7d19dd9510eb2ad9c4 1712 admin optional chiark-utils_7.0.2.dsc
7ad8b74c25668e02939f6e30c511e8c2 161508 admin optional
chiark-utils_7.0.2.tar.xz
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEEVZrkbC1rbTJl58uh4+M5I0i1DTkFAma+dE8ACgkQ4+M5I0i1
DTk+Ngf9Ge3p2h/RWp5uCG28u9bhup+ow1XyAxHt1IiN4UiJBBkZm6coIr3qty9e
qemHlixQ/WsPl9crUZrdUHh9JNXrx4VTMrdISFIMojB0kB6HvpiC40aBchojLIoB
USKo4skoM+V5Bm3buvprbYompjj2lUBQJSHZpmvXBF1pGVvszDn26l+t3xsyo7f0
c+9p1AyzvFJfYNCUaYBTaZu9+TG5FX0LmOlPvU8w+YiDvg9RVrQ3smKgrM9ECYal
LL0pniRf9B3WUQcGRVtFenYMU1SHvb9mlGZ+uZpnCt/jiroXltnrxCbiuXpAdVCp
cyNGKrSLYIfgFeVoCfmV/poglIMcoQ==
=cqDF
-----END PGP SIGNATURE-----
pgpPr39rPeFjc.pgp
Description: PGP signature
--- End Message ---