查看问题详情
编号 | 项目 | 分类 | 查看权限 | 报告日期 | 最后更新 |
---|---|---|---|---|---|
0000531 | Anolis OS 8 | - iso-images | public | 2021-11-15 10:57 | 2021-11-16 11:55 |
报告员 | Okiedokie | 分派给 | geliwei-ali | ||
优先级 | normal | 严重性 | minor | 出现频率 | always |
状态 | assigned | 处理状况 | open | ||
平台 | 龙芯 | 操作系统 | loongarch64 | ||
标题 | 0000531: [AnolisOS-8.4] [loongarch64] clang在编译时出现报错 | ||||
描述 | [root@localhost ttt]# clang helloworld.c -o helloworld /usr/bin/ld: cannot find crtbegin.o: No such file or directory /usr/bin/ld: cannot find -lgcc /usr/bin/ld: cannot find -lgcc_s clang-8: error: linker command failed with exit code 1 (use -v to see invocation) [root@localhost ttt]# uname -a Linux localhost.localdomain 4.19.190-2.1.an8.loongarch64 #1 SMP Tue Sep 28 06:19:17 UTC 2021 loongarch64 loongarch64 loongarch64 GNU/Linux [root@localhost ttt]# rpm -qa|grep strace strace-5.1-1.lns8.loongarch64 [root@localhost ttt]# rpm -qa|grep gcc gcc-8.3.0-24.1.an8.vec.loongarch64 libgcc-8.3.0-24.1.an8.vec.loongarch64 gcc-c++-8.3.0-24.1.an8.vec.loongarch64 [root@localhost ttt]# rpm -qa|grep clang clang-libs-8.0.1-1.1.lns8.loongarch64 clang-8.0.1-1.1.lns8.loongarch64 | ||||
问题重现步骤 | cat > helloworld.c << EOF #include <stdio.h> int main() { printf("Hello world\n"); return 0; } EOF clang helloworld.c -o helloworld ./helloworld | ||||
标签 | 没加标签. | ||||
日期 | 用户名 | 字段 | 更改 |
---|---|---|---|
2021-11-15 10:57 | Okiedokie | 新建问题 | |
2021-11-15 10:57 | Okiedokie | 状态 | 新建 => 已分配 |
2021-11-15 10:57 | Okiedokie | 分派给 | => geliwei-ali |
2021-11-15 15:35 | LoongsonHFD | 注释已添加: 0000705 | |
2021-11-16 11:55 | Okiedokie | 描述已修改 |