Hi,
I’m trying to compile crystal for aarch64, but I seem to be doing something wrong, although I’m following the same process I use to cross compile crystal for the raspberryPI (armv6k instead of aarch64)
mavu 0.31.1 … 3 ~ repo crystal ./bin/crystal build src/compiler/crystal.cr \
--cross-compile --target aarch64-unknown-linux-gnu -s\
-D without_openssl -D without_zlib --error-trace
Parse: 00:00:00.000069590 ( 0.25MB)
Semantic (top level): 00:00:00.479664284 ( 107.45MB)
Semantic (new): 00:00:00.003108121 ( 107.45MB)
Semantic (type declarations): 00:00:00.092128343 ( 107.45MB)
Semantic (abstract def check): 00:00:00.019240536 ( 107.45MB)
Semantic (ivars initializers): 00:00:05.091040222 ( 829.38MB)
Semantic (cvars initializers): 00:00:00.005494200 ( 829.38MB)
Semantic (main): 00:00:03.614841627 ( 943.38MB)
Semantic (cleanup): 00:00:00.150294416 ( 959.38MB)
Semantic (recursive struct check): 00:00:00.002595119 ( 959.38MB)
Codegen (crystal): 00:00:05.487782385 (1231.38MB)
Invalid memory access (signal 11) at address 0x20
[0x7f49017bdfc6] ???
[0x7f4901713f4e] ???
[0x7f490258b461] ???
This command works if I use “armv6k-unknown-linux-gnueabihf” as target instead.
Any ideas?
Should I make a bug report?