Yocto Rocko build errors

Issue #17 closed
Former user created an issue

I'm hitting errors building UncompressedFile.cpp in the Yocto Rocko environment. Env variables attached.

g++ --version g++ (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

which g++ /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/hosttools/g++

| /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp: In constructor 'Vector::BLF::UncompressedFile::UncompressedFile()': | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:44:39: warning: overflow in implicit constant conversion [-Woverflow] | m_defaultLogContainerSize(0x20000u) | ^ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:44:39: warning: overflow in implicit constant conversion [-Woverflow] | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp: In lambda function: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:70:18: error: ambiguous overload for 'operator+' (operand types are 'std::streampos {aka std::fpos<__mbstate_t>}' and 'const streamsize {aka const int}') | (m_tellg + n <= m_tellp) || | ~~^ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:70:18: note: candidate: operator+(std::streamoff {aka long long int}, std::streamsize {aka int}) <built-in> | In file included from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/iosfwd:40:0, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/system_error:40, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/std_mutex.h:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/condition_variable:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.h:26, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:22: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/postypes.h:178:7: note: candidate: std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = __mbstate_t; std::streamoff = long long int] | operator+(streamoff __off) const | ^~ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:71:18: error: ambiguous overload for 'operator+' (operand types are 'std::streampos {aka std::fpos<__mbstate_t>}' and 'const streamsize {aka const int}') | (m_tellg + n > m_fileSize); | ~~^ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:71:18: note: candidate: operator+(std::streamoff {aka long long int}, std::streamsize {aka int}) <built-in> | In file included from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/iosfwd:40:0, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/system_error:40, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/std_mutex.h:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/condition_variable:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.h:26, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:22: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/postypes.h:178:7: note: candidate: std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = __mbstate_t; std::streamoff = long long int] | operator+(streamoff __off) const | ^~ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp: In member function 'virtual void Vector::BLF::UncompressedFile::read(char, std::streamsize)': | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:75:17: error: ambiguous overload for 'operator+' (operand types are 'std::streampos {aka std::fpos<__mbstate_t>}' and 'std::streamsize {aka int}') | if (m_tellg + n > m_fileSize) { | ~~^ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:75:17: note: candidate: operator+(std::streamoff {aka long long int}, std::streamsize {aka int}) <built-in> | In file included from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/iosfwd:40:0, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/system_error:40, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/std_mutex.h:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/condition_variable:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.h:26, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:22: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/postypes.h:178:7: note: candidate: std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = __mbstate_t; std::streamoff = long long int] | operator+(streamoff __off) const | ^~ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:95:89: error: no matching function for call to 'min(std::streamsize&, std::streamoff)' | std::streamsize gcount = std::min(n, logContainer->uncompressedFileSize - offset); | ^ | In file included from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/char_traits.h:39:0, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/string:40, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/stdexcept:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/system_error:41, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/std_mutex.h:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/condition_variable:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.h:26, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:22: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/stl_algobase.h:195:5: note: candidate: template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&) | min(const _Tp& __a, const _Tp& __b) | ^ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/stl_algobase.h:195:5: note: template argument deduction/substitution failed: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:95:89: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'std::streamoff {aka long long int}') | std::streamsize gcount = std::min(n, logContainer->uncompressedFileSize - offset); | ^ | In file included from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/char_traits.h:39:0, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/string:40, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/stdexcept:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/system_error:41, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/std_mutex.h:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/condition_variable:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.h:26, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:22: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/stl_algobase.h:243:5: note: candidate: template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) | min(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/stl_algobase.h:243:5: note: template argument deduction/substitution failed: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:95:89: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'std::streamoff {aka long long int}') | std::streamsize gcount = std::min(n, logContainer->uncompressedFileSize - offset); | ^ | In file included from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/algorithm:62:0, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:24: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/stl_algo.h:3450:5: note: candidate: template<class _Tp> constexpr _Tp std::min(std::initializer_list<_Tp>) | min(initializer_list<_Tp> __l) | ^ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/stl_algo.h:3450:5: note: template argument deduction/substitution failed: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:95:89: note: mismatched types 'std::initializer_list<_Tp>' and 'int' | std::streamsize gcount = std::min(n, logContainer->uncompressedFileSize - offset); | ^ | In file included from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/algorithm:62:0, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:24: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/stl_algo.h:3456:5: note: candidate: template<class _Tp, class _Compare> constexpr _Tp std::min(std::initializer_list<_Tp>, _Compare) | min(initializer_list<_Tp> __l, _Compare __comp) | ^ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/stl_algo.h:3456:5: note: template argument deduction/substitution failed: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:95:89: note: mismatched types 'std::initializer_list<_Tp>' and 'int' | std::streamsize gcount = std::min(n, logContainer->uncompressedFileSize - offset); | ^ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp: In member function 'virtual void Vector::BLF::UncompressedFile::write(const char*, std::streamsize)': | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:164:49: error: ambiguous overload for 'operator+' (operand types are 'std::streampos {aka std::fpos<__mbstate_t>}' and 'std::streamsize {aka int}') | m_data.back()->filePosition + | ~~~~~~^ | static_cast<std::streamsize>(m_data.back()->uncompressedFileSize); | ~~~~~~~~~~~~~ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:164:49: note: candidate: operator+(std::streamoff {aka long long int}, std::streamsize {aka int}) <built-in> | In file included from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/iosfwd:40:0, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/system_error:40, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/std_mutex.h:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/condition_variable:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.h:26, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:22: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/postypes.h:178:7: note: candidate: std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = __mbstate_t; std::streamoff = long long int] | operator+(streamoff __off) const | ^~ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:174:82: error: no matching function for call to 'min(std::streamsize&, std::streamoff)' | uint32_t pcount = std::min(n, logContainer->uncompressedFileSize - offset); | ^ | In file included from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/char_traits.h:39:0, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/string:40, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/stdexcept:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/system_error:41, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/std_mutex.h:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/condition_variable:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.h:26, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:22: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/stl_algobase.h:195:5: note: candidate: template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&) | min(const _Tp& __a, const _Tp& __b) | ^ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/stl_algobase.h:195:5: note: template argument deduction/substitution failed: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:174:82: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'std::streamoff {aka long long int}') | uint32_t pcount = std::min(n, logContainer->uncompressedFileSize - offset); | ^ | In file included from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/char_traits.h:39:0, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/string:40, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/stdexcept:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/system_error:41, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/std_mutex.h:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/condition_variable:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.h:26, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:22: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/stl_algobase.h:243:5: note: candidate: template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) | min(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/stl_algobase.h:243:5: note: template argument deduction/substitution failed: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:174:82: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'std::streamoff {aka long long int}') | uint32_t pcount = std::min(n, logContainer->uncompressedFileSize - offset); | ^ | In file included from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/algorithm:62:0, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:24: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/stl_algo.h:3450:5: note: candidate: template<class _Tp> constexpr _Tp std::min(std::initializer_list<_Tp>) | min(initializer_list<_Tp> __l) | ^ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/stl_algo.h:3450:5: note: template argument deduction/substitution failed: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:174:82: note: mismatched types 'std::initializer_list<_Tp>' and 'int' | uint32_t pcount = std::min(n, logContainer->uncompressedFileSize - offset); | ^ | In file included from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/algorithm:62:0, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:24: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/stl_algo.h:3456:5: note: candidate: template<class _Tp, class _Compare> constexpr _Tp std::min(std::initializer_list<_Tp>, _Compare) | min(initializer_list<_Tp> __l, _Compare __comp) | ^ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/stl_algo.h:3456:5: note: template argument deduction/substitution failed: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:174:82: note: mismatched types 'std::initializer_list<_Tp>' and 'int' | uint32_t pcount = std::min(n, logContainer->uncompressedFileSize - offset); | ^ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp: In member function 'virtual void Vector::BLF::UncompressedFile::dropOldData()': | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:310:62: error: ambiguous overload for 'operator+' (operand types are 'std::streampos {aka std::fpos<__mbstate_t>}' and 'std::streamsize {aka int}') | std::streampos position = logContainer->filePosition + static_cast<std::streamsize>(logContainer->uncompressedFileSize); | ~~~~~^~~~~~~~~~~~~~ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:310:62: note: candidate: operator+(std::streamoff {aka long long int}, std::streamsize {aka int}) <built-in> | In file included from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/iosfwd:40:0, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/system_error:40, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/std_mutex.h:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/condition_variable:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.h:26, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:22: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/postypes.h:178:7: note: candidate: std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = __mbstate_t; std::streamoff = long long int] | operator+(streamoff __off) const | ^~ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp: In member function 'std::shared_ptr<Vector::BLF::LogContainer> Vector::BLF::UncompressedFile::logContainerContaining(std::streampos)': | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:344:52: error: ambiguous overload for 'operator+' (operand types are 'std::streampos {aka std::fpos<__mbstate_t>}' and 'std::streamsize {aka int}') | (pos < (logContainer->filePosition + static_cast<std::streamsize>(logContainer->uncompressedFileSize)))) { | ~~~~~^~~~~~~~~~~~~~ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:344:52: note: candidate: operator+(std::streamoff {aka long long int}, std::streamsize {aka int}) <built-in> | In file included from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/iosfwd:40:0, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/system_error:40, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/std_mutex.h:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/condition_variable:39, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.h:26, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:22: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/bits/postypes.h:178:7: note: candidate: std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = __mbstate_t; std::streamoff = long long int] | operator+(streamoff __off) const | ^~ | In file included from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.h:26:0, | from /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:22: | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/condition_variable: In instantiation of 'void std::condition_variable::wait(std::unique_lock<std::mutex>&, _Predicate) [with _Predicate = Vector::BLF::UncompressedFile::read(char, std::streamsize)::<lambda()>]': | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp:72:6: required from here | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/condition_variable:98:13: error: could not convert '__p.Vector::BLF::UncompressedFile::read(char, std::streamsize)::<lambda()>()' from 'void' to 'bool' | while (!__p()) | ~^~ | /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include/c++/7.3.0/condition_variable:98:9: error: in argument to unary ! | while (!__p()) | ^~ | src/Vector/BLF/CMakeFiles/Vector_BLF.dir/build.make:3161: recipe for target 'src/Vector/BLF/CMakeFiles/Vector_BLF.dir/UncompressedFile.cpp.o' failed | make[2]: ** [src/Vector/BLF/CMakeFiles/Vector_BLF.dir/UncompressedFile.cpp.o] Error 1

