Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jul 2021 23:26:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 257344] math/adol-c even with python 3.7+ forced the stage phase still fails, but now with missing functions
Message-ID:  <bug-257344-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257344

            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@freebsd.org
          Reporter: alt2600@icloud.com
          Assignee: yuri@freebsd.org
             Flags: maintainer-feedback?(yuri@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 nym=
py
built with atlas, not sure if this is the cause or not. Not sure if its bet=
ter
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 runn=
ing
on windows, about 12-15 lines from the top of below. But the main errors sp=
eak
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=3Dc++ /usr/local/bin/python3.8 setup.py install --prefix=3D/usr/local
--only-swig
running install
running build
running build_lib
skipping build of ADOL-C
running build_ext
prefix =3D  /usr/ports/math/adol-c/work/adolc_base
invoking: c++ -std=3Dc++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 ba=
se
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=3Dwestmere -fstack-protector-strong -fno-strict-aliasing -=
O2
-pipe -march=3Dwestmere -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/inclu=
de
-I/usr/local/include/python3.8 -I/usr/ports/math/adol-c/work/adolc_base/inc=
lude
-c'
extra options: '-std=3Dc++11 -fPIC -w'
cc: adolc-python_wrap.cpp
adolc-python_wrap.cpp:27591:21: error: use of undeclared identifier 'jac_pa=
t'
      result =3D (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 =3D (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_p=
at'
      result =3D (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 =3D (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=3Dwestmere -fstack-protector-strong
-fno-strict-aliasing -O2 -pipe -march=3Dwestmere -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/inc=
lude
-c adolc-python_wrap.cpp -o
build/temp.freebsd-12.2-RELEASE-p6-amd64-3.8/adolc-python_wrap.o -std=3Dc++=
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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-257344-7788>