src/formats/chemkinformat.cpp:642:13: warning: comparison between NULL and non-pointer ('istream' (aka 'basic_istream<char>') and NULL) [-Wnull-arithmetic] return ifs!=NULL; ~~~^ ~~~~ src/formats/chemkinformat.cpp:642:13: error: invalid operands to binary expression ('istream' (aka 'basic_istream<char>') and 'long') return ifs!=NULL; ~~~^ ~~~~ build log: http://sprunge.us/ZORA bisect first bad: https://github.com/llvm-mirror/libcxx/commit/3a1b90a866b6
src/ops/conformer.cpp:83:10: error: no viable conversion from 'std::__1::basic_istream<char>' to 'bool' bool ret = iss >> value; ^ ~~~~~~~~~~~~
Does this port build its C++ sources with -std=c++11?
Note that the upstream author has reverted the commit causing this here: http://llvm.org/viewvc/llvm-project?rev=291921&view=rev and has also merged it to the 4.0 branch. I will import the upstream branch into the projects/clang400-import branch soon.
This port now builds fine after r312200 in the clang400-import branch.
While libc++ case is averted this still affects GCC >= 6. I assume, you wanted to unblock bug 216008 instead. src/formats/chemkinformat.cpp: In member function 'bool OpenBabel::ChemKinFormat::ReadReactionQualifierLines(std::istream&, OpenBabel::OBReaction*)': src/formats/chemkinformat.cpp:642:13: error: no match for 'operator!=' (operand types are 'std::istream {aka std::basic_istream<char>}' and 'long int') return ifs!=NULL; ^
Ah yes, I was misled by a similar-looking bugs, sorry :)
A commit references this bug: Author: jbeich Date: Sat Jan 21 23:12:18 UTC 2017 New revision: 432091 URL: https://svnweb.freebsd.org/changeset/ports/432091 Log: science/openbabel: unbreak with GCC >= 6 GCC defaults to C++14 since 6.0 which no longer converts istream to bool by default. Instead of fixing just downgrade to C++98. PR: 216036 Changes: head/science/openbabel/Makefile
comment 7 wouldn't have helped libc++ since it leaks C++11 stuff. ;)
A commit references this bug: Author: jbeich Date: Sat Jan 21 23:24:18 UTC 2017 New revision: 432092 URL: https://svnweb.freebsd.org/changeset/ports/432092 Log: MFH: r432091 science/openbabel: unbreak with GCC >= 6 GCC defaults to C++14 since 6.0 which no longer converts istream to bool by default. Instead of fixing just downgrade to C++98. PR: 216036 Approved by: ports-secteam blanket Changes: _U branches/2017Q1/ branches/2017Q1/science/openbabel/Makefile
A commit references this bug: Author: jbeich Date: Sun Feb 5 18:57:52 UTC 2017 New revision: 433442 URL: https://svnweb.freebsd.org/changeset/ports/433442 Log: textproc/irstlm: unbreak with GCC >= 6 GCC defaults to C++14 since 6.0 which no longer converts istream to bool by default. Instead of fixing just downgrade to C++98. PR: 216036 Approved by: demon (maintainer, implicit) Changes: head/textproc/irstlm/Makefile
Oops, comment 10 had wrong bug number.