[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
intprops.h and friends problem with pcc
From: |
arnold |
Subject: |
intprops.h and friends problem with pcc |
Date: |
Sat, 03 Dec 2022 23:00:32 +0200 |
User-agent: |
Heirloom mailx 12.5 6/20/10 |
Hi.
I am trying to compile gawk with the "pcc revived" compiler. You can
get it from https://github.com/arnoldrobbins/pcc-revived.
git clone https://github.com/arnoldrobbins/pcc-revived
cd pcc-revived
git checkout ubuntu-18 # changes for modern linux
./make-tmp.sh # build and install under /tmp/pcc
export PATH=/tmp/pcc/bin:$PATH
Next, clone the gawk repo and then
cd gawk
./bootstrap.sh && ./configure CC=pcc
make
I get:
| $ make
| make all-recursive
| make[1]: Entering directory '/home/arnold/Gnu/gawk/gawk.git'
| Making all in support
| make[2]: Entering directory '/home/arnold/Gnu/gawk/gawk.git/support'
| depbase=`echo dfa.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
| pcc -DGAWK -DHAVE_CONFIG_H -I"./.." -I. -I.. -g -O2 -DNDEBUG -DNDEBUG -g
-O2 -DNDEBUG -DNDEBUG -MT dfa.o -MD -MP -MF $depbase.Tpo -c -o dfa.o dfa.c &&\
| mv -f $depbase.Tpo $depbase.Po
| xalloc.h:418: error: wrong arg count
It doesn't like the INT_MULTIPLY_WRAPV macro for some reason. Other
uses of this macro in other files copied from gnulib die similarly.
These macros are extremely opaque. Please investigate, using pcc used
to work ok, but keeping up with gnulib has caused it to break.
Thanks,
Arnold
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- intprops.h and friends problem with pcc,
arnold <=