Hi.
Thanks for the report. I see the same thing on the GCC Compile Farm's M1.
There's not a lot I can do about it, except mention it in the README.macosx
file. I would like to think that the Homebrew people take care of this for
their version, so that it's not a problem for most people.
FWIW, the same thing happens on Intel systems. But I don't have
/opt/homebrew there, not sure what the right solution is other than
to configure without readline.
Thanks,
Arnold
Hermann Peifer <peifer@gmx.eu> wrote:
Hi again,
Here an observation while using Gawk's debugger (in my local git
sandbox, on my M1 Macbook). More info below.
Regards, Hermann
========================
Configuration Information [Automatically generated, do not change]:
Machine: aarch64
OS: darwin21.6.0
Compiler: gcc
Compilation CFLAGS: -g -O2 -DNDEBUG
uname output: Darwin hal.local 21.6.0 Darwin Kernel Version 21.6.0: Mon
Aug 22 20:20:05 PDT 2022; root:xnu-8020.140.49~2
Machine Type: aarch64-apple-darwin21.6.0
Gawk Version: 5.2.60
Attestation 1:
I have read
https://www.gnu.org/software/gawk/manual/html_node/Bugs.html.
Yes
Attestation 2:
I have not modified the sources before building gawk.
True
Description:
Simply pressing [Enter] at the debug prompt generates a fatal error.
Repeat-By: Simply pressing [Enter] at the debug prompt
> ./gawk -D -f test/hello.awk
gawk>
gawk: fatal error: internal error
Abort trap: 6
Fix:
The error goes away when configuring like this:
./configure --with-readline=/opt/homebrew/opt/readline