Skip to content

build failure with GCC14 #256

@prusnak

Description

@prusnak

line here should set C++ standard to 14 instead of 11

set(CMAKE_CXX_STANDARD 11)

otherwise the CUDA build fails with

/nix/store/il0r2x1l03qjda9nxva18c1mjsqggcn9-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "__is_nothrow_new_constructible" is not a function or static data member
      constexpr bool __is_nothrow_new_constructible
                     ^

/nix/store/il0r2x1l03qjda9nxva18c1mjsqggcn9-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "constexpr" is not valid here
      constexpr bool __is_nothrow_new_constructible
      ^

/nix/store/il0r2x1l03qjda9nxva18c1mjsqggcn9-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "__is_nothrow_new_constructible" is not a function or static data member
      constexpr bool __is_nothrow_new_constructible
                     ^

/nix/store/il0r2x1l03qjda9nxva18c1mjsqggcn9-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "constexpr" is not valid here
      constexpr bool __is_nothrow_new_constructible
      ^

/nix/store/il0r2x1l03qjda9nxva18c1mjsqggcn9-gcc-14-20241116/include/c++/14-20241116/bits/new_allocator.h(190): error: identifier "__is_nothrow_new_constructible" is undefined
   noexcept(__is_nothrow_new_constructible<_Up, _Args...>)
            ^

/nix/store/il0r2x1l03qjda9nxva18c1mjsqggcn9-gcc-14-20241116/include/c++/14-20241116/bits/new_allocator.h(190): error: type name is not allowed
   noexcept(__is_nothrow_new_constructible<_Up, _Args...>)
                                           ^

/nix/store/il0r2x1l03qjda9nxva18c1mjsqggcn9-gcc-14-20241116/include/c++/14-20241116/bits/new_allocator.h(190): error: expected a ")"
   noexcept(__is_nothrow_new_constructible<_Up, _Args...>)
                                              ^

/nix/store/il0r2x1l03qjda9nxva18c1mjsqggcn9-gcc-14-20241116/include/c++/14-20241116/bits/alloc_traits.h(107): error: variable template "std::__allocator_traits_base::__has_construct_impl" is not a valid class member template
        static constexpr bool __has_construct_impl = false;
                              ^

/nix/store/il0r2x1l03qjda9nxva18c1mjsqggcn9-gcc-14-20241116/include/c++/14-20241116/bits/alloc_traits.h(110): error: __has_construct_impl is not a template
        __has_construct_impl<_Alloc, _Tp,
        ^

/nix/store/il0r2x1l03qjda9nxva18c1mjsqggcn9-gcc-14-20241116/include/c++/14-20241116/bits/alloc_traits.h(110): error: variable template "std::__allocator_traits_base::_Args" is not a valid class member template
        __has_construct_impl<_Alloc, _Tp,
        ^

/nix/store/il0r2x1l03qjda9nxva18c1mjsqggcn9-gcc-14-20241116/include/c++/14-20241116/bits/alloc_traits.h(115): error: variable template "std::__allocator_traits_base::__has_construct" is not a valid class member template
        static constexpr bool __has_construct
                              ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions