Bug 243364 - #include <atomic> leads to error: undefined symbol: __atomic_store
Summary: #include <atomic> leads to error: undefined symbol: __atomic_store
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.1-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-15 05:06 UTC by Yuri Victorovich
Modified: 2020-01-24 11:38 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer 2020-01-15 05:06:39 UTC
Testcase: https://raw.githubusercontent.com/STEllAR-GROUP/hpx/master/cmake/tests/cxx11_std_atomic.cpp

> $ c++ -o a ./work/hpx-1.3.0/cmake/tests/cxx11_std_atomic.cpp
> ld: error: undefined symbol: __atomic_store
> >>> referenced by cxx11_std_atomic.cpp
> >>>               /tmp/cxx11_std_atomic-83659e.o:(std::__1::__atomic_base<uint128_type, false>::store(uint128_type, std::__1::memory_order))
> 
> ld: error: undefined symbol: __atomic_load
> >>> referenced by cxx11_std_atomic.cpp
> >>>               /tmp/cxx11_std_atomic-83659e.o:(std::__1::__atomic_base<uint128_type, false>::load(std::__1::memory_order) const)
> c++: error: linker command failed with exit code 1 (use -v to see invocation)

12.0-STABLE r347548