Comments (9)

  1. Joel Winarske

    Forgot this:

    cd /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/build/src/Vector/BLF && /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++ -DVector_BLF_EXPORTS -D_FORTIFY_SOURCE=2 -I/home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src -I/home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/build/src -I/home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot/usr/include -march=armv7ve -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0=/usr/src/debug/vector-blf/1.0-r0 -fdebug-prefix-map=/home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot= -fvisibility-inlines-hidden -march=armv7ve -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/recipe-sysroot -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -pedantic -Wl,-z,relro,-z,now -fstack-protector-strong -pthread -std=c++11 -o CMakeFiles/Vector_BLF.dir/UncompressedFile.cpp.o -c /home/hammer/edm_yocto/build-fb-pico-imx7/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/vector-blf/1.0-r0/git/src/Vector/BLF/UncompressedFile.cpp

  2. Tobias Lorenz repo owner

    Hi Joel, I expect that this is not an issue of Yocto/Poky or of the ARM target. I should be able to reproduce this under Debian 64-Bit with the same compiler gcc 7.4 and same compiler options. I guess, the more strict checks show up the issue here as well. Bye Tobias

  3. Tobias Lorenz repo owner

    The issue was not reproducible just with the gcc-7 and gcc-8 compilers on a normal Debian system. So I set up a BitBake environment today using the setup at https://github.com/TechNexion/edm-yocto-bsp and configured it for

    DISPLAY=hdmi DISTRO=fsl-imx-fb MACHINE=pico-imx7 source edm-setup-release.sh -b build-fb-pico-imx7
    

    The BitBake recipe (vector-blf_2.1.5.bb) looks like this:

    DESCRIPTION = "Vector BLF"
    LICENSE = "GPLv3"
    LIC_FILES_CHKSUM = "file://LICENSE.GPL-3.0;md5=d32239bcb673463ab874e80d47fae504"
    DEPENDS = "boost zlib"
    
    SRC_URI = "file://src"
    
    S = "${WORKDIR}/src"
    
    inherit cmake
    
    PACKAGECONFIG ??= ""
    PACKAGECONFIG[run-doxygen] = "-DOPTION_RUN_DOXYGEN=ON,-DOPTION_RUN_DOXYGEN=OFF,doxygen,"
    PACKAGECONFIG[run-cccc] = "-DOPTION_RUN_CCCC=ON,-DOPTION_RUN_CCCC=OFF,cccc,"
    PACKAGECONFIG[run-cppcheck] = "-DOPTION_RUN_CPPCHECK=ON,-DOPTION_RUN_CPPCHECK=OFF,cppcheck,"
    PACKAGECONFIG[build-examples] = "-DOPTION_BUILD_EXAMPLES=ON,-DOPTION_BUILD_EXAMPLES=OFF,,"
    PACKAGECONFIG[build-tests] = "-DOPTION_BUILD_TESTS=ON,-DOPTION_BUILD_TESTS=OFF,,"
    PACKAGECONFIG[use-gcov] = "-DOPTION_USE_GCOV=ON,-DOPTION_USE_GCOV=OFF,,"
    PACKAGECONFIG[use-gprof] = "-DOPTION_USE_GPROF=ON,-DOPTION_USE_GPROF=OFF,,"
    PACKAGECONFIG[add-lcov] = "-DOPTION_ADD_LCOV=ON,-DOPTION_ADD_LCOV=OFF,lcov,"
    

    I used the packageconfigs to switch off all additional compile options. I haven’t tested yet, whether it would work, when switched on.

    Now I’m able to reproduce the issue. And it seems it’s a problem of arithmetic between std::streamsize, std::streamoff and it’s counterpart std::streampos.

  4. Tobias Lorenz repo owner

    I pushed two commits into the master branch. With them, compilation works successfully in the BitBake environment. Can you confirm it?

    The Yocto environment comes with an old cmake version 3.8, so I had to do some changes to the CMakeLists.txt, which I’m not going to push. If needed I can add this as patch in the BitBake meta-layer.

  5. Joel Winarske

    Hi Tobias, your changes work!

    I’m patching CMakeLists.txt with:

    cmake_minimum_required(VERSION 3.8.2)

    project(Vector_BLF VERSION 2.1.5 LANGUAGES CXX)

    set(THREADS_PTHREAD_ARG "0" CACHE STRING "Result from TRY_RUN" FORCE)

    I notice you’re not using $PROJECT_DESCRIPTION, so these two changes should be safe for all:

    cmake_minimum_required(VERSION 3.8.2)

    project(Vector_BLF VERSION 2.1.5 LANGUAGES CXX)

  6. Tobias Lorenz repo owner

    Hi Joel,

    great. Then I’ll set this to solved.

    I patched the CMakeLists.txt in a similar way. This can either be added as patch to BitBake meta layer, or by actual changing the CMakeLists.txt in my git repo.

    Normally I have a line

    set(CPACK_PACKAGE_DESCRIPTION ${PROJECT_DESCRIPTION})
    

    in my CMakeLists.txt files. I seem to have missed this here. But that’s why I like to keep the PROJECT_DESCRIPTION as is.

    Bye, Tobias

  7. Log in to comment