[TUHS] Building the two-pass Portable C Compiler

Clem Cole via TUHS tuhs at tuhs.org
Wed Sep 17 13:55:16 AEST 2025


I believe that is the file you want, since it is defined in the lint
Makefile and given that pcc started out as lint, and given this comment on
the lint READ_ME (note the files are actually: /usr/lib/mip in the 2.11BSD
tree)

/*
 *      @(#)READ_ME     1.2     (Berkeley)      4/8/85
 */
Most of lint's source files are shared with the portable
compiler: they are found in /usr/src/lib/mip.
The files here are only those which are unique to lint.

On Tue, Sep 16, 2025 at 7:10 PM 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