[llvm-bugs] [Bug 48973] New: libstdc++ 5.3.1: fail to build with "call to implicitly-deleted copy constructor of 'RTLsTy'"

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jan 31 05:39:21 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=48973

            Bug ID: 48973
           Summary: libstdc++ 5.3.1: fail to build with "call to
                    implicitly-deleted copy constructor of 'RTLsTy'"
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: Runtime Library
          Assignee: unassignedbugs at nondot.org
          Reporter: sylvestre at debian.org
                CC: llvm-bugs at lists.llvm.org

$ cd
"/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/build-llvm/tools/clang/stage2-bins/projects/openmp/libomptarget/src"
&&
"/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/build-llvm/./bin/clang++"
-DOMPTARGET_PROFILE_ENABLED -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I"/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/build-llvm/tools/clang/stage2-bins/projects/openmp/libomptarget/src"
-I"/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/openmp/libomptarget/src"
-I"/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/build-llvm/tools/clang/stage2-bins/include"
-I"/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/llvm/include"
-I"/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/openmp/libomptarget/include"
-fuse-ld=gold -fPIC -Wno-unused-command-line-argument
-Wno-unknown-warning-option -fPIC -fvisibility-inlines-hidden -Werror=date-time
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic
-Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default
-Wno-class-memaccess -Wno-noexcept-type -Wnon-virtual-dtor
-Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion
-ffunction-sections -fdata-sections -Wall -Wcast-qual -Wformat-pedantic
-Wimplicit-fallthrough -Wsign-compare -Wno-extra -Wno-pedantic
-Wno-maybe-uninitialized -std=gnu++14 -O2 -DNDEBUG -g1 -fPIC  -fno-exceptions
-std=c++14 -o CMakeFiles/omptarget.dir/interface.cpp.o -c
"/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/openmp/libomptarget/src/interface.cpp"


In file included from
/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/openmp/libomptarget/src/interface.cpp:14:
In file included from
/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/openmp/libomptarget/src/device.h:19:
In file included from
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/map:61:
In file included from
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/bits/stl_map.h:63:
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/tuple:115:4:
error: call to implicitly-deleted copy constructor of 'RTLsTy'
        : _M_head_impl(std::forward<_UHead>(__h)) { }
          ^            ~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/tuple:369:9:
note: in instantiation of function template specialization 'std::_Head_base<1,
RTLsTy, false>::_Head_base<RTLsTy>' requested here
      : _Base(std::forward<_Head>(_M_head(__in))) { }
        ^
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/tuple:221:9:
note: in instantiation of member function 'std::_Tuple_impl<1,
RTLsTy>::_Tuple_impl' requested here
      : _Inherited(std::move(_M_tail(__in))), 
        ^
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/tuple:617:17:
note: in instantiation of member function 'std::_Tuple_impl<0,
std::_Mem_fn<void (RTLsTy::*)()>, RTLsTy>::_Tuple_impl' requested here
      constexpr tuple(tuple&&) = default;
                ^
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/functional:1514:7:
note: in defaulted move constructor for 'std::tuple<std::_Mem_fn<void
(RTLsTy::*)()>, RTLsTy>' first required here
      _Bind_simple(_Bind_simple&&) = default;
      ^
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/mutex:726:30:
note: in defaulted move constructor for 'std::_Bind_simple<std::_Mem_fn<void
(RTLsTy::*)()> (RTLsTy)>' first required here
      auto __bound_functor = std::__bind_simple(std::forward<_Callable>(__f),
                             ^
/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/openmp/libomptarget/src/interface.cpp:97:8:
note: in instantiation of function template specialization 'std::call_once<void
(RTLsTy::*)(), RTLsTy &>' requested here
  std::call_once(PM->RTLs.initFlag, &RTLsTy::LoadRTLs, PM->RTLs);
       ^
/build/llvm-toolchain-12-12.0.0~++20210131094250+07dc51637cc4/openmp/libomptarget/src/rtl.h:126:18:
note: copy constructor of 'RTLsTy' is implicitly deleted because field
'initFlag' has a deleted copy constructor
  std::once_flag initFlag;
                 ^
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/mutex:689:5:
note: 'once_flag' has been explicitly marked deleted here
    once_flag(const once_flag&) = delete;
    ^

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210131/4d62ebb1/attachment.html>


More information about the llvm-bugs mailing list