[Bug 243364] #include <atomic> leads to error: undefined symbol: __atomic_store

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jan 15 05:06:40 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243364

            Bug ID: 243364
           Summary: #include <atomic> leads to error: undefined symbol:
                    __atomic_store
           Product: Base System
           Version: 12.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: yuri at freebsd.org

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

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list