melonDS-emu / melonDS

DS emulator, sorta
https://melonds.kuribo64.net
GNU General Public License v3.0
2.98k stars 495 forks source link

Assertion failure on OpenBSD/i386 #1984

Closed bentley closed 4 months ago

bentley commented 4 months ago

This was reported on the OpenBSD mailing list by someone with i386 hardware:

FAILED: src/teakra/src/CMakeFiles/teakra.dir/test_generator.cpp.o
/pobj/melonds-0.9.5/bin/c++ -DARCHITECTURE_x86=1 -DMELONDS_VERSION=\"0.9.5\" -I/pobj/melonds-0.9.5/melonDS-0.9.5/src/teakra/src/../include -I/pobj/melonds-0.9.5/melonDS-0.9.5/src/teakra/src/. -O2 -pipe -DNDEBUG -std=c++17 -flto=thin -fPIC -Wall -Wextra -Wcast-qual -pedantic -pedantic-errors -Wfatal-errors -Wno-missing-braces -Wno-unused-parameter -pthread -MD -MT src/teakra/src/CMakeFiles/teakra.dir/test_generator.cpp.o -MF src/teakra/src/CMakeFiles/teakra.dir/test_generator.cpp.o.d -o src/teakra/src/CMakeFiles/teakra.dir/test_generator.cpp.o -c /pobj/melonds-0.9.5/melonDS-0.9.5/src/teakra/src/test_generator.cpp
In file included from /pobj/melonds-0.9.5/melonDS-0.9.5/src/teakra/src/test_generator.cpp:10:
/pobj/melonds-0.9.5/melonDS-0.9.5/src/teakra/src/./test.h:37:1: fatal error: static assertion failed due to requirement 'sizeof(TestCase) == 4312'
static_assert(sizeof(TestCase) == 4312);
^             ~~~~~~~~~~~~~~~~~~~~~~~~
/pobj/melonds-0.9.5/melonDS-0.9.5/src/teakra/src/./test.h:37:32: note: expression evaluates to '4308 == 4312'
static_assert(sizeof(TestCase) == 4312);
              ~~~~~~~~~~~~~~~~~^~~~~~~
1 error generated.

(Note: melonDS is fine on OpenBSD/amd64.)

nadiaholmquist commented 4 months ago

It's worth noting that we don't support 32-bit platforms past a "you can try compiling it and it may or may not work" basis. However, this looks like something that really shouldn't be happening.

nadiaholmquist commented 4 months ago

Try 21e2a876ec7392eb3d8d2c4d0f0aee5cd9a298f0

bentley commented 4 months ago

Thanks, that helped.