linux - Raspberry Pi/Raspbian 上的 Clang 错误?

标签 linux linker debian clang raspberry-pi

当我尝试运行 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)。

最佳答案

正如您基本上已经发现的那样,安装的 clang 已无法使用地损坏。如果您通过包管理器安装了它,请向分发该包的人提示,因为他们显然没有费心测试它。

关于linux - Raspberry Pi/Raspbian 上的 Clang 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13334813/

相关文章:

python - 创建包含 python 程序的 rpm

c - 将子程序链接到主文件时出现问题

linux - 如何创建像 debian 安装程序一样简单的命令行 UI?

linux - VirtualBox 中的开发机器 - (Debian-min vs ArchLinux vs recommend-one)

python - 在 Python 中按 IP 地址对标准输出进行排序

linux - 查找和 sed 在 centos 7 中不起作用

linux - 为什么 Logstash 在 Linux 中从文件中重新加载重复数据?

c++ - 正确使用cpp中的定义宏替换函数的名称

delphi - 为什么使用 $L 指令链接的目标文件的顺序很重要?

linux - Apache '-k start' 在 Debian 上失败