I want to use Nimrod with Clang backend and face a couple of problems:
1. during ./build.sh, I got:
0xa6e62c0: i32 = Constant<0> [ORD=839] [ID=2]
0xa673070: i32 = Constant<31> [ID=23]
Seems like Clang bug though, so I go back to gcc at this step.
2. during koch boot -d:release (koch generated with Clang OK), compilation goes fine until linking. I got:
clang -c -w -O3 -I/media/Sources/nimrod-0.9.0/lib -o compiler/nimcache/passaux.o compiler/nimcache/passaux.c clang -c -w -O3 -I/media/Sources/nimrod-0.9.0/lib -o compiler/nimcache/depends.o compiler/nimcache/depends.c clang -c -w -O3 -I/media/Sources/nimrod-0.9.0/lib -o compiler/nimcache/docgen2.o compiler/nimcache/docgen2.c clang -c -w -O3 -I/media/Sources/nimrod-0.9.0/lib -o compiler/nimcache/parseopt.o compiler/nimcache/parseopt.c Error: execution of an external program failed FAILURE
going back to gcc shows that after this is indeed linking step.
Any idea to make it work? I want to use Clang since it's much faster than gcc but can generate comparable code.
My platform:
Hint: depends [Processing]
Hint: docgen2 [Processing]
Hint: parseopt [Processing]
0xa927be0: i32 = Constant<0> [ORD=833] [ID=2]
0xa908278: i32 = Constant<31> [ID=23]
Error: execution of an external program failed
FAILURE