[Bug 293660] 15.0-RELEASE FTBFS in crypto/krb5 when cross-compiling on x86_64-linux-gnu host
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 293660] 15.0-RELEASE FTBFS in crypto/krb5 when cross-compiling on x86_64-linux-gnu host"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 293660] 15.0-RELEASE FTBFS in crypto/krb5 when cross-compiling on x86_64-linux-gnu host"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 293660] 15.0-RELEASE FTBFS in crypto/krb5 when cross-compiling on x86_64-linux-gnu host"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 293660] 15.0-RELEASE FTBFS in crypto/krb5 when cross-compiling on x86_64-linux-gnu host"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 08 Mar 2026 05:32:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293660
Bug ID: 293660
Summary: 15.0-RELEASE FTBFS in crypto/krb5 when cross-compiling
on x86_64-linux-gnu host
Product: Base System
Version: 15.0-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: alex@alexrp.com
On an x86_64-linux-gnu host, running
wget https://download.freebsd.org/ftp/releases/amd64/15.0-RELEASE/src.txz
-O - | bsdtar -xf -
cd usr/src
MAKEOBJDIRPREFIX=$PWD/build tools/build/make.py buildworld
--bootstrap-toolchain TARGET=amd64 TARGET_ARCH=amd64
fails with
/home/alexrp/Sources/freebsd/usr/src/crypto/krb5/src/util/support/strerror_r.c:
In function ‘k5_strerror_r’:
/home/alexrp/Sources/freebsd/usr/src/crypto/krb5/src/util/support/strerror_r.c:94:12:
error: returning ‘char *’ from a function with return type ‘int’ makes integer
from pointer without a cast [-Wint-conversion]
94 | return strerror_r(errnum, buf, buflen);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
while building the bootstrap toolchain.
Presumably this happens because this code is seeing the GNU version of
strerror_r():
char *strerror_r(int errnum, char buf[.buflen], size_t buflen);
I'm not familiar enough with this code to suggest an appropriate fix though.
In case it matters:
❯ uname -mrs
Linux 6.17.0-14-generic x86_64
❯ gcc --version | head -n1
gcc (Ubuntu 15.2.0-4ubuntu4) 15.2.0
--
You are receiving this mail because:
You are the assignee for the bug.