bug-bash
[Top][All Lists]
Advanced

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

Re: Fail to cross build


From: Chet Ramey
Subject: Re: Fail to cross build
Date: Mon, 25 Nov 2024 12:13:17 -0500
User-agent: Mozilla Thunderbird

On 11/24/24 12:59 PM, Bastien Roucariès wrote:
 From debian:

https://lists.debian.org/debian-cross/2023/11/msg00000.html

Hello,

While cross-building hurd-amd64 from linux, I got a subtle issue with
bash, that was leading to perl FTBFS very oddly.

The issue essentially was in bash/builtins/Makefile.in:

pipesize.h:     psize.aux
        $(SHELL) $(srcdir)/psize.sh > $@

Yes, the Makefile acknowledges this:

# Technically this is wrong; the pipe size should be for the target system,
# not the build host.
psize.aux:      psize.c
$(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) ${LDFLAGS_FOR_BUILD} -o $@ $(srcdir)/psize.c

since it's very difficult to run things built for the target system and
there isn't a portable way to query the actual pipe size at runtime
(getconf may just give you the posix maximum).

--
``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]