google / rune

Rune is a programming language developed to test ideas for improving security and efficiency.
Apache License 2.0
1.91k stars 46 forks source link

[SUP] hashValues fails to compile #31

Closed 0dminnimda closed 1 year ago

0dminnimda commented 1 year ago

I followed the "Compiling the Rune compiler" from the readme and it all finally compiled and didn't complain😅 Then I tried to run the tests and saw

/tmp/nullindirection-c4ad80.o: In function `hashValues':
/projects/rune/builtin/hashed.rn:17: undefined reference to `llvm.fshr.i64'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
./runl: line 6: ./errortests/nullindirection: No such file or directory
....
Passed: 39
Failed: 185

I tried to compile a hello world program I got the same error Also I found that by using -b flag program was able to compile


0dminnimda commented 1 year ago

Clang version 10

oh well, I straight up didn't see that 😅

0dminnimda commented 1 year ago

Well, in my case overriding clang (6.0.0) with clang-10 helped to solve the problem of the hello world program and Human program from the readme

A lot of tests still fail

Passed: 59
Failed: 165
0dminnimda commented 1 year ago

36 fixes the problem, now it's

Passed: 224
Failed: 0