Qt Build for RK3066 is failing
-
Hello Everyone,
I am new to Qt and trying to build it to my embedded linux board (it has Ubuntu 14.04 on it). I've spent more than two days trying to solve it but I have no luck, I've never seen the error I am getting anywhere else.
My configuration is:
./configure -release -opengl es2 -device linux-rk3066-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -sysroot /home/zslevi/mars -prefix /usr/local/qt5
This runs without any error.
Then when I try to run make it throws this error after a while:
make[3]: Entering directory '/home/zslevi/Downloads/qt-everywhere-opensource-src-5.6.2/qtbase/src/corelib' perl /home/zslevi/Downloads/qt-everywhere-opensource-src-5.6.2/qtbase/mkspecs/features/data/unix/findclasslist.pl < QtCore.version.in > QtCore.version arm-linux-gnueabihf-g++ -pipe -march=armv7-a -mtune=cortex-a9 -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=hard --sysroot=/home/zslevi/mars -pthread -I/home/zslevi/mars/usr/include/glib-2.0 -I/home/zslevi/mars/usr/lib/arm-linux-gnueabihf/glib-2.0/include -O3 -O3 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_DYNAMIC_LIBRARY -DQT_NO_LIBUDEV -DQT_NO_LIBINPUT -DQT_NO_USING_NAMESPACE -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I. -Iglobal -I../3rdparty/pcre -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I../3rdparty/forkfd -I../../include -I../../include/QtCore -I../../include/QtCore/5.6.2 -I../../include/QtCore/5.6.2/QtCore -I.moc -isystem /home/zslevi/mars/usr/include -isystem /home/zslevi/mars/usr/include/mysql -isystem /home/zslevi/mars/usr/include/c++/4.8 -I/home/zslevi/mars/usr/local/tslib/include -I../../mkspecs/devices/linux-rk3066-g++ -x c++-header -c global/qt_pch.h -o .pch/Qt5Core.gch/c++ In file included from /home/zslevi/mars/usr/include/math.h:69:0, from /home/zslevi/mars/usr/include/c++/4.8/cmath:44, from /home/zslevi/mars/usr/include/c++/4.8/random:38, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:63:16: error: expected constructor, destructor, or type conversion before ‘(’ token __MATHCALL_VEC (cos,, (_Mdouble_ __x)); ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:65:16: error: expected constructor, destructor, or type conversion before ‘(’ token __MATHCALL_VEC (sin,, (_Mdouble_ __x)); ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:81:22: error: ‘sincos’ has not been declared __MATHDECL_VEC (void,sincos,, ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:81:29: error: expected identifier before ‘,’ token __MATHDECL_VEC (void,sincos,, ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:82:3: error: expected identifier before ‘(’ token (_Mdouble_ __x, _Mdouble_ *__sinx, _Mdouble_ *__cosx)); ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:82:57: error: expected constructor, destructor, or type conversion before ‘;’ token (_Mdouble_ __x, _Mdouble_ *__sinx, _Mdouble_ *__cosx)); ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:100:16: error: expected constructor, destructor, or type conversion before ‘(’ token __MATHCALL_VEC (exp,, (_Mdouble_ __x)); ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:109:16: error: expected constructor, destructor, or type conversion before ‘(’ token __MATHCALL_VEC (log,, (_Mdouble_ __x)); ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:153:16: error: expected constructor, destructor, or type conversion before ‘(’ token __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y)); ^ In file included from /home/zslevi/mars/usr/include/math.h:88:0, from /home/zslevi/mars/usr/include/c++/4.8/cmath:44, from /home/zslevi/mars/usr/include/c++/4.8/random:38, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:63:16: error: expected constructor, destructor, or type conversion before ‘(’ token __MATHCALL_VEC (cos,, (_Mdouble_ __x)); ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:65:16: error: expected constructor, destructor, or type conversion before ‘(’ token __MATHCALL_VEC (sin,, (_Mdouble_ __x)); ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:81:22: error: ‘sincos’ has not been declared __MATHDECL_VEC (void,sincos,, ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:81:29: error: expected identifier before ‘,’ token __MATHDECL_VEC (void,sincos,, ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:82:3: error: expected identifier before ‘(’ token (_Mdouble_ __x, _Mdouble_ *__sinx, _Mdouble_ *__cosx)); ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:82:57: error: expected constructor, destructor, or type conversion before ‘;’ token (_Mdouble_ __x, _Mdouble_ *__sinx, _Mdouble_ *__cosx)); ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:100:16: error: expected constructor, destructor, or type conversion before ‘(’ token __MATHCALL_VEC (exp,, (_Mdouble_ __x)); ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:109:16: error: expected constructor, destructor, or type conversion before ‘(’ token __MATHCALL_VEC (log,, (_Mdouble_ __x)); ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:153:16: error: expected constructor, destructor, or type conversion before ‘(’ token __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y)); ^ In file included from /home/zslevi/mars/usr/include/math.h:132:0, from /home/zslevi/mars/usr/include/c++/4.8/cmath:44, from /home/zslevi/mars/usr/include/c++/4.8/random:38, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:63:16: error: expected constructor, destructor, or type conversion before ‘(’ token __MATHCALL_VEC (cos,, (_Mdouble_ __x)); ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:65:16: error: expected constructor, destructor, or type conversion before ‘(’ token __MATHCALL_VEC (sin,, (_Mdouble_ __x)); ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:81:22: error: ‘sincos’ has not been declared __MATHDECL_VEC (void,sincos,, ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:81:29: error: expected identifier before ‘,’ token __MATHDECL_VEC (void,sincos,, ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:82:3: error: expected identifier before ‘(’ token (_Mdouble_ __x, _Mdouble_ *__sinx, _Mdouble_ *__cosx)); ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:82:57: error: expected constructor, destructor, or type conversion before ‘;’ token (_Mdouble_ __x, _Mdouble_ *__sinx, _Mdouble_ *__cosx)); ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:100:16: error: expected constructor, destructor, or type conversion before ‘(’ token __MATHCALL_VEC (exp,, (_Mdouble_ __x)); ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:109:16: error: expected constructor, destructor, or type conversion before ‘(’ token __MATHCALL_VEC (log,, (_Mdouble_ __x)); ^ /usr/arm-linux-gnueabihf/include/bits/mathcalls.h:153:16: error: expected constructor, destructor, or type conversion before ‘(’ token __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y)); ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:38:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/cmath:199:11: error: ‘::cos’ has not been declared using ::cos; ^ /home/zslevi/mars/usr/include/c++/4.8/cmath:237:11: error: ‘::exp’ has not been declared using ::exp; ^ /home/zslevi/mars/usr/include/c++/4.8/cmath:353:11: error: ‘::log’ has not been declared using ::log; ^ /home/zslevi/mars/usr/include/c++/4.8/cmath:403:11: error: ‘::pow’ has not been declared using ::pow; ^ /home/zslevi/mars/usr/include/c++/4.8/cmath:440:11: error: ‘::sin’ has not been declared using ::sin; ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:50:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/bits/random.h: In member function ‘void std::geometric_distribution<_IntType>::param_type::_M_initialize()’: /home/zslevi/mars/usr/include/c++/4.8/bits/random.h:4041:36: error: call of overloaded ‘log(double)’ is ambiguous { _M_log_1_p = std::log(1.0 - _M_p); } ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:38:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/cmath:357:3: note: candidate: constexpr float std::log(float) log(float __x) ^ /home/zslevi/mars/usr/include/c++/4.8/cmath:361:3: note: candidate: constexpr long double std::log(long double) log(long double __x) ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:52:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/bits/random.tcc: In member function ‘void std::poisson_distribution<_IntType>::param_type::_M_initialize()’: /home/zslevi/mars/usr/include/c++/4.8/bits/random.tcc:1401:32: error: call of overloaded ‘log(double&)’ is ambiguous _M_lm_thr = std::log(_M_mean); ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:38:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/cmath:357:3: note: candidate: constexpr float std::log(float) log(float __x) ^ /home/zslevi/mars/usr/include/c++/4.8/cmath:361:3: note: candidate: constexpr long double std::log(long double) log(long double __x) ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:52:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/bits/random.tcc:1407:22: error: call of overloaded ‘log(double)’ is ambiguous / __pi_4)); ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:38:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/cmath:357:3: note: candidate: constexpr float std::log(float) log(float __x) ^ /home/zslevi/mars/usr/include/c++/4.8/cmath:361:3: note: candidate: constexpr long double std::log(long double) log(long double __x) ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:52:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/bits/random.tcc:1413:55: error: call of overloaded ‘exp(double&)’ is ambiguous _M_c2b = std::sqrt(__pi_4 * __cx) * std::exp(_M_1cx); ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:38:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/cmath:241:3: note: candidate: constexpr float std::exp(float) exp(float __x) ^ /home/zslevi/mars/usr/include/c++/4.8/cmath:245:3: note: candidate: constexpr long double std::exp(long double) exp(long double __x) ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:52:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/bits/random.tcc:1414:63: error: call of overloaded ‘exp(double)’ is ambiguous _M_cb = 2 * __cx * std::exp(-_M_d * _M_1cx * (1 + _M_d / 2)) ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:38:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/cmath:241:3: note: candidate: constexpr float std::exp(float) exp(float __x) ^ /home/zslevi/mars/usr/include/c++/4.8/cmath:245:3: note: candidate: constexpr long double std::exp(long double) exp(long double __x) ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:52:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/bits/random.tcc:1419:31: error: call of overloaded ‘exp(double)’ is ambiguous _M_lm_thr = std::exp(-_M_mean); ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:38:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/cmath:241:3: note: candidate: constexpr float std::exp(float) exp(float __x) ^ /home/zslevi/mars/usr/include/c++/4.8/cmath:245:3: note: candidate: constexpr long double std::exp(long double) exp(long double __x) ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:52:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/bits/random.tcc: In member function ‘void std::binomial_distribution<_IntType>::param_type::_M_initialize()’: /home/zslevi/mars/usr/include/c++/4.8/bits/random.tcc:1615:33: error: call of overloaded ‘log(double)’ is ambiguous / (81 * __pi_4 * __1p))); ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:38:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/cmath:357:3: note: candidate: constexpr float std::log(float) log(float __x) ^ /home/zslevi/mars/usr/include/c++/4.8/cmath:361:3: note: candidate: constexpr long double std::log(long double) log(long double __x) ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:52:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/bits/random.tcc:1627:25: error: call of overloaded ‘exp(double&)’ is ambiguous _M_a1 = std::exp(_M_c) * _M_s1 * __spi_2; ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:38:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/cmath:241:3: note: candidate: constexpr float std::exp(float) exp(float __x) ^ /home/zslevi/mars/usr/include/c++/4.8/cmath:245:3: note: candidate: constexpr long double std::exp(long double) exp(long double __x) ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:52:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/bits/random.tcc:1632:48: error: call of overloaded ‘exp(double)’ is ambiguous * std::exp(-_M_d1 * _M_d1 / (2 * __s1s))); ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:38:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/cmath:241:3: note: candidate: constexpr float std::exp(float) exp(float __x) ^ /home/zslevi/mars/usr/include/c++/4.8/cmath:245:3: note: candidate: constexpr long double std::exp(long double) exp(long double __x) ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:52:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/bits/random.tcc:1635:44: error: call of overloaded ‘exp(double)’ is ambiguous * std::exp(-_M_d2 * _M_d2 / (2 * __s2s))); ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:38:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/cmath:241:3: note: candidate: constexpr float std::exp(float) exp(float __x) ^ /home/zslevi/mars/usr/include/c++/4.8/cmath:245:3: note: candidate: constexpr long double std::exp(long double) exp(long double __x) ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:52:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/bits/random.tcc:1638:34: error: call of overloaded ‘log(double)’ is ambiguous _M_lp1p = std::log(__pa / __1p); ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:38:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/cmath:357:3: note: candidate: constexpr float std::log(float) log(float __x) ^ /home/zslevi/mars/usr/include/c++/4.8/cmath:361:3: note: candidate: constexpr long double std::log(long double) log(long double __x) ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:52:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/bits/random.tcc:1640:46: error: call of overloaded ‘log(double)’ is ambiguous _M_q = -std::log(1 - (__p12 - __pa) / __1p); ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:38:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/cmath:357:3: note: candidate: constexpr float std::log(float) log(float __x) ^ /home/zslevi/mars/usr/include/c++/4.8/cmath:361:3: note: candidate: constexpr long double std::log(long double) log(long double __x) ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:52:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/bits/random.tcc:1644:28: error: call of overloaded ‘log(double)’ is ambiguous _M_q = -std::log(1 - __p12); ^ In file included from /home/zslevi/mars/usr/include/c++/4.8/random:38:0, from /home/zslevi/mars/usr/include/c++/4.8/bits/stl_algo.h:65, from /home/zslevi/mars/usr/include/c++/4.8/algorithm:62, from global/qglobal.h:88, from global/qt_pch.h:50: /home/zslevi/mars/usr/include/c++/4.8/cmath:357:3: note: candidate: constexpr float std::log(float) log(float __x) ^ /home/zslevi/mars/usr/include/c++/4.8/cmath:361:3: note: candidate: constexpr long double std::log(long double) log(long double __x) ^ Makefile:1818: recipe for target '.pch/Qt5Core.gch/c++' failed make[3]: *** [.pch/Qt5Core.gch/c++] Error 1 make[3]: Leaving directory '/home/zslevi/Downloads/qt-everywhere-opensource-src-5.6.2/qtbase/src/corelib' Makefile:194: recipe for target 'sub-corelib-make_first' failed make[2]: *** [sub-corelib-make_first] Error 2 make[2]: Leaving directory '/home/zslevi/Downloads/qt-everywhere-opensource-src-5.6.2/qtbase/src' Makefile:45: recipe for target 'sub-src-make_first' failed make[1]: *** [sub-src-make_first] Error 2 make[1]: Leaving directory '/home/zslevi/Downloads/qt-everywhere-opensource-src-5.6.2/qtbase' Makefile:72: recipe for target 'module-qtbase-make_first' failed make: *** [module-qtbase-make_first] Error 2
I've mounted the boards root file system to /home/zslevi/mars using sshfs. I've tried several g++ versions, with like 5 different Qt versions (current one is 5.6.2) each version threw different errors though.
Had anyone run into the same issue? If so then could they solve it?I'd appreciate any help!
Edit: My laptop has Elementary OS on it (based on ubuntu 16.04) -- could this be the problem?