Hi everyone,
I’ve come across some difficulties building the latest version of mrtrix (master branch). The error seems to pop up when building ‘release/cmd/mrmetric.o’
Here’s the output:
ERROR: (107/430) [CC] release/cmd/mrmetric.o
clang++ -c -std=c++11 -DMRTRIX_MACOSX -fPIC -DMRTRIX_WORD64 -DMRTRIX_NO_NON_POD_VLA -isystem /usr/local/Cellar/eigen/3.2.8/include/eigen3 -Wall -O2 -DNDEBUG -Isrc -Icmd -I./lib -Icmd -isystem /usr/local/Cellar/eigen/3.2.8/include/eigen3 cmd/mrmetric.cpp -o release/cmd/mrmetric.o
failed with output
cmd/mrmetric.cpp:310:15: error: call to member function 'push_back' is ambiguous
headers.push_back (input1);
~~~~~~~~^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:700:36: note: candidate function
_LIBCPP_INLINE_VISIBILITY void push_back(const_reference __x);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:702:36: note: candidate function
_LIBCPP_INLINE_VISIBILITY void push_back(value_type&& __x);
^
cmd/mrmetric.cpp:311:15: error: call to member function 'push_back' is ambiguous
headers.push_back (input2);
/var/folders/5s/1w6ckppj22j_t40zptw363yw0000gv/T/tmpmbORuN
ERROR: (107/430) [CC] release/cmd/mrmetric.o
clang++ -c -std=c++11 -DMRTRIX_MACOSX -fPIC -DMRTRIX_WORD64 -DMRTRIX_NO_NON_POD_VLA -isystem /usr/local/Cellar/eigen/3.2.8/include/eigen3 -Wall -O2 -DNDEBUG -Isrc -Icmd -I./lib -Icmd -isystem /usr/local/Cellar/eigen/3.2.8/include/eigen3 cmd/mrmetric.cpp -o release/cmd/mrmetric.o
failed with output
cmd/mrmetric.cpp:310:15: error: call to member function 'push_back' is ambiguous
headers.push_back (input1);
~~~~~~~~^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:700:36: note: candidate function
_LIBCPP_INLINE_VISIBILITY void push_back(const_reference __x);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:702:36: note: candidate function
_LIBCPP_INLINE_VISIBILITY void push_back(value_type&& __x);
^
cmd/mrmetric.cpp:311:15: error: call to member function 'push_back' is ambiguous
headers.push_back (input2);
~~~~~~~~^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:700:36: note: candidate function
_LIBCPP_INLINE_VISIBILITY void push_back(const_reference __x);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:702:36: note: candidate function
_LIBCPP_INLINE_VISIBILITY void push_back(value_type&& __x);
^
2 errors generated.
ERROR: ( 53/430) [CC] release/cmd/mrregister.o
clang++ -c -std=c++11 -DMRTRIX_MACOSX -fPIC -DMRTRIX_WORD64 -DMRTRIX_NO_NON_POD_VLA -isystem /usr/local/Cellar/eigen/3.2.8/include/eigen3 -Wall -O2 -DNDEBUG -Isrc -Icmd -I./lib -Icmd -isystem /usr/local/Cellar/eigen/3.2.8/include/eigen3 cmd/mrregister.cpp -o release/cmd/mrregister.o
failed with output
In file included from cmd/mrregister.cpp:22:
./lib/registration/nonlinear.h:88:23: error: call to member function 'push_back' is ambiguous
headers.push_back (im2_image);
~~~~~~~~^~~~~~~~~
cmd/mrregister.cpp:770:23: note: in instantiation of function template specialization 'MR::Registration::NonLinear::run<MR::Registration::Transform::Affine, MR::Image<double>, MR::Image<double>, MR::Image<double>, MR::Image<double> >' requested here
nl_registration.run (affine, im1_image, im2_image, im1_mask, im2_mask);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:700:36: note: candidate function
_LIBCPP_INLINE_VISIBILITY void push_back(const_reference __x);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:702:36: note: candidate function
_LIBCPP_INLINE_VISIBILITY void push_back(value_type&& __x);
^
In file included from cmd/mrregister.cpp:22:
./lib/registration/nonlinear.h:89:23: error: call to member function 'push_back' is ambiguous
headers.push_back (im1_image);
~~~~~~~~^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:700:36: note: candidate function
_LIBCPP_INLINE_VISIBILITY void push_back(const_reference __x);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:702:36: note: candidate function
_LIBCPP_INLINE_VISIBILITY void push_back(value_type&& __x);
^
In file included from cmd/mrregister.cpp:22:
./lib/registration/nonlinear.h:88:23: error: call to member function 'push_back' is ambiguous
headers.push_back (im2_image);
~~~~~~~~^~~~~~~~~
cmd/mrregister.cpp:772:23: note: in instantiation of function template specialization 'MR::Registration::NonLinear::run<MR::Registration::Transform::Rigid, MR::Image<double>, MR::Image<double>, MR::Image<double>, MR::Image<double> >' requested here
nl_registration.run (rigid, im1_image, im2_image, im1_mask, im2_mask);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:700:36: note: candidate function
_LIBCPP_INLINE_VISIBILITY void push_back(const_reference __x);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:702:36: note: candidate function
_LIBCPP_INLINE_VISIBILITY void push_back(value_type&& __x);
^
In file included from cmd/mrregister.cpp:22:
./lib/registration/nonlinear.h:89:23: error: call to member function 'push_back' is ambiguous
headers.push_back (im1_image);
~~~~~~~~^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:700:36: note: candidate function
_LIBCPP_INLINE_VISIBILITY void push_back(const_reference __x);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:702:36: note: candidate function
_LIBCPP_INLINE_VISIBILITY void push_back(value_type&& __x);
^
4 errors generated.
ERROR: (133/430) [CC] release/lib/registration/transform/initialiser_helpers.o
clang++ -c -std=c++11 -DMRTRIX_MACOSX -fPIC -DMRTRIX_WORD64 -DMRTRIX_NO_NON_POD_VLA -isystem /usr/local/Cellar/eigen/3.2.8/include/eigen3 -Wall -O2 -DNDEBUG -Isrc -Icmd -I./lib -Icmd -isystem /usr/local/Cellar/eigen/3.2.8/include/eigen3 lib/registration/transform/initialiser_helpers.cpp -o release/lib/registration/transform/initialiser_helpers.o
failed with output
In file included from lib/registration/transform/initialiser_helpers.cpp:20:
./lib/registration/transform/search.h:234:23: error: call to member function 'push_back' is ambiguous
headers.push_back (im1);
~~~~~~~~^~~~~~~~~
./lib/registration/transform/search.h:151:40: note: in instantiation of member function 'MR::Registration::RotationSearch::ExhaustiveRotationSearch<MR::Registration::Metric::MeanSquaredNoGradient>::get_parameters' requested here
ParamType parameters = get_parameters ();
^
lib/registration/transform/initialiser_helpers.cpp:194:18: note: in instantiation of member function 'MR::Registration::RotationSearch::ExhaustiveRotationSearch<MR::Registration::Metric::MeanSquaredNoGradient>::run' requested here
search.run();
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:700:36: note: candidate function
_LIBCPP_INLINE_VISIBILITY void push_back(const_reference __x);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:702:36: note: candidate function
_LIBCPP_INLINE_VISIBILITY void push_back(value_type&& __x);
^
In file included from lib/registration/transform/initialiser_helpers.cpp:20:
./lib/registration/transform/search.h:235:23: error: call to member function 'push_back' is ambiguous
headers.push_back (im2);
~~~~~~~~^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:700:36: note: candidate function
_LIBCPP_INLINE_VISIBILITY void push_back(const_reference __x);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:702:36: note: candidate function
_LIBCPP_INLINE_VISIBILITY void push_back(value_type&& __x);
The output of my ./configure script is as follows:
Detecting OS: darwin
Checking for C++11 compliant compiler [clang++]: 4.2.1 - tested ok
Detecting pointer size: 64 bit
Detecting byte order: little-endian
Checking for variable-length array support: yes
Checking for non-POD variable-length array support: no
Checking for zlib compression library: 1.2.5
checking for Eigen 3 library: 3.2.8
Checking shared library generation: yes
Checking for Qt moc: moc (version 5.6.0)
Checking for Qt qmake: qmake (version 5.6.0)
Checking for Qt rcc: rcc (version 5.6.0)
Checking for Qt: 5.6.0
Any ideas what might be causing this?