簡體   English   中英

在Raspberry Pi / Raspbian上出現Clang錯誤?

[英]Clang on Raspberry Pi/Raspbian Error?

當我嘗試將clang作為C編譯器運行時,出現錯誤(我認為是鏈接器錯誤)

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)。

正如您基本上已經了解到的那樣,已安裝的鐺已經壞掉了。 如果您是通過軟件包管理器安裝的,請向分發軟件包的任何人投訴,因為他們顯然沒有費心測試。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM