hth313 / Calypsi-tool-chains

Overview of the Calypsi tool chain and open source support packages
16 stars 0 forks source link

Internal error while compiling xa assembler #7

Closed rebeccabuckingham closed 1 year ago

rebeccabuckingham commented 1 year ago

So, I'm trying to port the xa assembler to the 65816, because I need an assembler that can run natively on the '816.

Things start to work, but when compiling one of the files, the compiler crashes out with this error:

internal error: Translator/Compiler/EBK/ControlFlowOptimize.hs:(132,9)-(133,41): Non-exhaustive patterns in function go

Any idea what might be going on?

hth313 commented 1 year ago

That is a bug, I will need to look into it. What host platform do you use?

rebeccabuckingham commented 1 year ago

Hi! - I'm using Calypsi 3.6.10 on macOS 12.6.

Thank you!

hth313 commented 1 year ago

I will need a code example to reproduce the problem. It is OK if you send me the whole source file as I think it will need a large portion of the file to trigger the problem. You can perhaps generate preprocessor output using -E of that file so that it becomes a single file with the header files expanded in it.

hth313 commented 1 year ago

I would need a code example to reproduce this problem. You can compile with -E command line option to get a single preprocessed file.

hth313 commented 1 year ago

I believe this issues may have been corrected in the 3.6.12 release.