
FreeBSD 10.1でdevel / boost-libsを構築しようとしています。
しかし、常にこのようなエラーが発生します。
./boost/math/special_functions/detail/lanczos_sse2.hpp:13:10: fatal error: 'emmintrin.h' file not found
#include <emmintrin.h>
^
1 error generated.
そして
./boost/math/special_functions/detail/lanczos_sse2.hpp:13:10: fatal error: 'emmintrin.h' file not found
#include <emmintrin.h>
^
1 error generated.
私の設定
make showconfig
===> The following configuration options are available for boost-libs-1.55.0_4:
DEBUG=off: Build with debugging support
ICU=on: Boost.Regex with ICU unicode support
OPTIMIZED_CFLAGS=on: Use extra compiler optimizations
VERBOSE_BUILD=off: Show compiler messages
それでは、このポートを正常に構築するには何が不足していますか?
答え1
バグトラッカーで同様のバグレポートを見つけ、正しいヒントを得ました。 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190669#c11
デフォルトではインクルードディレクトリはありません。だから私はJailを使用しています。私のClangバージョンは3.4.1ですが、BaseJailインクルードディレクトリには3.3用のインクルードファイルしかありません。だから解決策は、ベースから私の刑務所にインクルードファイルをコピーすることでした。
$ cd /usr/jails/basejail/usr/include/clang
$ ls
3.3
$ sudo cp -r /usr/include/clang/3.4.1 /usr/jails/basejail/usr/include/clang