Solved graphics/vigra build error on quarterly

Code:
[00:02:16] /usr/include/c++/v1/__config:993:48: note: expanded from macro '_LIBCPP_DEPRECATED'
[00:02:16] #    define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
[00:02:16]                                                ^
[00:02:16] 1 warning generated.
[00:02:34] [ 82% 61/74] /usr/local/libexec/ccache/c++ -DHasHDF5 -Dvigranumpy_graphs_EXPORTS -I/wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/include -isystem /usr/local/include -isystem /usr/local/lib/python3.9/site-packages/numpy/core/include -isystem /usr/local/include/python3.9 -std=c++11 -pthread -O2 -pipe  -march=ivybridge -I/usr/local/include/Imath -fstack-protector-strong -fno-strict-aliasing   -std=gnu++11 -O2 -pipe  -march=ivybridge -I/usr/local/include/Imath -fstack-protector-strong -fno-strict-aliasing   -std=gnu++11 -fPIC    -DH5_BUILT_AS_DYNAMIC_LIB -MD -MT vigranumpy/src/core/CMakeFiles/vigranumpy_graphs.dir/adjacencyListGraph.cxx.o -MF vigranumpy/src/core/CMakeFiles/vigranumpy_graphs.dir/adjacencyListGraph.cxx.o.d -o vigranumpy/src/core/CMakeFiles/vigranumpy_graphs.dir/adjacencyListGraph.cxx.o -c /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/vigranumpy/src/core/adjacencyListGraph.cxx
[00:02:34] FAILED: vigranumpy/src/core/CMakeFiles/vigranumpy_graphs.dir/adjacencyListGraph.cxx.o 
[00:02:34] /usr/local/libexec/ccache/c++ -DHasHDF5 -Dvigranumpy_graphs_EXPORTS -I/wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/include -isystem /usr/local/include -isystem /usr/local/lib/python3.9/site-packages/numpy/core/include -isystem /usr/local/include/python3.9 -std=c++11 -pthread -O2 -pipe  -march=ivybridge -I/usr/local/include/Imath -fstack-protector-strong -fno-strict-aliasing   -std=gnu++11 -O2 -pipe  -march=ivybridge -I/usr/local/include/Imath -fstack-protector-strong -fno-strict-aliasing   -std=gnu++11 -fPIC    -DH5_BUILT_AS_DYNAMIC_LIB -MD -MT vigranumpy/src/core/CMakeFiles/vigranumpy_graphs.dir/adjacencyListGraph.cxx.o -MF vigranumpy/src/core/CMakeFiles/vigranumpy_graphs.dir/adjacencyListGraph.cxx.o.d -o vigranumpy/src/core/CMakeFiles/vigranumpy_graphs.dir/adjacencyListGraph.cxx.o -c /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/vigranumpy/src/core/adjacencyListGraph.cxx
[00:02:34] In file included from /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/vigranumpy/src/core/adjacencyListGraph.cxx:41:
[00:02:34] In file included from /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/vigranumpy/src/core/export_graph_visitor.hxx:13:
[00:02:34] In file included from /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/include/vigra/numpy_array.hxx:50:
[00:02:34] /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/include/vigra/numpy_array_traits.hxx:765:18: warning: 'bind2nd<std::multiplies<long>, unsigned long>' is deprecated [-Wdeprecated-declarations]
[00:02:34]             std::bind2nd(std::multiplies<npy_intp>(), sizeof(value_type)));
[00:02:34]                  ^
[00:02:34] /usr/include/c++/v1/__functional/binder2nd.h:45:1: note: 'bind2nd<std::multiplies<long>, unsigned long>' has been explicitly marked deprecated here
[00:02:34] _LIBCPP_DEPRECATED_IN_CXX11 inline _LIBCPP_INLINE_VISIBILITY
[00:02:34] ^
[00:02:34] /usr/include/c++/v1/__config:1004:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
[00:02:34] #  define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
[00:02:34]                                       ^
[00:02:34] /usr/include/c++/v1/__config:993:48: note: expanded from macro '_LIBCPP_DEPRECATED'
[00:02:34] #    define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
[00:02:34]                                                ^
[00:02:34] In file included from /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/vigranumpy/src/core/adjacencyListGraph.cxx:42:
[00:02:34] /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/vigranumpy/src/core/export_graph_rag_visitor.hxx:329:60: error: no viable conversion from 'NumpyArray<[...], Singleband<vigra::UInt32>, [...]>' to 'NumpyArray<[...], unsigned int, [...]>'
[00:02:34]         typename PyNodeMapTraits<RagGraph, UInt32>::Array  ragSeedsArray=RagUInt32NodeArray()
[00:02:34]                                                            ^             ~~~~~~~~~~~~~~~~~~~~
[00:02:34] /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/include/vigra/numpy_array.hxx:839:5: note: candidate constructor not viable: no known conversion from 'vigra::LemonGraphRagVisitor::RagUInt32NodeArray' (aka 'NumpyArray<RagNodeMapDim, Singleband<unsigned int>>') to 'const vigra::NumpyArray<1, unsigned int> &' for 1st argument
[00:02:34]     NumpyArray(const NumpyArray &other, bool createCopy = false)
[00:02:34]     ^
[00:02:34] /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/include/vigra/numpy_array.hxx:821:14: note: explicit constructor is not a candidate
[00:02:34]     explicit NumpyArray(PyObject *obj = 0, bool createCopy = false)
[00:02:34]              ^
[00:02:34] /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/include/vigra/numpy_array.hxx:855:14: note: explicit constructor is not a candidate
[00:02:34]     explicit NumpyArray(const MultiArrayView<N, U, S> &other)
[00:02:34]              ^
[00:02:34] /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/include/vigra/numpy_array.hxx:871:14: note: explicit constructor is not a candidate
[00:02:34]     explicit NumpyArray(difference_type const & shape, std::string const & order = "")
[00:02:34]              ^
[00:02:34] /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/include/vigra/numpy_array.hxx:883:14: note: explicit constructor is not a candidate
[00:02:34]     explicit NumpyArray(TaggedShape const & tagged_shape)
[00:02:34]              ^
[00:02:34] /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/include/vigra/numpy_array.hxx:893:14: note: explicit constructor is not a candidate
[00:02:34]     explicit NumpyArray(const NumpyAnyArray &other, bool createCopy = false)
[00:02:34]              ^
[00:02:34] /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/include/vigra/multi_array.hxx:882:5: note: candidate function
[00:02:34]     operator MultiArrayView<N, T, StridedArrayTag>() const
[00:02:34]     ^
[00:02:34] /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/vigranumpy/src/core/export_graph_rag_visitor.hxx:329:60: note: passing argument to parameter 'ragSeedsArray' here
[00:02:34]         typename PyNodeMapTraits<RagGraph, UInt32>::Array  ragSeedsArray=RagUInt32NodeArray()
[00:02:34]                                                            ^
[00:02:34] /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/vigranumpy/src/core/export_graph_rag_visitor.hxx:337:57: error: no matching constructor for initialization of 'typename PyNodeMapTraits<RagGraph, UInt32>::Map' (aka 'NumpyNodeMap<vigra::AdjacencyListGraph, unsigned int>')
[00:02:34]         typename PyNodeMapTraits<RagGraph, UInt32>::Map ragSeedsArrayMap(rag, ragSeedsArray);
[00:02:34]                                                         ^
[00:02:34] /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/vigranumpy/src/core/export_graph_rag_visitor.hxx:273:59: note: in instantiation of member function 'vigra::LemonGraphRagVisitor<vigra::AdjacencyListGraph>::pyAccNodeSeeds' requested here
[00:02:34]         python::def("_pyAccNodeSeeds",registerConverters(&pyAccNodeSeeds),
[00:02:34]                                                           ^
[00:02:34] /usr/local/include/boost/python/def_visitor.hpp:31:29: note: in instantiation of function template specialization 'vigra::LemonGraphRagVisitor<vigra::AdjacencyListGraph>::visit<boost::python::class_<vigra::AdjacencyListGraph>>' requested here
[00:02:34]         v.derived_visitor().visit(c);
[00:02:34]                             ^
[00:02:34] /usr/local/include/boost/python/def_visitor.hpp:67:29: note: in instantiation of function template specialization 'boost::python::def_visitor_access::visit<boost::python::def_visitor<vigra::LemonGraphRagVisitor<vigra::AdjacencyListGraph>>, boost::python::class_<vigra::AdjacencyListGraph>>' requested here
[00:02:34]         def_visitor_access::visit(*this, c);
[00:02:34]                             ^
[00:02:34] /usr/local/include/boost/python/class.hpp:221:17: note: in instantiation of function template specialization 'boost::python::def_visitor<vigra::LemonGraphRagVisitor<vigra::AdjacencyListGraph>>::visit<boost::python::class_<vigra::AdjacencyListGraph>>' requested here
[00:02:34]         visitor.visit(*this);
[00:02:34]                 ^
[00:02:34] /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/vigranumpy/src/core/adjacencyListGraph.cxx:88:10: note: in instantiation of function template specialization 'boost::python::class_<vigra::AdjacencyListGraph>::def<vigra::LemonGraphRagVisitor<vigra::AdjacencyListGraph>>' requested here
[00:02:34]         .def(LemonGraphRagVisitor<Graph>(clsName))
[00:02:34]          ^
[00:02:34] /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/include/vigra/python_graph.hxx:621:8: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 0 were provided
[00:02:34] struct NumpyNodeMap
[00:02:34]        ^
[00:02:34] /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/include/vigra/python_graph.hxx:621:8: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 0 were provided
[00:02:34] /wrkdirs/usr/ports/graphics/vigra/work/vigra-8acd73a/include/vigra/python_graph.hxx:643:5: note: candidate constructor not viable: requires 2 arguments, but 0 were provided
[00:02:34]     NumpyNodeMap(const G & g, NumpyArrayType numpyArray)
[00:02:34]     ^
[00:02:34] 1 warning and 2 errors generated.
[00:02:34] ninja: build stopped: subcommand failed.
[00:02:34] *** Error code 1
[00:02:34] 
[00:02:34] Stop.
[00:02:34] make: stopped in /usr/ports/graphics/vigra
[00:02:44] =>> Cleaning up wrkdir
[00:02:44] ===>  Cleaning for vigra-1.11.1_20
[00:03:57] build of graphics/vigra | vigra-1.11.1_20 ended at Fri Mar 18 18:24:52 CET 2022
[00:03:57] build time: 00:03:04
[00:03:57] !!! build failure encountered !!!
 
Hello Alain,

I am running into the same problem with an installation of libreoffice that depends on the vigra port (see msg below). I am a little at a lost with your solution.I am new to this and it would be very helpful if you can explain how to unset the numpy option.

Thanks,

Luis
Code:
      ^
/usr/ports/graphics/vigra/work/vigra-8acd73a/include/vigra/python_graph.hxx:621:8: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 0 were provided
/usr/ports/graphics/vigra/work/vigra-8acd73a/include/vigra/python_graph.hxx:643:5: note: candidate constructor not viable: requires 2 arguments, but 0 were provided
    NumpyNodeMap(const G & g, NumpyArrayType numpyArray)
    ^
1 warning and 2 errors generated.
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/graphics/vigra
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/vigra

===>>> make build failed for graphics/vigra
===>>> Aborting update

===>>> Update for graphics/vigra failed
===>>> Aborting update

Thanks!
 
Last edited by a moderator:
cd /usr/ports/graphics/vigra
make rmconfig

See ports(7):
Code:
     rmconfig             Remove OPTIONS config for this port.
 
Hello Alain, thanks for the reply much appreciated.

I will try this on a different system at a later time. I decided to use binary ports in this machine instead of compiling code and prefer not to mix since this seems to be a big no no.
 
Back
Top