Bernhard Übelacker <bernha...@mailbox.org> writes: > Dear Maintainer, > I tried to reproduce inside a minimal Buster i386 qemu VM > and received also an "Illegal instruction" message. > > It looks like it tries to execute an AVX instruction that > my CPU should support, but is not enabled inside the VM. > > The usage of AVX might originate from the compiler > flag "-march=native". > This might be added in configure.ac, lines 149 or 163.
To clarify: - line 149 is for a target architecture matching “x86_64-*-linux*” - line 163 is for a target architecture matching “*-*-linux*” In both cases, using “-march=native” seems like a wrong thing to use. <https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html> states clearly: Using -march=native enables all instruction subsets supported by the local machine (hence the result might not run on different machines). > The solution could be to just add this configure flag: > -CONF_O=--bindir=/usr/games --disable-silent-rules --enable-speech > +CONF_O=--bindir=/usr/games --disable-silent-rules --enable-speech > --enable-generic-architecture > > Then these flags get used instead: > -mtune=generic -mfpmath=sse -msse -msse2 > Do these also violate the i386 Buster baseline? > > Kind regards, > Bernhard I have re-built the Debian package according to those instructions and it seems to work on my machine … Then again, I suspect this would also have been the case if I just had rebuilt the package – due to “native” architecture choice. It now gives an entirely different error message: ; cd /usr/share/games/freespace2-open/ && fs2_open ERROR: " Web cursor bitmap not found. This is most likely due to one of three reasons: 1) You're running FreeSpace Open from somewhere other than your FreeSpace 2 folder; 2) You've somehow corrupted your FreeSpace 2 installation, e.g. by modifying or removing the retail VP files; 3) You haven't installed FreeSpace 2 at all. (Note that installing FreeSpace Open does NOT remove the need for a FreeSpace 2 installation.) Number 1 can be fixed by simply moving the FreeSpace Open executable file to the FreeSpace 2 folder. Numbers 2 and 3 can be fixed by installing or reinstalling FreeSpace 2." at graphics/2d.cpp:1079 AL lib: (EE) alc_cleanup: 1 device not closed I definitely have not installed FreeSpace 2 content, so I expect this.