for others: rustc needs to find out where its libraries are. on netbsd, it uses procfs's /proc/self/exe to find where its libraries are. without procfs, it fails with an ICE. An alternative is to supply --sysroot=... to the PREFIX where rust libraries are (i.e. /usr/pkg).