/tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/tests/testStelSphereGeometry.cpp: In member function ‘void TestStelSphericalGeometry::testGreatCircleIntersection()’:
/tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/tests/testStelSphereGeometry.cpp:282:11: error: call of overloaded ‘Vector3(int)’ is ambiguous
Vec3d v(0);
^
In file included from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/StelVertexArray.hpp:23:0,
from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/OctahedronPolygon.hpp:23,
from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/StelSphereGeometry.hpp:23,
from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/tests/testStelSphereGeometry.hpp:25,
from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/tests/testStelSphereGeometry.cpp:20:
/tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/VecMath.hpp:645:19: note: candidate: Vector3<T>::Vector3(const T*) [with T = double]
template<class T> Vector3<T>::Vector3(const T* x)
^
/tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/VecMath.hpp:640:19: note: candidate: Vector3<T>::Vector3(T) [with T = double]
template<class T> Vector3<T>::Vector3(T x)
^
In file included from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/StelVertexArray.hpp:23:0,
from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/OctahedronPolygon.hpp:23,
from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/StelSphereGeometry.hpp:23,
from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/tests/testStelSphereGeometry.hpp:25,
from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/tests/testStelSphereGeometry.cpp:20:
/tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/VecMath.hpp:162:25: note: candidate: constexpr Vector3<double>::Vector3(const Vector3<double>&)
template<class T> class Vector3
^
/tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/VecMath.hpp:162:25: note: candidate: constexpr Vector3<double>::Vector3(Vector3<double>&&)
make[3]: *** [src/CMakeFiles/testStelSphereGeometry.dir/build.make:66: src/CMakeFiles/testStelSphereGeometry.dir/tests/testStelSphereGeometry.cpp.o] Error 1
make[3]: Leaving directory '/tmp/guix-build-stellarium-0.16.0.drv-0/build'
make[2]: *** [CMakeFiles/Makefile2:574: src/CMakeFiles/testStelSphereGeometry.dir/all] Error 2
make[2]: Leaving directory '/tmp/guix-build-stellarium-0.16.0.drv-0/build'
Easiest fix:
/tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/tests/testStelSphereGeometry.cpp:282:11: error: call of overloaded ‘Vector3(int)’ is ambiguous
Vec3d v(0.0);
^ replaced 0 by 0.0
Thanks for fix!
Could you write compiler info?