bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #65827] Cross-compilation fails with gcc 14.1.0


From: Chet Ramey
Subject: Re: [bug #65827] Cross-compilation fails with gcc 14.1.0
Date: Mon, 3 Jun 2024 09:30:44 -0400
User-agent: Mozilla Thunderbird

On 6/2/24 9:43 AM, Brett Neumeier wrote:

./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.

Thanks for the report.

I'm more interested in why configuring for your cross-compilation
environment doesn't find any of the curses libraries or headers. Do
you have them installed?

What does config.log say about searching for the curses and termcap
libraries?

The ancient termcap library bash includes is the bare minimum to get
a successful link.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]