For whatever it's worth, I was able to build CDE on NetBSD 9.1/amd64 under virtualbox by typing: LANG=C make -k World As Andrew Doran suggested up-thread. This was using the system compiler (gcc 7.5.0), not one from pkgsrc.