[Bug 261401] science/helfem: Fails to find std::swap-related symbols

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 22 Jan 2022 09:26:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261401

            Bug ID: 261401
           Summary: science/helfem: Fails to find std::swap-related
                    symbols
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: yuri@freebsd.org

science/helfem fails only on CURRENT.

This code appears to trigger the failure:
>       double Phi_general(unsigned int n, double Xi, double xi) {
>         if(Xi < xi)
>           std::swap(Xi,xi);

Error:
> /usr/local/bin/ld: CMakeFiles/helfem.dir/src/erfc_expn.cpp.o: in function `helfem::atomic::erfc_expn::Phi_general(unsigned int, double, double)':
> erfc_expn.cpp:(.text+0x3b): undefined reference to `std::__1::enable_if<is_move_constructible<double>::value&&is_move_assignable<double>::value, void>::type std::__1::swap<double>(double&, double&)'
> /usr/local/bin/ld: CMakeFiles/helfem.dir/src/erfc_expn.cpp.o: in function `helfem::atomic::erfc_expn::Phi_short(unsigned int, double, double)':
> erfc_expn.cpp:(.text+0x969): undefined reference to `std::__1::enable_if<is_move_constructible<double>::value&&is_move_assignable<double>::value, void>::type std::__1::swap<double>(double&, double&)'
> /usr/local/bin/ld: CMakeFiles/helfem.dir/src/erfc_expn.cpp.o: in function `helfem::atomic::erfc_expn::Phi(unsigned int, double, double)':
> erfc_expn.cpp:(.text+0xac4): undefined reference to `std::__1::enable_if<is_move_constructible<double>::value&&is_move_assignable<double>::value, void>::type std::__1::swap<double>(double&, double&)'
> /usr/local/bin/ld: libhelfem.so: hidden symbol `_ZNSt3__14swapIdEENS_9enable_ifIXaasr21is_move_constructibleIT_EE5valuesr18is_move_assignableIS2_EE5valueEvE4typeERS2_S5_' isn't defined
> /usr/local/bin/ld: final link failed: bad value


Log:
http://beefy18.nyi.freebsd.org/data/main-amd64-default/pd48577352169_s7406ec4ea9/logs/helfem-g20210912_2.log

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