[Bug 257344] math/adol-c even with python 3.7+ forced the stage phase still fails, but now with missing functions

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 22 Jul 2021 23:26:45 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257344

            Bug ID: 257344
           Summary: math/adol-c even with python 3.7+ forced the stage
                    phase still fails, but now with missing functions
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri_at_freebsd.org
          Reporter: alt2600_at_icloud.com
          Assignee: yuri_at_freebsd.org
             Flags: maintainer-feedback?(yuri_at_freebsd.org)

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Thu Jul 22 2021 - 23:26:45 UTC

Original text of this message