URL: <https://savannah.gnu.org/bugs/?65827>
Summary: Cross-compilation fails with gcc 14.1.0 Group: The GNU Bourne-Again SHell Submitter: bneumeier Submitted: Sun 02 Jun 2024 01:43:53 PM UTC Category: None Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Sun 02 Jun 2024 01:43:53 PM UTC By: Brett Neumeier <bneumeier> Building binutils 5.2.26 with an x86_64-to-aarch64 gcc 14.1.0, configured thus: ./configure --build=x86_64-unknown-linux-gnu --host=aarch64-cbl-linux-gnu --enable-static-link --without-bash-malloc I get this failure: ------- aarch64-cbl-linux-gnu-gcc -c -I/home/lbl/work/sysroot/scaffolding/include -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib -I. tparam.c tparam.c: In function 'memory_out': tparam.c:67:3: error: implicit declaration of function 'write' [-Wimplicit-function-declaration] 67 | write (2, "virtual memory exhausted\n", 25); | ^~~~~ make[1]: *** [Makefile:56: tparam.o] Error 1 make[1]: Leaving directory '/home/lbl/work/build/bash-5.2.26/lib/termcap' make: *** [Makefile:702: lib/termcap/libtermcap.a] Error 1 ------- If I add "#include <unistd.h>" to tparam.c, it builds fine. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?65827> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/