2012-03-26 106 views
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的任何設置。有誰知道如何解決這個問題?

回答

2

它調用gcc驅動程序從程序集生成目標文件。 LLVM已經爲此迭代了彙編器,所以我想llvm4eclipsecdt的東西太舊了。

+0

它這樣做是因爲它使用llvm-ld。無論如何,它似乎太破碎了,例如默認llc的選項可能不能滿足大多數需求。 – 2012-03-27 17:04:18