[TUHS] Building the two-pass Portable C Compiler
Warren Toomey via TUHS
tuhs at tuhs.org
Wed Sep 17 09:10:51 AEST 2025
I seem to have lots of questions this month!
I'm trying to build the two-pass version of the Portable C compiler
on 2.11BSD. I'm using the OpenSimH disk image from
https://github.com/chasecovello/211bsd-pidp11
I am in /usr/src/lib/pcc doing a make -f Makefile.twopass.
We get down to this error:
comm1.c:3: STRINGFILE undefined; func. StringFile
and the relevant source code line is:
static char *StringFile = STRINGFILE; /* From Makefile -DSTRINGFILE= ... */
Neither Makefile nor Makefile.twopass define STRINGFILE, so I am
at a loss. The code seems to use this file for error reporting:
errprep(soff, buf)
unsigned short soff;
...
errfd = open(StringFile, O_RDONLY, 0);
Could it be /usr/share/misc/lintstrings which seems to have
compiler error message in it?
Does anybody have a memory of this?
Thanks, Warren
More information about the TUHS
mailing list