after portsnaping the latest ports tree #cd /usr/ports/science/hdf5 #make ===> License BSD4CLAUSE accepted by the user ===> Found saved configuration for hdf5-1.8.12 ===> hdf5-1.8.12 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by hdf5-1.8.12 for building ===> Extracting for hdf5-1.8.12 => SHA256 Checksum OK for hdf5-1.8.12.tar.bz2. ===> Patching for hdf5-1.8.12 ===> Configuring for hdf5-1.8.12 ===> FreeBSD 10 autotools fix applied to /usr/ports/science/hdf5/work/hdf5-1.8.12/configure ===> FreeBSD 10 autotools fix applied to /usr/ports/science/hdf5/work/hdf5-1.8.12/aclocal.m4 configure: loading site script /usr/ports/Templates/config.site checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel checking whether build environment is sane... yes checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p checking for gawk... (cached) /usr/bin/awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking build system type... amd64-portbld-freebsd10.0 checking host system type... amd64-portbld-freebsd10.0 checking shell variables initial values... done checking if basename works... yes checking if xargs works... yes checking for cached host... none checking for config amd64-portbld-freebsd10.0... no checking for config amd64-portbld-freebsd... no checking for config portbld-freebsd10.0... no checking for config portbld-freebsd... no checking for config amd64-freebsd10.0... no checking for config amd64-freebsd... no checking for config amd64-portbld... no checking for config freebsd10.0... no checking for config freebsd... found checking for config ./config/site-specific/host-print... no checking for gcc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of cc... gcc3 checking if unsupported combinations of configure options are allowed... no checking if Fortran interface enabled... no checking if Fortran 2003 interface enabled... yes checking whether we are using the GNU C++ compiler... no checking whether c++ accepts -g... no checking dependency style of c++... gcc3 checking how to run the C++ preprocessor... /lib/cpp configure: error: in `/usr/ports/science/hdf5/work/hdf5-1.8.12': configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details ===> Script "configure" failed unexpectedly. Please report the problem to sunpoet@FreeBSD.org [maintainer] and attach the "/usr/ports/science/hdf5/work/hdf5-1.8.12/config.log" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. a /usr/local/sbin/pkg-static info -g -Ea). *** Error code 1 Stop. make[1]: stopped in /usr/ports/science/hdf5 *** Error code 1 Stop. make: stopped in /usr/ports/science/hdf "/usr/ports/science/hdf5/work/hdf5-1.8.12/config.log" mentioned that: configure:7149: /lib/cpp conftest.cpp eval: /lib/cpp: not found configure:7149: /lib/cpp conftest.cpp eval: /lib/cpp: not found configure:7188: result: /lib/cpp configure:7208: /lib/cpp conftest.cpp eval: /lib/cpp: not found configure:7208: /lib/cpp conftest.cpp eval: /lib/cpp: not found configure:7241: error: C++ preprocessor "/lib/cpp" fails sanity check ac_cv_prog_CXXCPP=/lib/cpp CXXCPP='/lib/cpp' Fix: #cd /usr/ports/science/hdf5 #make How-To-Repeat: #cd /usr/ports/science/hdf5 #make
Responsible Changed From-To: freebsd-ports-bugs->sunpoet Over to maintainer (via the GNATS Auto Assign Tool)
If I add the following lines to /etc/make.conf , it works. I don not know why. The default compilation tool chain is already clang in FreeBSD 10. CC=clang CXX=clang++ CPP=clang-cpp or: CC=gcc47 CXX=c++47 CPP=cpp47
State Changed From-To: open->feedback Please update ports tree and try hdf5 1.8.13. Thanks!
Submitter feedback timeout. Feel free to reopen PR if the problem persists.
The problem remains with hdf5-1.8.15-patch1. I've attached config.log.
Created attachment 159227 [details] science/hdf5 config.log output
more info provided
Created attachment 168279 [details] fix problem configuring/compiling on 10amd64 and upgrade to 1.18.16
Here is a summary of the tests for the above patch. portlint: OK testport: OK (poudriere: 10.1-RELEASE-p17, amd64, Examples, Debug,Examples,Fortran, szip) testport: OK (poudriere: 10.1-RELEASE-p17, i386, Examples, Debug,Examples,Fortran, szip) testport: OK (poudriere: 9.3-RELEASE-p30, amd64, Examples, Debug,Examples,Fortran, szip) testport: OK (poudriere: 9.3-RELEASE-p36, i386, Examples, Debug,Examples,Fortran, szip)
FYI, I'm working on HDF5 1.10.0 update.
FYI: 1.10.0 fails to build on 9i386 with the default options. See http://pkg.awarnach.mathstat.dal.ca/data/9i386-default/2016-05-01_21h42m13s/logs/errors/hdf5-1.10.0.log
hdf5 builds fine on all 9/10/11/12 i386/amd64. Should we close this PR?
Yes.