[LLVMdev] hello. seg faults on AMD64 linux

Wink Saville wink at saville.com
Sat Feb 11 13:12:28 PST 2006


Jeff Cohen wrote:
> There is no x86_64 code generator at this time.
>
I should have guessed, what was surprising was that it compiled and linked.

Anyway, I did stumble on a work around; I'm using ubuntu and googled 
around and found that there is ia32-libs-dev which allows for 
development of ia32 binaries on x86_64 systems. I installed it and then 
used the -m32 option when I compiled to native:

   gcc -m32 hello.bc -o hello.native

It worked!

Wink Saville




More information about the llvm-dev mailing list