[Bug 288550] sbin/recoverdisk: fails to build on i386 (and possibly on all 32bit)
Date: Wed, 30 Jul 2025 11:53:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288550
Bug ID: 288550
Summary: sbin/recoverdisk: fails to build on i386 (and possibly
on all 32bit)
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: misc
Assignee: bugs@FreeBSD.org
Reporter: fluffy@FreeBSD.org
sbin/recoverdisk fails to build on i386 due to different variable sizes in
valuation.
On 64bit systems time_t is equivalent to __int64 (or long int) which always
cover length of unsigned int.
But on 32bit time_t is equivalent of signed int instead of long int.
--- recoverdisk.o ---
/opt/poudriere/jails/150i386/usr/src/sbin/recoverdisk/recoverdisk.c:830:38:
error: comparison of integers of different signs: 'unsigned int' and 'time_t'
(aka 'int') [-Werror,-Wsign-compare]
830 | if (unsaved && (t_save + snapshot) < t_now) {
| ~~~~~~~~~~~~~~~~~ ^ ~~~~~
1 error generated.
--
You are receiving this mail because:
You are the assignee for the bug.