Now it seems to fine swig ok, but the staging fails with some crazy error. It looks like its trying to bring in numpy now with python enabled. I have nympy built with atlas, not sure if this is the cause or not. Not sure if its better to just patch python out of this. One really crazy error is speaking about not being able to find compiler options in the registry like it things its running on windows, about 12-15 lines from the top of below. But the main errors speak to missing functions. Making install in swig gmake[5]: Entering directory '/usr/ports/math/adol-c/work/ADOL-C-2.7.2/ADOL-C/swig' CXX=c++ /usr/local/bin/python3.8 setup.py install --prefix=/usr/local --only-swig running install running build running build_lib skipping build of ADOL-C running build_ext prefix = /usr/ports/math/adol-c/work/adolc_base invoking: c++ -std=c++11 -E -C -P -o adolc_all_pre.hpp -Iinclude -nostdinc -DSWIGPRE adolc_all_in.hpp building '_adolc' extension swigging adolc-python.i to adolc-python_wrap.cpp swig -python -c++ -dirvtable -o adolc-python_wrap.cpp adolc-python.i ../include/adolc/adolc_fatalerror.h:25: Warning 401: Nothing known about base class 'std::exception'. Ignored. Warning: Can't read registry to find the necessary compiler setting Make sure that Python modules winreg, win32api or win32con are installed. C compiler: cc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -march=westmere -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -march=westmere -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -fPIC creating build creating build/temp.freebsd-12.2-RELEASE-p6-amd64-3.8 compile options: '-I/usr/local/lib/python3.8/site-packages/numpy/core/include -I/usr/local/include/python3.8 -I/usr/ports/math/adol-c/work/adolc_base/include -c' extra options: '-std=c++11 -fPIC -w' cc: adolc-python_wrap.cpp adolc-python_wrap.cpp:27591:21: error: use of undeclared identifier 'jac_pat' result = (int)jac_pat(arg1,arg2,arg3,(double const *)arg4,arg5,arg6); ^ adolc-python_wrap.cpp:27663:21: error: use of undeclared identifier 'absnormal_jac_pat' result = (int)absnormal_jac_pat(arg1,arg2,arg3,arg4,(double const *)arg5,arg6); ^ adolc-python_wrap.cpp:27734:7: error: use of undeclared identifier 'generate_seed_jac' generate_seed_jac(arg1,arg2,arg3,arg4,arg5,arg6); ^ adolc-python_wrap.cpp:27798:21: error: use of undeclared identifier 'hess_pat' result = (int)hess_pat(arg1,arg2,(double const *)arg3,arg4,arg5); ^ adolc-python_wrap.cpp:27861:7: error: use of undeclared identifier 'generate_seed_hess' generate_seed_hess(arg1,arg2,arg3,arg4,arg5); ^ adolc-python_wrap.cpp:27908:7: error: use of undeclared identifier 'set_HP' set_HP(arg1,arg2,arg3); ^ adolc-python_wrap.cpp:27955:7: error: use of undeclared identifier 'get_HP' get_HP(arg1,arg2,arg3); ^ adolc-python_wrap.cpp:28027:21: error: use of undeclared identifier 'bit_vector_propagation' result = (int)bit_vector_propagation(arg1,arg2,arg3,(double const *)arg4,arg5,arg6); ^ 8 errors generated. error: Command "cc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -march=westmere -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -march=westmere -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -fPIC -I/usr/local/lib/python3.8/site-packages/numpy/core/include -I/usr/local/include/python3.8 -I/usr/ports/math/adol-c/work/adolc_base/include -c adolc-python_wrap.cpp -o build/temp.freebsd-12.2-RELEASE-p6-amd64-3.8/adolc-python_wrap.o -std=c++11 -fPIC -w" failed with exit status 1 gmake[5]: *** [Makefile:490: install] Error 1 gmake[5]: Leaving directory '/usr/ports/math/adol-c/work/ADOL-C-2.7.2/ADOL-C/swig' gmake[4]: *** [Makefile:554: install-recursive] Error 1 gmake[4]: Leaving directory '/usr/ports/math/adol-c/work/ADOL-C-2.7.2/ADOL-C' gmake[3]: *** [Makefile:711: install] Error 2 gmake[3]: Leaving directory '/usr/ports/math/adol-c/work/ADOL-C-2.7.2/ADOL-C' gmake[2]: *** [Makefile:537: install-recursive] Error 1 gmake[2]: Leaving directory '/usr/ports/math/adol-c/work/ADOL-C-2.7.2' gmake[1]: *** [Makefile:841: install-strip] Error 2 gmake[1]: Leaving directory '/usr/ports/math/adol-c/work/ADOL-C-2.7.2' *** Error code 2
Fix committed.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=4f49abdc507b2ff8ca579914261f53b828f4f6a4 commit 4f49abdc507b2ff8ca579914261f53b828f4f6a4 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2021-07-23 05:23:08 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2021-07-23 05:23:08 +0000 math/adol-c: Add PYTHON option that enables puthon binding. It properly disables python when off, fixing issues with python detection. PR: 257344 Reported by: alt2600@icloud.com math/adol-c/Makefile | 17 ++++++++++++----- math/adol-c/pkg-descr | 2 +- 2 files changed, 13 insertions(+), 6 deletions(-)