Skip to content

Instantly share code, notes, and snippets.

@dilworks
Created April 28, 2019 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dilworks/a7a0e4aafcf072328f6f5019a8bfb58d to your computer and use it in GitHub Desktop.
Save dilworks/a7a0e4aafcf072328f6f5019a8bfb58d to your computer and use it in GitHub Desktop.
Dolphin build error log on Debian Stable
[ 64%] Building CXX object Source/Core/Core/CMakeFiles/core.dir/HW/WiimoteEmu/Camera.cpp.o
/home/tomman/workbench/dolphin-emu/Source/Core/Core/HW/WiimoteEmu/Camera.cpp: In member function ‘void WiimoteEmu::CameraLogic::Update(const Common::Matrix44&, bool)’:
/home/tomman/workbench/dolphin-emu/Source/Core/Core/HW/WiimoteEmu/Camera.cpp:105:36: error: call to non-constexpr function ‘constexpr std::array<_Tp, _Nm>::size_type std::array<_Tp, _Nm>::size() const [with _Tp = Common::TVec3<float>; long unsigned int _Nm = 2ul; std::array<_Tp, _Nm>::size_type = long unsigned int]’
std::array<CameraPoint, leds.size()> camera_points;
~~~~~~~~~^~
In file included from /home/tomman/workbench/dolphin-emu/Source/Core/Common/ChunkFile.h:16:0,
from /home/tomman/workbench/dolphin-emu/Source/Core/Core/HW/WiimoteEmu/Camera.h:7,
from /home/tomman/workbench/dolphin-emu/Source/Core/Core/HW/WiimoteEmu/Camera.cpp:5:
/usr/include/c++/6/array:171:7: note: ‘constexpr std::array<_Tp, _Nm>::size_type std::array<_Tp, _Nm>::size() const [with _Tp = Common::TVec3<float>; long unsigned int _Nm = 2ul; std::array<_Tp, _Nm>::size_type = long unsigned int]’ is not usable as a constexpr function because:
size() const noexcept { return _Nm; }
^~~~
/usr/include/c++/6/array:171:7: error: enclosing class of constexpr non-static member function ‘constexpr std::array<_Tp, _Nm>::size_type std::array<_Tp, _Nm>::size() const [with _Tp = Common::TVec3<float>; long unsigned int _Nm = 2ul; std::array<_Tp, _Nm>::size_type = long unsigned int]’ is not a literal type
/usr/include/c++/6/array:90:12: note: ‘std::array<Common::TVec3<float>, 2ul>’ is not literal because:
struct array
^~~~~
/usr/include/c++/6/array:106:56: note: non-static data member ‘std::array<Common::TVec3<float>, 2ul>::_M_elems’ has non-literal type
typename _AT_Type::_Type _M_elems;
^~~~~~~~
/home/tomman/workbench/dolphin-emu/Source/Core/Core/HW/WiimoteEmu/Camera.cpp:105:36: error: call to non-constexpr function ‘constexpr std::array<_Tp, _Nm>::size_type std::array<_Tp, _Nm>::size() const [with _Tp = Common::TVec3<float>; long unsigned int _Nm = 2ul; std::array<_Tp, _Nm>::size_type = long unsigned int]’
std::array<CameraPoint, leds.size()> camera_points;
~~~~~~~~~^~
/home/tomman/workbench/dolphin-emu/Source/Core/Core/HW/WiimoteEmu/Camera.cpp:105:38: note: in template argument for type ‘long unsigned int’
std::array<CameraPoint, leds.size()> camera_points;
^
/home/tomman/workbench/dolphin-emu/Source/Core/Core/HW/WiimoteEmu/Camera.cpp:107:58: error: request for member ‘begin’ in ‘camera_points’, which is of non-class type ‘int’
std::transform(leds.begin(), leds.end(), camera_points.begin(), [&](auto& v) {
^~~~~
/home/tomman/workbench/dolphin-emu/Source/Core/Core/HW/WiimoteEmu/Camera.cpp:137:50: error: request for member ‘size’ in ‘camera_points’, which is of non-class type ‘int’
for (std::size_t i = 0; i != camera_points.size() / 2; ++i)
^~~~
/home/tomman/workbench/dolphin-emu/Source/Core/Core/HW/WiimoteEmu/Camera.cpp:141:45: error: invalid types ‘int[std::size_t {aka long unsigned int}]’ for array subscript
const auto& p1 = camera_points[i * 2];
^
/home/tomman/workbench/dolphin-emu/Source/Core/Core/HW/WiimoteEmu/Camera.cpp:147:49: error: invalid types ‘int[std::size_t {aka long unsigned int}]’ for array subscript
const auto& p2 = camera_points[i * 2 + 1];
^
/home/tomman/workbench/dolphin-emu/Source/Core/Core/HW/WiimoteEmu/Camera.cpp:157:50: error: request for member ‘size’ in ‘camera_points’, which is of non-class type ‘int’
for (std::size_t i = 0; i != camera_points.size(); ++i)
^~~~
/home/tomman/workbench/dolphin-emu/Source/Core/Core/HW/WiimoteEmu/Camera.cpp:159:40: error: invalid types ‘int[std::size_t {aka long unsigned int}]’ for array subscript
const auto& p = camera_points[i];
^
/home/tomman/workbench/dolphin-emu/Source/Core/Core/HW/WiimoteEmu/Camera.cpp:178:50: error: request for member ‘size’ in ‘camera_points’, which is of non-class type ‘int’
for (std::size_t i = 0; i != camera_points.size(); ++i)
^~~~
/home/tomman/workbench/dolphin-emu/Source/Core/Core/HW/WiimoteEmu/Camera.cpp:180:40: error: invalid types ‘int[std::size_t {aka long unsigned int}]’ for array subscript
const auto& p = camera_points[i];
^
Source/Core/Core/CMakeFiles/core.dir/build.make:1830: fallo en las instrucciones para el objetivo 'Source/Core/Core/CMakeFiles/core.dir/HW/WiimoteEmu/Camera.cpp.o'
make[2]: *** [Source/Core/Core/CMakeFiles/core.dir/HW/WiimoteEmu/Camera.cpp.o] Error 1
make[2]: *** Se espera a que terminen otras tareas....
CMakeFiles/Makefile2:1099: fallo en las instrucciones para el objetivo 'Source/Core/Core/CMakeFiles/core.dir/all'
make[1]: *** [Source/Core/Core/CMakeFiles/core.dir/all] Error 2
Makefile:151: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment