amiberry icon indicating copy to clipboard operation
amiberry copied to clipboard

Get amiberry to work with clang

Open solskogen opened this issue 2 years ago • 1 comments

For some reason, amiberry doesn't start emulation (amiberry crashes) when compiled with clang on Linux. Even though Amiberry on MacOS, which uses clang, works.

solskogen avatar Nov 15 '23 20:11 solskogen

Right now, the GUI shows up but crashes as soon as you try to start the emulator.

solskogen avatar Nov 15 '23 20:11 solskogen

Can we get some more specifics on this? E.g. how to set up an environment to recreate the problem, would be helpful :)

midwan avatar Feb 29 '24 20:02 midwan

Happens on both master (on the Pi) and preview (x86). Set CC to clang and CXX to clang++ and compile, and start amiberry.

solskogen avatar Mar 01 '24 07:03 solskogen

It works when JIT is disabled now. That's some progress (it's been a while since I tested it)

solskogen avatar Mar 01 '24 07:03 solskogen

The current status is that it crashes when JIT is enabled, due to an "unknown opcode". This sounds like a CLang-specific thing to me, in combination with the JIT implementation of course. Not sure it's worth the trouble to try and find out what exactly triggers this.

Or at least, I don't think it's worth it. If someone else comes along and helps with this, they are of course welcome. :)

midwan avatar Apr 05 '24 18:04 midwan