Bug 189453 - science/hdf5 1.8.12 build error on FreeBSD-10.0-p2-amd64
Summary: science/hdf5 1.8.12 build error on FreeBSD-10.0-p2-amd64
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-08 03:00 UTC by Chen Xie
Modified: 2016-10-31 12:25 UTC (History)
1 user (show)

See Also:
jrm: maintainer-feedback+


Attachments
science/hdf5 config.log output (124.38 KB, text/plain)
2015-07-26 02:03 UTC, Joseph Mingrone
no flags Details
fix problem configuring/compiling on 10amd64 and upgrade to 1.18.16 (6.83 KB, patch)
2016-03-16 03:24 UTC, Joseph Mingrone
jrm: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chen Xie 2014-05-08 03:00:00 UTC
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-05-13 05:45:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sunpoet

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Chen Xie 2014-05-22 02:46:39 UTC
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
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2014-05-24 07:52:53 UTC
State Changed
From-To: open->feedback

Please update ports tree and try hdf5 1.8.13. Thanks!
Comment 4 Po-Chuan Hsieh freebsd_committer freebsd_triage 2014-06-07 17:48:42 UTC
Submitter feedback timeout. Feel free to reopen PR if the problem persists.
Comment 5 Joseph Mingrone freebsd_committer freebsd_triage 2015-07-26 02:00:40 UTC
The problem remains with hdf5-1.8.15-patch1.

I've attached config.log.
Comment 6 Joseph Mingrone freebsd_committer freebsd_triage 2015-07-26 02:03:03 UTC
Created attachment 159227 [details]
science/hdf5 config.log output
Comment 7 Eitan Adler freebsd_committer freebsd_triage 2015-07-26 15:50:38 UTC
more info provided
Comment 8 Joseph Mingrone freebsd_committer freebsd_triage 2016-03-16 03:24:06 UTC
Created attachment 168279 [details]
fix problem configuring/compiling on 10amd64 and upgrade to 1.18.16
Comment 9 Joseph Mingrone freebsd_committer freebsd_triage 2016-03-16 03:26:50 UTC
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)
Comment 10 Po-Chuan Hsieh freebsd_committer freebsd_triage 2016-04-17 17:08:08 UTC
FYI, I'm working on HDF5 1.10.0 update.
Comment 11 Joseph Mingrone freebsd_committer freebsd_triage 2016-05-02 01:18:00 UTC
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
Comment 12 Dmitry Marakasov freebsd_committer freebsd_triage 2016-09-09 13:26:13 UTC
hdf5 builds fine on all 9/10/11/12 i386/amd64. Should we close this PR?
Comment 13 Joseph Mingrone freebsd_committer freebsd_triage 2016-09-09 13:29:47 UTC
Yes.