Descent3 icon indicating copy to clipboard operation
Descent3 copied to clipboard

[Build Failure]: fix "bad instruction 'int $3'" error on the Raspberry Pi 4 32 bit

Open fac3l3ss79 opened this issue 1 year ago • 3 comments

Build Version

v1.5

Operating System Environment

  • [ ] Microsoft Windows (32-bit)
  • [ ] Microsoft Windows (64-bit)
  • [ ] Mac OS X
  • [X] Linux (specify distribution and version below)

CPU Environment

  • [ ] x86 (32-bit Intel/AMD)
  • [ ] x86_64 (64-bit Intel/AMD)
  • [X] ARM (32-bit)
  • [ ] ARM64 (64-bit; sometimes called AArch64)
  • [ ] Other (RISC V, PPC...)

Description

For the game to compile in raspberry pi os 32 bit I had to change mveasm.cpp. In line 2060 I changed "#define int3 asm volatile("int $3");" to "#define int3". I did this to fix a "bad instruction 'int $3'" error on the Raspberry Pi 4

Regression Status

No response

Steps to Reproduce

No response

fac3l3ss79 avatar May 08 '24 12:05 fac3l3ss79

int $3 added by #272 works on x86 only, we should use a more portable version such as this one

Lgt2x avatar May 08 '24 12:05 Lgt2x

int $3 added by #272 works on x86 only, we should use a more portable version such as this one

We already have debugbreak in the ddbug module we can use.

jcoby avatar May 08 '24 13:05 jcoby

int $3 added by #272 works on x86 only, we should use a more portable version such as this one

We already have debugbreak in the ddbug module we can use.

oh that's right

Lgt2x avatar May 08 '24 13:05 Lgt2x

I believe this should be fixed since the merge of #354 into main. Can someone verify this?

pzychotic avatar Jun 21 '24 17:06 pzychotic

As for #308 , 32bit builds won't be fixed anymore. Use 64bit OS images if possible

Lgt2x avatar Aug 14 '24 18:08 Lgt2x