繁体   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