support for gcc 4.2.1 on mac
We are in the process of switching to gcc 4.2.1 on mac and some new c++11 features in this package are blocking the process:
/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.conda/conda-env/bob.io.image_1486677680645/work/bob.io.image-2.2.0/bob/io/image/cpp/image.cpp:14:54: error: no template named 'uint8_t' in namespace 'std'; did you mean 'boost::uint_t'?
static std::map<std::string, std::vector<std::vector<std::uint8_t>>> _initialize_magic_numbers(){
^~~~~~~~~~~~
boost::uint_t
/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.conda/conda-env/bob.io.image_1486677680645/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/include/boost/integer.hpp:136:10: note: 'boost::uint_t' declared here
struct uint_t : public boost::detail::exact_unsigned_base_helper<Bits>
^
/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.conda/conda-env/bob.io.image_1486677680645/work/bob.io.image-2.2.0/bob/io/image/cpp/image.cpp:14:54: error: use of class template 'std::uint_t' requires template arguments
static std::map<std::string, std::vector<std::vector<std::uint8_t>>> _initialize_magic_numbers(){
^~~~~~~~~~~~
/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.conda/conda-env/bob.io.image_1486677680645/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/include/boost/integer.hpp:136:10: note: template is declared here
struct uint_t : public boost::detail::exact_unsigned_base_helper<Bits>
^
/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.conda/conda-env/bob.io.image_1486677680645/work/bob.io.image-2.2.0/bob/io/image/cpp/image.cpp:14:68: error: expected a type
static std::map<std::string, std::vector<std::vector<std::uint8_t>>> _initialize_magic_numbers(){
^
/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.conda/conda-env/bob.io.image_1486677680645/work/bob.io.image-2.2.0/bob/io/image/cpp/image.cpp:16:49: error: no template named 'uint8_t' in namespace 'std'; did you mean 'boost::uint_t'?
std::map<std::string, std::vector<std::vector<std::uint8_t>>> magic_numbers;
^~~~~~~~~~~~
boost::uint_t
/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.conda/conda-env/bob.io.image_1486677680645/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/include/boost/integer.hpp:136:10: note: 'boost::uint_t' declared here
struct uint_t : public boost::detail::exact_unsigned_base_helper<Bits>
^
/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.conda/conda-env/bob.io.image_1486677680645/work/bob.io.image-2.2.0/bob/io/image/cpp/image.cpp:16:49: error: use of class template 'std::uint_t' requires template arguments
std::map<std::string, std::vector<std::vector<std::uint8_t>>> magic_numbers;
^~~~~~~~~~~~
/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.conda/conda-env/bob.io.image_1486677680645/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/include/boost/integer.hpp:136:10: note: template is declared here
struct uint_t : public boost::detail::exact_unsigned_base_helper<Bits>
^
/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.conda/conda-env/bob.io.image_1486677680645/work/bob.io.image-2.2.0/bob/io/image/cpp/image.cpp:16:63: error: expected a type
std::map<std::string, std::vector<std::vector<std::uint8_t>>> magic_numbers;
^
/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.conda/conda-env/bob.io.image_1486677680645/work/bob.io.image-2.2.0/bob/io/image/cpp/image.cpp:16:65: error: C++ requires a type specifier for all declarations
std::map<std::string, std::vector<std::vector<std::uint8_t>>> magic_numbers;
^~~~~~~~~~~~~
/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.conda/conda-env/bob.io.image_1486677680645/work/bob.io.image-2.2.0/bob/io/image/cpp/image.cpp:54:54: error: no template named 'uint8_t' in namespace 'std'; did you mean 'boost::uint_t'?
static std::map<std::string, std::vector<std::vector<std::uint8_t>>> known_magic_numbers = _initialize_magic_numbers();
^~~~~~~~~~~~
boost::uint_t
/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.conda/conda-env/bob.io.image_1486677680645/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/include/boost/integer.hpp:136:10: note: 'boost::uint_t' declared here
struct uint_t : public boost::detail::exact_unsigned_base_helper<Bits>
^
/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.conda/conda-env/bob.io.image_1486677680645/work/bob.io.image-2.2.0/bob/io/image/cpp/image.cpp:54:54: error: use of class template 'std::uint_t' requires template arguments
static std::map<std::string, std::vector<std::vector<std::uint8_t>>> known_magic_numbers = _initialize_magic_numbers();
^~~~~~~~~~~~
/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.conda/conda-env/bob.io.image_1486677680645/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/include/boost/integer.hpp:136:10: note: template is declared here
struct uint_t : public boost::detail::exact_unsigned_base_helper<Bits>
^
/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.conda/conda-env/bob.io.image_1486677680645/work/bob.io.image-2.2.0/bob/io/image/cpp/image.cpp:54:68: error: expected a type
static std::map<std::string, std::vector<std::vector<std::uint8_t>>> known_magic_numbers = _initialize_magic_numbers();
^
/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.conda/conda-env/bob.io.image_1486677680645/work/bob.io.image-2.2.0/bob/io/image/cpp/image.cpp:60:17: error: no matching constructor for initialization of 'std::ifstream' (aka 'basic_ifstream<char>')
std::ifstream f(image_name);
^ ~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1/fstream:465:7: note: candidate constructor not viable: no known conversion from 'const std::string' (aka 'const basic_string<char>') to 'const char *' for 1st argument
basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1/bits/fstream.tcc:894:25: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const std::string' (aka 'const basic_string<char>') to 'const std::basic_ifstream<char>' for 1st argument
extern template class basic_ifstream<char>;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1/fstream:451:7: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
basic_ifstream() : __istream_type(), _M_filebuf()
^
11 errors generated.
make[2]: *** [CMakeFiles/bob_io_image.dir/Users/buildbot/work/gitlab-ci/f6f95b82/0/bob/bob.conda/conda-env/bob.io.image_1486677680645/work/bob.io.image-2.2.0/bob/io/image/cpp/image.cpp.o] Error 1
make[1]: *** [CMakeFiles/bob_io_image.dir/all] Error 2
make: *** [all] Error 2
error: CMake compilation stopped with an error; stopping ...
full log here: https://gitlab.idiap.ch/bob/bob.conda/builds/44658