Re: System compilation with simpler compiler

Anders Magnusson <[email protected]> Sat, 2 May 2026 09:46:33 +0200
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
Den 2026-04-27 kl. 11:22, skrev Valery Ushakov:
> On Mon, Apr 27, 2026 at 11:10:56 +0200, Giacomo Tesio wrote:
>
>> Hi, sorry if this sounds as a naive question, but I was wondering if
>> it's possible to build the NetBSD system with a simpler toolchain
>> (compared to mainstream compiler suite such as GCC and CLang).
>>
>> I can't find instructions on how to specify the various tools to
>> build.sh and a first (naive and dumb :-D) attempt at building a kernel
>> with tinycc through a simple "export CC=tcc" failed at make depend.
>>
>> By simple compiler suite I mean compiler suite that only compile C,
>> such as cproc+binutils or tinycc.
>>
>> If such experiment has been attempted in the past, I'd like to read
>> about it, even if it failed to deliver anything usable...
> See EXTERNAL_TOOLCHAIN variable in share/mk/bsd.README - though it
> might have bitrotted a bit...
>
> I think the C parts of the tree used to be compilable with pcc (ragge@
> is a netbsd developer).
Yep.  It was some time ago now, but I think I added all the gcc-specific 
quirks to pcc that was used in the source tree.

-- Ragge