Created attachment 186180 [details] Detect clang/llvm version at run time - clang was updated to 4.0 during FreeBSD 11.1 release cycle (11.0 had 3.8) - nodejs had a hack for clang 3.8 which broke nodejs modules builds with clang 4.0 and which was fixed in this issue: https://github.com/nodejs/node/pull/14077 However this fix does not work if nodejs (www/node port) is installed as package on FreeBSD 11.1 and later: node package is built on FreeBSD 11.0 with clang 3.8 (see http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/node-8.4.0.txz)
I am closing this, since the problem this patch is trying to fix has essentially aged out. Regardless, thanks for the submission. I'm sorry I didn't manage to give any feedback or do anything with it until now.