Help compiling Super Mario 64 from source code

I tried compiling the source code with my own legally dumped rom and with Raspberry Pi settings and got a .arm file, but when i try to open it I get “vertex shader compilation failed” on the terminal.
I also tried compiling it with OpenGL 2.1 and 1.3 but I get the exact same error.

which OS ? what is your lima & mesa version ?

lima got some limitations, try use latest one, along with mesa

i’m using @javelinface’s DEOT image build 200626.
edit: i ran glxgears -info and what i got was

GL_VERSION = 2.1 Mesa 20.0.0-devel (git-2d971cc1ca)
GL_VENDOR = lima

and then all of the GL_EXTENSIONS

edit 2: i managed to compile it in standard linux mode and got a .f3dex2e file. if i try to run it through ssh i get “segmentation fault” on the terminal, and if open it with Dingux Commander it says “required gl extensions are not supported”. do you know if that’s a driver or hardware thing? because maybe it is possible to actually run it.