tomhrr / dale

Lisp-flavoured C
BSD 3-Clause "New" or "Revised" License
1.02k stars 48 forks source link

Doesn't Build on Apple Silicon #212

Closed BracketMaster closed 2 years ago

BracketMaster commented 2 years ago

I attempted a build and encountered:

Unable to create execution engine: No available targets are compatible with triple "aarch64-apple-darwin20.5.0"
make[2]: *** [libarithmetic.so] Abort trap: 6
make[1]: *** [CMakeFiles/arithmetic.dir/all] Error 2
make: *** [all] Error 2

Can I disable libarithmetic somehow?

tomhrr commented 2 years ago

Thanks for this report.

Can I disable libarithmetic somehow?

The problem doesn't appear to be specific to libarithmetic, unfortunately.

I'm not sure why the target issue is happening, but even if it weren't, there are parts of the code that assume either an x86 or x86-64 platform, so it may be that it doesn't work properly on ARM anyway. I'll see about having a more in-depth look at this over the next week or so.

BracketMaster commented 2 years ago

Yeah, it'd be great to get Dale working on Raspberry Pi and friends. I really like the Dale language.

tomhrr commented 2 years ago

Issues so far (testing on AWS, Amazon Linux):

The first two are simple enough, but the third is a bit more complicated. It may be that further changes are required for Darwin, too. Will post updates here as they happen.

tomhrr commented 2 years ago

The gh-212-arm64-apple branch builds and passes tests on an M1, so this should be fine now.