[cfe-dev] Can't compile using -O4 option

Anton Korobeynikov anton at korobeynikov.info
Sun Oct 30 15:35:39 PDT 2011


> what i'm doing wrong? I'm trying to compile "hello world"[1], clang throws:
> $ COMPILER_PATH="/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/" clang a.c
> -L/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/ -O4
> /tmp/a-2eDXZa.o: file not recognized: File format not recognized
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
You're using linker which does not support linking of LLVM IR.

This: http://llvm.org/docs/GoldPlugin.html might help.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the cfe-dev mailing list