Opened 9 years ago

Closed 6 years ago

#50163 closed defect (wontfix)

py-bob-learn-em: build fails on 10.8, error: no matching constructor for initialization of 'const std::map<std::string, bob::learn::em::KMeansTrainer::InitializationMethod>'

Reported by: dbevans (David B. Evans) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: andre.anjos@…, laurent.el-shafey@…, tiago.pereira@…
Port: py-bob-learn-em

Description

:info:build /usr/bin/clang -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -Wno-strict-aliasing -DBOB_EXT_MODULE_PREFIX="bob.learn.em" -DBOB_EXT_MODULE_NAME="_library" -DBOB_EXT_ENTRY_NAME=init_library -DBOB_EXT_MODULE_VERSION="2.0.6" -DHAVE_BOOST=1 -DBOOST_VERSION="1.59.0" -DHAVE_BLITZ=1 -DBLITZ_VERSION="0.10" -DPY_ARRAY_UNIQUE_SYMBOL=BOB_NUMPY_C_API -DNO_IMPORT_ARRAY=1 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/opt/local/var/macports/build/_Volumes_MiniHD_opt_macports_trunk_dports_python_py-bob-learn-em/py27-bob-learn-em/work/bob.learn.em-2.0.6/bob/learn/em/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bob/blitz/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bob/extension/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bob/learn/activation/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bob/sp/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bob/math/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bob/learn/linear/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bob/core/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bob/io/base/include -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c bob/learn/em/kmeans_trainer.cpp -o build/temp.macosx-10.8-x86_64-2.7/bob/learn/em/kmeans_trainer.o -std=c++0x -Wno-#warnings -isystem /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -isystem /opt/local/include
:info:build bob/learn/em/kmeans_trainer.cpp:19:91: error: no matching constructor for initialization of 'const std::map<std::string, bob::learn::em::KMeansTrainer::InitializationMethod>'
:info:build   static const std::map<std::string, bob::learn::em::KMeansTrainer::InitializationMethod> IM = {{"RANDOM",  bob::learn::em::KMeansTrainer::InitializationMethod::RANDOM},  {"RANDOM_NO_DUPLICATE", bob::learn::
em::KMeansTrainer::InitializationMethod::RANDOM_NO_DUPLICATE}, {"KMEANS_PLUS_PLUS", bob::learn::em::KMeansTrainer::InitializationMethod::KMEANS_PLUS_PLUS}};
:info:build                                                                                           ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /usr/include/c++/4.2.1/bits/stl_map.h:204:9: note: candidate template ignored: couldn't infer template argument '_InputIterator'
:info:build         map(_InputIterator __first, _InputIterator __last,
:info:build         ^
:info:build /usr/include/c++/4.2.1/bits/stl_map.h:188:9: note: candidate constructor template not viable: requires 2 arguments, but 3 were provided
:info:build         map(_InputIterator __first, _InputIterator __last)
:info:build         ^
:info:build /usr/include/c++/4.2.1/bits/stl_map.h:157:7: note: candidate constructor not viable: requires 0 arguments, but 3 were provided
:info:build       map()
:info:build       ^
:info:build /usr/include/c++/4.2.1/bits/stl_map.h:165:7: note: candidate constructor not viable: requires at most 2 arguments, but 3 were provided
:info:build       map(const _Compare& __comp, const allocator_type& __a = allocator_type())
:info:build       ^
:info:build /usr/include/c++/4.2.1/bits/stl_map.h:175:7: note: candidate constructor not viable: requires single argument '__x', but 3 arguments were provided
:info:build       map(const map& __x)
:info:build       ^
:info:build 1 error generated.

Attachments (1)

main.log (309.2 KB) - added by dbevans (David B. Evans) 9 years ago.
Build log showing failure

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by dbevans (David B. Evans)

Attachment: main.log added

Build log showing failure

comment:1 Changed 6 years ago by mf2k (Frank Schima)

Resolution: wontfix
Status: newclosed

See #56287.

Note: See TracTickets for help on using tickets.