[GH-ISSUE #242] Error in folly depends on cmake stage #148

Closed
opened 2026-10-26 09:45:58 +00:00 by bsakaguchi · 4 comments
Owner

Originally created by @MadNazgul on GitHub (Apr 15, 2025).
Original GitHub issue: https://github.com/deepseek-ai/3FS/issues/242

Dear developers,

I have error with folly depends on cmake stage

-- Setting FOLLY_USE_SYMBOLIZER: ON
-- Setting FOLLY_HAVE_ELF:
-- Setting FOLLY_HAVE_DWARF: FALSE
-- Performing Test FOLLY_CPP_ATOMIC_BUILTIN
-- Performing Test FOLLY_CPP_ATOMIC_BUILTIN - Failed
-- Performing Test FOLLY_CPP_ATOMIC_WITH_LIBATOMIC
-- Performing Test FOLLY_CPP_ATOMIC_WITH_LIBATOMIC - Failed
CMake Error at third_party/folly/CMake/folly-deps.cmake:218 (message):
  unable to link C++ std::atomic code: you may need to install GNU libatomic
Call Stack (most recent call first):
  third_party/folly/CMakeLists.txt:141 (include)

-- Configuring incomplete, errors occurred!
-- Cache values

Information about OS and compilers

$ uname -a
Linux workstation 5.14.0-427.13.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 30 18:22:29 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux

$ gcc --version
gcc (GCC) 12.3.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ clang --version
clang version 20.1.1
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/user/3fs/llvm-20.1.1/bin

Can I define the location of preinstalled folly package on cmake stage?

Originally created by @MadNazgul on GitHub (Apr 15, 2025). Original GitHub issue: https://github.com/deepseek-ai/3FS/issues/242 Dear developers, I have error with folly depends on cmake stage ``` -- Setting FOLLY_USE_SYMBOLIZER: ON -- Setting FOLLY_HAVE_ELF: -- Setting FOLLY_HAVE_DWARF: FALSE -- Performing Test FOLLY_CPP_ATOMIC_BUILTIN -- Performing Test FOLLY_CPP_ATOMIC_BUILTIN - Failed -- Performing Test FOLLY_CPP_ATOMIC_WITH_LIBATOMIC -- Performing Test FOLLY_CPP_ATOMIC_WITH_LIBATOMIC - Failed CMake Error at third_party/folly/CMake/folly-deps.cmake:218 (message): unable to link C++ std::atomic code: you may need to install GNU libatomic Call Stack (most recent call first): third_party/folly/CMakeLists.txt:141 (include) -- Configuring incomplete, errors occurred! -- Cache values ``` Information about OS and compilers ``` $ uname -a Linux workstation 5.14.0-427.13.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 30 18:22:29 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux $ gcc --version gcc (GCC) 12.3.0 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ clang --version clang version 20.1.1 Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /home/user/3fs/llvm-20.1.1/bin ``` Can I define the location of preinstalled folly package on cmake stage?
Author
Owner

@yueryoufeng commented on GitHub (Apr 16, 2025):

从报错是缺少libatomic-devel。我编译的时候也遇到这个问题,但是安装libatomic-devel之后还是会有这个报错。我把代码里这行message给注释了,编译没遇到相关的报错
你可以参考

<!-- gh-comment-id:2807960614 --> @yueryoufeng commented on GitHub (Apr 16, 2025): 从报错是缺少libatomic-devel。我编译的时候也遇到这个问题,但是安装libatomic-devel之后还是会有这个报错。我把代码里这行message给注释了,编译没遇到相关的报错 你可以参考
Author
Owner

@MadNazgul commented on GitHub (Apr 16, 2025):

Thank you! Its working for me!

<!-- gh-comment-id:2809291538 --> @MadNazgul commented on GitHub (Apr 16, 2025): Thank you! Its working for me!
Author
Owner

@Navacore commented on GitHub (Apr 20, 2025):

I don't know what they're accusing me of, please stop sending messages.

El mar, 15 de abr. de 2025 9:38 p. m., 月儿幽风 @.***>
escribió:

从报错是缺少libatomic-devel。我编译的时候也遇到这个问题,但是安装libatomic-devel之后还是会有这个报错。我把代码里这行message给注释了,编译没遇到相关的报错
你可以参考

—
Reply to this email directly, view it on GitHub
https://github.com/deepseek-ai/3FS/issues/242#issuecomment-2807960614,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BQ43KJORIGPOAZCYTNJU53D2ZWX7RAVCNFSM6AAAAAB3E46C7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMBXHE3DANRRGQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>
yueryoufeng left a comment (deepseek-ai/3FS#242)
https://github.com/deepseek-ai/3FS/issues/242#issuecomment-2807960614

从报错是缺少libatomic-devel。我编译的时候也遇到这个问题,但是安装libatomic-devel之后还是会有这个报错。我把代码里这行message给注释了,编译没遇到相关的报错
你可以参考

—
Reply to this email directly, view it on GitHub
https://github.com/deepseek-ai/3FS/issues/242#issuecomment-2807960614,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BQ43KJORIGPOAZCYTNJU53D2ZWX7RAVCNFSM6AAAAAB3E46C7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMBXHE3DANRRGQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

<!-- gh-comment-id:2817383040 --> @Navacore commented on GitHub (Apr 20, 2025): I don't know what they're accusing me of, please stop sending messages. El mar, 15 de abr. de 2025 9:38 p. m., 月儿幽风 ***@***.***> escribió: > > 从报错是缺少libatomic-devel。我编译的时候也遇到这个问题,但是安装libatomic-devel之后还是会有这个报错。我把代码里这行message给注释了,编译没遇到相关的报错 > 你可以参考 > > — > Reply to this email directly, view it on GitHub > <https://github.com/deepseek-ai/3FS/issues/242#issuecomment-2807960614>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/BQ43KJORIGPOAZCYTNJU53D2ZWX7RAVCNFSM6AAAAAB3E46C7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMBXHE3DANRRGQ> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.***> > *yueryoufeng* left a comment (deepseek-ai/3FS#242) > <https://github.com/deepseek-ai/3FS/issues/242#issuecomment-2807960614> > > > 从报错是缺少libatomic-devel。我编译的时候也遇到这个问题,但是安装libatomic-devel之后还是会有这个报错。我把代码里这行message给注释了,编译没遇到相关的报错 > 你可以参考 > > — > Reply to this email directly, view it on GitHub > <https://github.com/deepseek-ai/3FS/issues/242#issuecomment-2807960614>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/BQ43KJORIGPOAZCYTNJU53D2ZWX7RAVCNFSM6AAAAAB3E46C7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMBXHE3DANRRGQ> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.***> >
Author
Owner

@gaowayne commented on GitHub (Jun 3, 2026):

Thank you! Its working for me!

may I know how you fixed this with what build process, I suffer the same error now.

<!-- gh-comment-id:4608883438 --> @gaowayne commented on GitHub (Jun 3, 2026): > Thank you! Its working for me! may I know how you fixed this with what build process, I suffer the same error now.
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#148
No description provided.