I think I am *starting* to understand this.
Commenting that line disables the sse function of the earlier error (making that fix possibly irrelevant?) and replaces it with math:: from streflop_cond.h. (or I am an idiot...)
Code: Select all
In file included from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/vector3.inl:49:0,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/types.h:497,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/Logger.hpp:47,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/DefaultLogger.hpp:46,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:135,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/home/odroid/Downloads/spring_103.0/rts/System/FastMath.h:18:38: error: ‘float math::sqrt(float)’ conflicts with a previous declaration
#define _const __attribute__((const))
^
/home/odroid/Downloads/spring_103.0/rts/System/FastMath.h:280:22: note: in expansion of macro ‘_const’
float sqrt(float x) _const;
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:115,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/usr/include/c++/5/cmath:482:3: note: previous declaration ‘constexpr float std::sqrt(float)’
sqrt(float __x)
^
In file included from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/texture.h:73:0,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/scene.h:49,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:138,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/./Compiler/pushpack1.h:28:61: warning: ‘gcc_struct’ attribute directive ignored [-Wattributes]
# define PACK_STRUCT __attribute__ ((gcc_struct, __packed__))
^
/home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/texture.h:106:3: note: in expansion of macro ‘PACK_STRUCT’
} PACK_STRUCT;
^
In file included from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/material.h:483:0,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/scene.h:53,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:138,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/./Compiler/pushpack1.h:28:61: warning: ‘gcc_struct’ attribute directive ignored [-Wattributes]
# define PACK_STRUCT __attribute__ ((gcc_struct, __packed__))
^
/home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/material.h:527:3: note: in expansion of macro ‘PACK_STRUCT’
} PACK_STRUCT;
^
In file included from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/types.h:499:0,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/Logger.hpp:47,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/DefaultLogger.hpp:46,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:135,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/quaternion.inl: In instantiation of ‘aiQuaterniont<TReal>::aiQuaterniont(const aiMatrix3x3t<TReal>&) [with TReal = float]’:
/home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:512:27: required from here
/home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/quaternion.inl:77:23: error: call of overloaded ‘sqrt(float&)’ is ambiguous
TReal s = math::sqrt( t) * static_cast<TReal>(2.0);
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:115,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/usr/include/c++/5/cmath:486:3: note: candidate: constexpr long double std::sqrt(long double)
sqrt(long double __x)
^
/usr/include/c++/5/cmath:482:3: note: candidate: constexpr float std::sqrt(float)
sqrt(float __x)
^
In file included from /usr/include/features.h:367:0,
from /usr/include/stdint.h:25,
from /usr/lib/gcc/arm-linux-gnueabihf/5/include/stdint.h:9,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:61,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/usr/include/arm-linux-gnueabihf/bits/mathcalls.h:156:1: note: candidate: double sqrt(double)
__MATHCALL (sqrt,, (_Mdouble_ __x));
^
In file included from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/vector3.inl:49:0,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/types.h:497,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/Logger.hpp:47,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/DefaultLogger.hpp:46,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:135,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/home/odroid/Downloads/spring_103.0/rts/System/FastMath.h:281:15: note: candidate: float math::sqrt(float)
inline float sqrt(float x) {
^
In file included from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/types.h:499:0,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/Logger.hpp:47,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/DefaultLogger.hpp:46,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:135,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/quaternion.inl:86:23: error: call of overloaded ‘sqrt(float)’ is ambiguous
TReal s = math::sqrt( static_cast<TReal>(1.0) + pRotMatrix.a1 - pRotMatrix.b2 - pRotMatrix.c3) * static_cast<TReal>(2.0);
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:115,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/usr/include/c++/5/cmath:486:3: note: candidate: constexpr long double std::sqrt(long double)
sqrt(long double __x)
^
/usr/include/c++/5/cmath:482:3: note: candidate: constexpr float std::sqrt(float)
sqrt(float __x)
^
In file included from /usr/include/features.h:367:0,
from /usr/include/stdint.h:25,
from /usr/lib/gcc/arm-linux-gnueabihf/5/include/stdint.h:9,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:61,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/usr/include/arm-linux-gnueabihf/bits/mathcalls.h:156:1: note: candidate: double sqrt(double)
__MATHCALL (sqrt,, (_Mdouble_ __x));
^
In file included from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/vector3.inl:49:0,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/types.h:497,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/Logger.hpp:47,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/DefaultLogger.hpp:46,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:135,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/home/odroid/Downloads/spring_103.0/rts/System/FastMath.h:281:15: note: candidate: float math::sqrt(float)
inline float sqrt(float x) {
^
In file included from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/types.h:499:0,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/Logger.hpp:47,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/DefaultLogger.hpp:46,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:135,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/quaternion.inl:95:23: error: call of overloaded ‘sqrt(float)’ is ambiguous
TReal s = math::sqrt( static_cast<TReal>(1.0) + pRotMatrix.b2 - pRotMatrix.a1 - pRotMatrix.c3) * static_cast<TReal>(2.0);
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:115,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/usr/include/c++/5/cmath:486:3: note: candidate: constexpr long double std::sqrt(long double)
sqrt(long double __x)
^
/usr/include/c++/5/cmath:482:3: note: candidate: constexpr float std::sqrt(float)
sqrt(float __x)
^
In file included from /usr/include/features.h:367:0,
from /usr/include/stdint.h:25,
from /usr/lib/gcc/arm-linux-gnueabihf/5/include/stdint.h:9,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:61,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/usr/include/arm-linux-gnueabihf/bits/mathcalls.h:156:1: note: candidate: double sqrt(double)
__MATHCALL (sqrt,, (_Mdouble_ __x));
^
In file included from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/vector3.inl:49:0,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/types.h:497,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/Logger.hpp:47,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/DefaultLogger.hpp:46,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:135,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/home/odroid/Downloads/spring_103.0/rts/System/FastMath.h:281:15: note: candidate: float math::sqrt(float)
inline float sqrt(float x) {
^
In file included from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/types.h:499:0,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/Logger.hpp:47,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/DefaultLogger.hpp:46,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:135,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/quaternion.inl:103:23: error: call of overloaded ‘sqrt(float)’ is ambiguous
TReal s = math::sqrt( static_cast<TReal>(1.0) + pRotMatrix.c3 - pRotMatrix.a1 - pRotMatrix.b2) * static_cast<TReal>(2.0);
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:115,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/usr/include/c++/5/cmath:486:3: note: candidate: constexpr long double std::sqrt(long double)
sqrt(long double __x)
^
/usr/include/c++/5/cmath:482:3: note: candidate: constexpr float std::sqrt(float)
sqrt(float __x)
^
In file included from /usr/include/features.h:367:0,
from /usr/include/stdint.h:25,
from /usr/lib/gcc/arm-linux-gnueabihf/5/include/stdint.h:9,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:61,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/usr/include/arm-linux-gnueabihf/bits/mathcalls.h:156:1: note: candidate: double sqrt(double)
__MATHCALL (sqrt,, (_Mdouble_ __x));
^
In file included from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/vector3.inl:49:0,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/types.h:497,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/Logger.hpp:47,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/DefaultLogger.hpp:46,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:135,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/home/odroid/Downloads/spring_103.0/rts/System/FastMath.h:281:15: note: candidate: float math::sqrt(float)
inline float sqrt(float x) {
^
In file included from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/types.h:497:0,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/Logger.hpp:47,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/DefaultLogger.hpp:46,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:135,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/vector3.inl: In instantiation of ‘TReal aiVector3t<TReal>::Length() const [with TReal = float]’:
/home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/vector3.inl:99:17: required from ‘aiVector3t<TReal>& aiVector3t<TReal>::Normalize() [with TReal = float]’
/home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/camera.h:191:51: required from here
/home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/vector3.inl:94:19: error: call of overloaded ‘sqrt(float)’ is ambiguous
return math::sqrt( SquareLength());
^
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:115,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/usr/include/c++/5/cmath:486:3: note: candidate: constexpr long double std::sqrt(long double)
sqrt(long double __x)
^
/usr/include/c++/5/cmath:482:3: note: candidate: constexpr float std::sqrt(float)
sqrt(float __x)
^
In file included from /usr/include/features.h:367:0,
from /usr/include/stdint.h:25,
from /usr/lib/gcc/arm-linux-gnueabihf/5/include/stdint.h:9,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:61,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/usr/include/arm-linux-gnueabihf/bits/mathcalls.h:156:1: note: candidate: double sqrt(double)
__MATHCALL (sqrt,, (_Mdouble_ __x));
^
In file included from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/vector3.inl:49:0,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/types.h:497,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/Logger.hpp:47,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/../include/assimp/DefaultLogger.hpp:46,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/AssimpPCH.h:135,
from /home/odroid/Downloads/spring_103.0/rts/lib/assimp/code/Assimp.cpp:45:
/home/odroid/Downloads/spring_103.0/rts/System/FastMath.h:281:15: note: candidate: float math::sqrt(float)
inline float sqrt(float x) {
^
rts/lib/assimp/code/CMakeFiles/assimp.dir/build.make:62: recipe for target 'rts/lib/assimp/code/CMakeFiles/assimp.dir/Assimp.cpp.o' failed
make[2]: *** [rts/lib/assimp/code/CMakeFiles/assimp.dir/Assimp.cpp.o] Error 1
CMakeFiles/Makefile2:512: recipe for target 'rts/lib/assimp/code/CMakeFiles/assimp.dir/all' failed
make[1]: *** [rts/lib/assimp/code/CMakeFiles/assimp.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Or do I take the hint and use the X86 version and give up on trying to make it work on ARM?