In file included from njam.cpp:41:
In file included from /usr/include/c++/v1/string:469:
/usr/include/c++/v1/__config:132:10: fatal error: 'features.h' file not found
build log: http://package18.nyi.freebsd.org/data/headamd64PR216008-default/2017-01-29_16h09m05s/logs/errors/njam-1.25_12.log
regressed by: https://github.com/llvm-mirror/libcxx/commit/7d7f3cc9b169
It doesn't seem to be related to port. The problematic include is in standard library.
Maybe drop -D__linux__ from the port as it's a recipe to break system headers.
Oh, you're right. On it.
A commit references this bug:
Date: Wed Feb 1 14:40:48 UTC 2017
New revision: 433038
- Fix build with clang 4.0 by not defining __linux__
- Add LICENSE
- Switch to options helpers
- Regenerate patches
Submitted by: jbeich@FreeBSD.org
I confirm, it builds fine now with clang/libc++ 4.0.