pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: biology/openbabel seems to require lower gcc version



On 2019-04-17 05:00, Mayuresh wrote:
On NetBSD 8.0_RC1 with default gcc 5.5.0 openbable shows compilation
errors of the kind:

/usr/pkgsrc/biology/openbabel/work/openbabel-2.3.2/include/openbabel/shared_ptr.h:33:17:
error: 'std::tr1' has not been declared
       using std::tr1::shared_ptr;

Tried setting the standard to c++11 (instead of c++03 set in the
Makefile). With that, the above error goes away, but a newer one appears
like:

/usr/include/g++/bits/stl_pair.h:276:5: note:   template argument
deduction/substitution failed:
/usr/pkgsrc/biology/openbabel/work/openbabel-2.3.2/src/ops/sort.cpp:147:68:
note:   cannot convert 'iter.__
gnu_cxx::__normal_iterator<_Iterator,
_Container>::operator*<OpenBabel::OBBase**, std::vector<OpenBabel::OB
Base*> >()' (type 'OpenBabel::OBBase*') to type 'OpenBabel::OBBase*&&'
        valvec.push_back(std::make_pair<OBBase*,std::string>(*iter, s));

On Linux with gcc 4.9.2 it is building fine.

Is there a way I can ask pkgsrc to use older gcc version than the default
one? I tried setting variables mentioned on this page, but nothing worked:
compiler always defaulted to 5.5.0

https://wiki.netbsd.org/pkgsrc/gcc/

Please advise.

Mayuresh
The current package version, 2.3.2 dates to Oct 2012.  Have you considered upgrading the package to the latest release instead?

https://github.com/openbabel/openbabel/releases

This will likely work with newer compilers and would be a better use of man-hours, unless you really need the old version for some reason.

Cheers,

    JB


Home | Main Index | Thread Index | Old Index