2012-11-11 73 views
2

當我嘗試運行鐺作爲我的C語言編譯器,我得到一個錯誤(我想鏈接錯誤)Clang on Raspberry Pi/Raspbian Error?

Compilation started at Sun Nov 11 14:34:55 

make -k 
clang -std=c99 -ggdb -o0 -Wall -Werror helloworld.c -o helloworld 
clang: warning: unknown platform, assuming -mfloat-abi=soft 
/usr/bin/ld: cannot find crt1.o: No such file or directory 
/usr/bin/ld: cannot find crti.o: No such file or directory 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 
make: *** [helloworld] Error 1 

Compilation exited abnormally with code 2 at Sun Nov 11 14:34:56 

其實我重新安裝了Raspbian形象思維,問題會消失,但它仍然存在。 Raspbian版本是最新的Raspbian Wheezy硬式浮動ABI(2012-10-28)。

回答

4

正如你基本上已經知道,安裝的鐺是無法破解的。如果你是通過軟件包管理器安裝它的,那麼就向分發軟件包的人抱怨,因爲他們顯然沒有打擾到它的測試。