1
我在我的Macbook上安装了llvm4eclipsecdt。每次我用LLVM(clang)创建一个新的C++ - Projekt作为构建环境时,我都会收到来自gcc(?)的错误消息。Eclipse CDT和LLVM与clang
llvm-ld -v -native -o test main.bc
Linking bitcode file 'main.bc'
Linked in file 'main.bc'
Generating Bitcode To test.bc
Generating Assembly With:
'/usr/bin/llc' '-x86-asm-syntax=att' '-o' 'test.s' 'test.bc'
Generating Native Executable With:
'/usr/bin/gcc' '-fno-strict-aliasing' '-O3' '-o' 'test' 'test.s'
test.s:28:Unknown pseudo-op: .cfi_startproc
test.s:39:Unknown pseudo-op: .cfi_endproc
llvm-ld:
Build error occurred, build is stopped
为什么llvm调用gcc?我无法在我的项目中找到有关GCC的任何设置。有谁知道如何解决这个问题?
它这样做是因为它使用llvm-ld。无论如何,它似乎太破碎了,例如默认llc的选项可能不能满足大多数需求。 – 2012-03-27 17:04:18