Hi,
I'm trying to compile dolphin from scratch from github. I have started from fresh and cloned the repository and updates the submodules
I am getting this error (apologies for the paste)
[ 78%] Building CXX object Source/Core/Core/CMakeFiles/core.dir/IOS/USB/Bluetooth/BTReal.cpp.o
In file included from /usr/include/x86_64-linux-gnu/bits/socket.h:27,
from /usr/include/x86_64-linux-gnu/sys/socket.h:33,
from /usr/include/netinet/in.h:23,
from /media/ade/Temp/Build/dolphin/Source/Core/Core/NetworkCaptureLogger.h:15,
from /media/ade/Temp/Build/dolphin/Source/Core/Core/Debugger/PPCDebugInterface.h:13,
from /media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/PowerPC.h:15,
from /media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:10,
from /media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp:19:
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp: In member function ‘void CommonAsmRoutines::GenFrsqrte()’:
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:14:52: warning: ‘offsetof’ within non-standard-layout type ‘PowerPC:owerPCState’ is conditionally-supported [-Winvalid-offsetof]
14 | #define PPCSTATE_OFF(i) (static_cast<int>(offsetof(PowerPC:owerPCState, i)) - 0x80)
| ^
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:29:38: note: in expansion of macro ‘PPCSTATE_OFF’
29 | #define PPCSTATE(i) MDisp(RPPCSTATE, PPCSTATE_OFF(i))
| ^~~~~~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp:175:12: note: in expansion of macro ‘PPCSTATE’
175 | TEST(32, PPCSTATE(fpscr), Imm32(FPSCR_ZX));
| ^~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:14:52: warning: ‘offsetof’ within non-standard-layout type ‘PowerPC:owerPCState’ is conditionally-supported [-Winvalid-offsetof]
14 | #define PPCSTATE_OFF(i) (static_cast<int>(offsetof(PowerPC:owerPCState, i)) - 0x80)
| ^
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:29:38: note: in expansion of macro ‘PPCSTATE_OFF’
29 | #define PPCSTATE(i) MDisp(RPPCSTATE, PPCSTATE_OFF(i))
| ^~~~~~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp:177:10: note: in expansion of macro ‘PPCSTATE’
177 | OR(32, PPCSTATE(fpscr), Imm32(FPSCR_FX | FPSCR_ZX));
| ^~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:14:52: warning: ‘offsetof’ within non-standard-layout type ‘PowerPC:owerPCState’ is conditionally-supported [-Winvalid-offsetof]
14 | #define PPCSTATE_OFF(i) (static_cast<int>(offsetof(PowerPC:owerPCState, i)) - 0x80)
| ^
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:29:38: note: in expansion of macro ‘PPCSTATE_OFF’
29 | #define PPCSTATE(i) MDisp(RPPCSTATE, PPCSTATE_OFF(i))
| ^~~~~~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp:203:12: note: in expansion of macro ‘PPCSTATE’
203 | TEST(32, PPCSTATE(fpscr), Imm32(FPSCR_VXSQRT));
| ^~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:14:52: warning: ‘offsetof’ within non-standard-layout type ‘PowerPC:owerPCState’ is conditionally-supported [-Winvalid-offsetof]
14 | #define PPCSTATE_OFF(i) (static_cast<int>(offsetof(PowerPC:owerPCState, i)) - 0x80)
| ^
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:29:38: note: in expansion of macro ‘PPCSTATE_OFF’
29 | #define PPCSTATE(i) MDisp(RPPCSTATE, PPCSTATE_OFF(i))
| ^~~~~~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp:205:10: note: in expansion of macro ‘PPCSTATE’
205 | OR(32, PPCSTATE(fpscr), Imm32(FPSCR_FX | FPSCR_VXSQRT));
| ^~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp: In member function ‘void CommonAsmRoutines::GenFres()’:
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:14:52: warning: ‘offsetof’ within non-standard-layout type ‘PowerPC:owerPCState’ is conditionally-supported [-Winvalid-offsetof]
14 | #define PPCSTATE_OFF(i) (static_cast<int>(offsetof(PowerPC:owerPCState, i)) - 0x80)
| ^
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:29:38: note: in expansion of macro ‘PPCSTATE_OFF’
29 | #define PPCSTATE(i) MDisp(RPPCSTATE, PPCSTATE_OFF(i))
| ^~~~~~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp:277:12: note: in expansion of macro ‘PPCSTATE’
277 | TEST(32, PPCSTATE(fpscr), Imm32(FPSCR_ZX));
| ^~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:14:52: warning: ‘offsetof’ within non-standard-layout type ‘PowerPC:owerPCState’ is conditionally-supported [-Winvalid-offsetof]
14 | #define PPCSTATE_OFF(i) (static_cast<int>(offsetof(PowerPC:owerPCState, i)) - 0x80)
| ^
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:29:38: note: in expansion of macro ‘PPCSTATE_OFF’
29 | #define PPCSTATE(i) MDisp(RPPCSTATE, PPCSTATE_OFF(i))
| ^~~~~~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp:279:10: note: in expansion of macro ‘PPCSTATE’
279 | OR(32, PPCSTATE(fpscr), Imm32(FPSCR_FX | FPSCR_ZX));
| ^~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp: In member function ‘void CommonAsmRoutines::GenMfcr()’:
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:16:30: warning: ‘offsetof’ within non-standard-layout type ‘PowerPC:owerPCState’ is conditionally-supported [-Winvalid-offsetof]
16 | (static_cast<int>(offsetof(PowerPC:owerPCState, elem[0]) + \
| ^
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:31:41: note: in expansion of macro ‘PPCSTATE_OFF_ARRAY’
31 | #define PPCSTATE_CR(i) MDisp(RPPCSTATE, PPCSTATE_OFF_ARRAY(cr.fields, i))
| ^~~~~~~~~~~~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp:309:24: note: in expansion of macro ‘PPCSTATE_CR’
309 | MOV(64, R(cr_val), PPCSTATE_CR(i));
| ^~~~~~~~~~~
[ 79%] Building CXX object Source/Core/Core/CMakeFiles/core.dir/HW/GBACore.cpp.o
[ 79%] Building CXX object Source/Core/Core/CMakeFiles/core.dir/HW/SI/SI_DeviceGBAEmu.cpp.o
/media/ade/Temp/Build/dolphin/Source/Core/Core/HW/GBACore.cpp: In member function ‘HW::GBA::CoreInfo HW::GBA::Core::GetCoreInfo() const’:
/media/ade/Temp/Build/dolphin/Source/Core/Core/HW/GBACore.cpp:308:11: error: ‘struct mCore’ has no member named ‘currentVideoSize’
308 | m_core->currentVideoSize(m_core, &info.width, &info.height);
| ^~~~~~~~~~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/HW/GBACore.cpp: In member function ‘void HW::GBA::Core::SetVideoBuffer()’:
/media/ade/Temp/Build/dolphin/Source/Core/Core/HW/GBACore.cpp:395:11: error: ‘struct mCore’ has no member named ‘currentVideoSize’
395 | m_core->currentVideoSize(m_core, &width, &height);
| ^~~~~~~~~~~~~~~~
make[2]: *** [Source/Core/Core/CMakeFiles/core.dir/build.make:4220: Source/Core/Core/CMakeFiles/core.dir/HW/GBACore.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:1478: Source/Core/Core/CMakeFiles/core.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
could anybody help?
I'm trying to compile dolphin from scratch from github. I have started from fresh and cloned the repository and updates the submodules
I am getting this error (apologies for the paste)
[ 78%] Building CXX object Source/Core/Core/CMakeFiles/core.dir/IOS/USB/Bluetooth/BTReal.cpp.o
In file included from /usr/include/x86_64-linux-gnu/bits/socket.h:27,
from /usr/include/x86_64-linux-gnu/sys/socket.h:33,
from /usr/include/netinet/in.h:23,
from /media/ade/Temp/Build/dolphin/Source/Core/Core/NetworkCaptureLogger.h:15,
from /media/ade/Temp/Build/dolphin/Source/Core/Core/Debugger/PPCDebugInterface.h:13,
from /media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/PowerPC.h:15,
from /media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:10,
from /media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp:19:
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp: In member function ‘void CommonAsmRoutines::GenFrsqrte()’:
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:14:52: warning: ‘offsetof’ within non-standard-layout type ‘PowerPC:owerPCState’ is conditionally-supported [-Winvalid-offsetof]
14 | #define PPCSTATE_OFF(i) (static_cast<int>(offsetof(PowerPC:owerPCState, i)) - 0x80)
| ^
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:29:38: note: in expansion of macro ‘PPCSTATE_OFF’
29 | #define PPCSTATE(i) MDisp(RPPCSTATE, PPCSTATE_OFF(i))
| ^~~~~~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp:175:12: note: in expansion of macro ‘PPCSTATE’
175 | TEST(32, PPCSTATE(fpscr), Imm32(FPSCR_ZX));
| ^~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:14:52: warning: ‘offsetof’ within non-standard-layout type ‘PowerPC:owerPCState’ is conditionally-supported [-Winvalid-offsetof]
14 | #define PPCSTATE_OFF(i) (static_cast<int>(offsetof(PowerPC:owerPCState, i)) - 0x80)
| ^
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:29:38: note: in expansion of macro ‘PPCSTATE_OFF’
29 | #define PPCSTATE(i) MDisp(RPPCSTATE, PPCSTATE_OFF(i))
| ^~~~~~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp:177:10: note: in expansion of macro ‘PPCSTATE’
177 | OR(32, PPCSTATE(fpscr), Imm32(FPSCR_FX | FPSCR_ZX));
| ^~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:14:52: warning: ‘offsetof’ within non-standard-layout type ‘PowerPC:owerPCState’ is conditionally-supported [-Winvalid-offsetof]
14 | #define PPCSTATE_OFF(i) (static_cast<int>(offsetof(PowerPC:owerPCState, i)) - 0x80)
| ^
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:29:38: note: in expansion of macro ‘PPCSTATE_OFF’
29 | #define PPCSTATE(i) MDisp(RPPCSTATE, PPCSTATE_OFF(i))
| ^~~~~~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp:203:12: note: in expansion of macro ‘PPCSTATE’
203 | TEST(32, PPCSTATE(fpscr), Imm32(FPSCR_VXSQRT));
| ^~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:14:52: warning: ‘offsetof’ within non-standard-layout type ‘PowerPC:owerPCState’ is conditionally-supported [-Winvalid-offsetof]
14 | #define PPCSTATE_OFF(i) (static_cast<int>(offsetof(PowerPC:owerPCState, i)) - 0x80)
| ^
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:29:38: note: in expansion of macro ‘PPCSTATE_OFF’
29 | #define PPCSTATE(i) MDisp(RPPCSTATE, PPCSTATE_OFF(i))
| ^~~~~~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp:205:10: note: in expansion of macro ‘PPCSTATE’
205 | OR(32, PPCSTATE(fpscr), Imm32(FPSCR_FX | FPSCR_VXSQRT));
| ^~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp: In member function ‘void CommonAsmRoutines::GenFres()’:
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:14:52: warning: ‘offsetof’ within non-standard-layout type ‘PowerPC:owerPCState’ is conditionally-supported [-Winvalid-offsetof]
14 | #define PPCSTATE_OFF(i) (static_cast<int>(offsetof(PowerPC:owerPCState, i)) - 0x80)
| ^
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:29:38: note: in expansion of macro ‘PPCSTATE_OFF’
29 | #define PPCSTATE(i) MDisp(RPPCSTATE, PPCSTATE_OFF(i))
| ^~~~~~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp:277:12: note: in expansion of macro ‘PPCSTATE’
277 | TEST(32, PPCSTATE(fpscr), Imm32(FPSCR_ZX));
| ^~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:14:52: warning: ‘offsetof’ within non-standard-layout type ‘PowerPC:owerPCState’ is conditionally-supported [-Winvalid-offsetof]
14 | #define PPCSTATE_OFF(i) (static_cast<int>(offsetof(PowerPC:owerPCState, i)) - 0x80)
| ^
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:29:38: note: in expansion of macro ‘PPCSTATE_OFF’
29 | #define PPCSTATE(i) MDisp(RPPCSTATE, PPCSTATE_OFF(i))
| ^~~~~~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp:279:10: note: in expansion of macro ‘PPCSTATE’
279 | OR(32, PPCSTATE(fpscr), Imm32(FPSCR_FX | FPSCR_ZX));
| ^~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp: In member function ‘void CommonAsmRoutines::GenMfcr()’:
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:16:30: warning: ‘offsetof’ within non-standard-layout type ‘PowerPC:owerPCState’ is conditionally-supported [-Winvalid-offsetof]
16 | (static_cast<int>(offsetof(PowerPC:owerPCState, elem[0]) + \
| ^
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64PowerPCState.h:31:41: note: in expansion of macro ‘PPCSTATE_OFF_ARRAY’
31 | #define PPCSTATE_CR(i) MDisp(RPPCSTATE, PPCSTATE_OFF_ARRAY(cr.fields, i))
| ^~~~~~~~~~~~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp:309:24: note: in expansion of macro ‘PPCSTATE_CR’
309 | MOV(64, R(cr_val), PPCSTATE_CR(i));
| ^~~~~~~~~~~
[ 79%] Building CXX object Source/Core/Core/CMakeFiles/core.dir/HW/GBACore.cpp.o
[ 79%] Building CXX object Source/Core/Core/CMakeFiles/core.dir/HW/SI/SI_DeviceGBAEmu.cpp.o
/media/ade/Temp/Build/dolphin/Source/Core/Core/HW/GBACore.cpp: In member function ‘HW::GBA::CoreInfo HW::GBA::Core::GetCoreInfo() const’:
/media/ade/Temp/Build/dolphin/Source/Core/Core/HW/GBACore.cpp:308:11: error: ‘struct mCore’ has no member named ‘currentVideoSize’
308 | m_core->currentVideoSize(m_core, &info.width, &info.height);
| ^~~~~~~~~~~~~~~~
/media/ade/Temp/Build/dolphin/Source/Core/Core/HW/GBACore.cpp: In member function ‘void HW::GBA::Core::SetVideoBuffer()’:
/media/ade/Temp/Build/dolphin/Source/Core/Core/HW/GBACore.cpp:395:11: error: ‘struct mCore’ has no member named ‘currentVideoSize’
395 | m_core->currentVideoSize(m_core, &width, &height);
| ^~~~~~~~~~~~~~~~
make[2]: *** [Source/Core/Core/CMakeFiles/core.dir/build.make:4220: Source/Core/Core/CMakeFiles/core.dir/HW/GBACore.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:1478: Source/Core/Core/CMakeFiles/core.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
could anybody help?