mirror of
https://github.com/deepseek-ai/3FS.git
synced 2026-11-05 00:47:47 +00:00
[GH-ISSUE #293] ubuntu20.04环境下编译报错 #178
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/3FS#178
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @project-lioner on GitHub (Jun 4, 2025).
Original GitHub issue: https://github.com/deepseek-ai/3FS/issues/293
执行cmake --build build -j 32,报错如下:
Checking whether the ASM compiler is GNU using "--version" did not match "(GNU assembler)|(GCC)|(Free Software Foundation)":
Ubuntu clang version 14.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Determining if the function ASN1_TIME_diff exists failed with the following output:
Change Dir: /home/wyl/3fs/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_21458/fast && /usr/bin/make -f CMakeFiles/cmTC_21458.dir/build.make CMakeFiles/cmTC_21458.dir/build
make[1]: 进入目录“/home/wyl/3fs/build/CMakeFiles/CMakeTmp”
Building C object CMakeFiles/cmTC_21458.dir/CheckFunctionExists.c.o
/usr/bin/clang-14 -D_GNU_SOURCE -DCHECK_FUNCTION_EXISTS=ASN1_TIME_diff -std=c++20 -fPIE -o CMakeFiles/cmTC_21458.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.16/Modules/CheckFu
nctionExists.c
error: invalid argument '-std=c++20' not allowed with 'C'
make[1]: *** [CMakeFiles/cmTC_21458.dir/build.make:66:CMakeFiles/cmTC_21458.dir/CheckFunctionExists.c.o] 错误 1
make[1]: 离开目录“/home/wyl/3fs/build/CMakeFiles/CMakeTmp”
make: *** [Makefile:121:cmTC_21458/fast] 错误 2
都是按照readme文档里面的步骤来的,大家有碰到过这种错误吗
@project-lioner commented on GitHub (Jun 5, 2025):
我执行了cmake --build build -j 1有详细的报错,发现是rust版本太低,升级之后重新执行就好了,之前一直以为是cmake的问题