[TUHS] Building the two-pass Portable C Compiler

Arnold Robbins via TUHS tuhs at tuhs.org
Wed Sep 17 12:49:56 AEST 2025


Why not just try it and see what happens?

Arnold

Warren Toomey via TUHS <tuhs at tuhs.org> wrote:

> 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