Hello everybody,
So I am having some problems with llvm. When I’ve tried a lot of times to run and re-install the llvm, but the same error appears, so:
esbox@embedded2i:~/llvm/projects/teste$ llvm-gcc hello.c -o hello
esbox@embedded2i:~/llvm/projects/teste$ ls
hello hello.c
esbox@embedded2i:~/llvm/projects/teste$ ./hello
Hello World
esbox@embedded2i:~/llvm/projects/teste$ llvm-gcc -O3 -emit-llvm hello.c -c -o hello.bc
esbox@embedded2i:~/llvm/projects/teste$ ls
hello hello.bc hello.c
esbox@embedded2i:~/llvm/projects/teste$ lli hello.bc
Error loading program ‘hello.bc’: Invalid bytecode signature: DEC04342 (Vers=0, Pos=4)
esbox@embedded2i:~/llvm/projects/teste$ llvm-dis < hello.bc[
bash: hello.bc[: No such file or directory
esbox@embedded2i:~/llvm/projects/teste$ llvm-dis < hello.bc
llvm-dis: Invalid bytecode signature: DEC04342 (Vers=0, Pos=4)
Some weeks ago i talked to someone at #LLVM and he told me that versions of llvm and gcc aren’t sycronized. But i don’t know how to do this.
some helps???
thanks
italo