bug-gawk
[Top][All Lists]
Advanced

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

Re: Test failure (pma) with gawk-5.2.0 beta


From: Sam James
Subject: Re: Test failure (pma) with gawk-5.2.0 beta
Date: Tue, 23 Aug 2022 02:27:03 +0100


> On 21 Aug 2022, at 08:42, arnold@skeeve.com wrote:
> 
> Hi.
> 
> Thanks for the report. It looks like gawk is being built as a PIE
> executable, and it needs to be non-PIE. The code in configure (from
> m4/pma.m4) adds the -no-pie flag to the compile flags which should do
> the trick.
> 
> When make runs, do you see the -no-pie flag on the GCC command lines?

I don't see any -no-pie lines.

I think the issue is that the -no-pie configure test looks for 'clang' or 'gcc'.

But ${CC} for me at that point is 'x86_64-pc-linux-gnu-gcc'. If I set CC=gcc,
it appends -no-pie and the test passes (all of them do, in fact).

I think it'd be better to use AX_CHECK_COMPILE_FLAG or similar?

Alternatively, *clang* or *gcc* may work (but a bit fragile).

> In any case, please send on:
> 
> - CPU architecture

amd64

> - OS version

Gentoo, kernel 5.15.61-gentoo-dist-hardened

> - The output of config.guess on that system

Uploaded the full build log at https://dev.gentoo.org/~sam/tmp/gawk-5.1.65.log
and my config.guess is gnuconfig from 2022-05-08. For convenience,
I've uploaded that at 
https://dev.gentoo.org/~sam/tmp/gawk-5.1.65-config.guess-2022-08-23.

> - The result of running `file gawk'

/var/tmp/portage/sys-apps/gawk-5.1.65/work/gawk-5.1.65/test $ file ../gawk
../gawk: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically 
linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, with 
debug_info, not stripped

> 
> If this is the only test that fails then all regular uses of gawk should
> be fine, and only the new persistent memory feature won't work, but
> I'd like to solve that issue as well.

This seems to be the only failure (tried with --keep-going passed to make).

> 
> Thanks,
> 
> Arnold

best,
sam

Attachment: signature.asc
Description: Message signed with OpenPGP


reply via email to

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