[GH-ISSUE #293] ubuntu20.04环境下编译报错 #178

Closed
opened 2026-10-26 09:46:39 +00:00 by bsakaguchi · 1 comment
Owner

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文档里面的步骤来的,大家有碰到过这种错误吗

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文档里面的步骤来的,大家有碰到过这种错误吗
Author
Owner

@project-lioner commented on GitHub (Jun 5, 2025):

我执行了cmake --build build -j 1有详细的报错,发现是rust版本太低,升级之后重新执行就好了,之前一直以为是cmake的问题

<!-- gh-comment-id:2943033410 --> @project-lioner commented on GitHub (Jun 5, 2025): 我执行了cmake --build build -j 1有详细的报错,发现是rust版本太低,升级之后重新执行就好了,之前一直以为是cmake的问题
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/3FS#178
No description provided.