bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* intprops.h and friends problem with pcc
@ 2022-12-03 21:00 arnold
  0 siblings, 0 replies; only message in thread
From: arnold @ 2022-12-03 21:00 UTC (permalink / raw)
  To: bug-gnulib

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-03 21:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-03 21:00 intprops.h and friends problem with pcc arnold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).