• Bug#1064730: stdgpu: FTBFS: type_traits.h:736:1: error: expected type-s

    From Lucas Nussbaum@21:1/5 to All on Sun Feb 25 21:00:28 2024
    Source: stdgpu
    Version: 1.3.0+git20220507.32e0517-5
    Severity: serious
    Justification: FTBFS
    Tags: trixie sid ftbfs
    User: lucas@debian.org
    Usertags: ftbfs-20240224 ftbfs-trixie

    Hi,

    During a rebuild of all packages in sid, your package failed to build
    on amd64.


    Relevant part (hopefully):
    cd /<<PKGBUILDDIR>>/obj-openmp/src/stdgpu && /usr/bin/c++ -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_OMP -Dstdgpu_EXPORTS -I/<<PKGBUILDDIR>>/src/stdgpu/.. -I/<<PKGBUILDDIR>>/obj-openmp/src/stdgpu/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -
    fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Wall -pedantic -Wextra -Wshadow -Wsign-compare -Wconversion -Wfloat-equal -Wundef -Wdouble-promotion -fopenmp -MD -MT
    src/stdgpu/CMakeFiles/stdgpu.dir/openmp/impl/device.cpp.o -MF CMakeFiles/stdgpu.dir/openmp/impl/device.cpp.o.d -o CMakeFiles/stdgpu.dir/openmp/impl/device.cpp.o -c /<<PKGBUILDDIR>>/src/stdgpu/openmp/impl/device.cpp
    In file included from /usr/include/thrust/iterator/iterator_facade.h:36,
    from /usr/include/thrust/iterator/iterator_adaptor.h:36,
    from /usr/include/thrust/detail/pointer.h:26,
    from /<<PKGBUILDDIR>>/src/stdgpu/../stdgpu/iterator.h:28,
    from /<<PKGBUILDDIR>>/src/stdgpu/impl/iterator.cpp:16: /usr/include/thrust/detail/type_traits.h:736:1: error: expected type-specifier before ‘template’
    736 | template <class F, class... Us>
    | ^~~~~~~~
    In file included from /usr/include/thrust/detail/execute_with_allocator_fwd.h:21,
    from /usr/include/thrust/detail/execute_with_allocator.h:21,
    from /usr/include/thrust/execution_policy.h:26,
    from /<<PKGBUILDDIR>>/src/stdgpu/../stdgpu/execution.h:30,
    from /<<PKGBUILDDIR>>/src/stdgpu/../stdgpu/memory.h:32,
    from /<<PKGBUILDDIR>>/src/stdgpu/impl/memory.cpp:16: /usr/include/thrust/detail/type_traits.h:736:1: error: expected type-specifier before ‘template’
    736 | template <class F, class... Us>
    | ^~~~~~~~
    In file included from /usr/include/thrust/detail/execute_with_allocator_fwd.h:21,
    from /usr/include/thrust/detail/execute_with_allocator.h:21,
    from /usr/include/thrust/execution_policy.h:26,
    from /<<PKGBUILDDIR>>/src/stdgpu/../stdgpu/execution.h:30,
    from /<<PKGBUILDDIR>>/src/stdgpu/../stdgpu/memory.h:32,
    from /<<PKGBUILDDIR>>/src/stdgpu/../stdgpu/openmp/memory.h:20,
    from /<<PKGBUILDDIR>>/src/stdgpu/openmp/impl/memory.cpp:16: /usr/include/thrust/detail/type_traits.h:736:1: error: expected type-specifier before ‘template’
    736 | template <class F, class... Us>
    | ^~~~~~~~
    In file included from /usr/include/thrust/detail/functional/actor.h:34,
    from /usr/include/thrust/detail/functional/placeholder.h:20,
    from /usr/include/thrust/functional.h:26,
    from /usr/include/thrust/system/detail/generic/copy.inl:21,
    from /usr/include/thrust/system/detail/generic/copy.h:57,
    from /usr/include/thrust/detail/copy.inl:22,
    from /usr/include/thrust/detail/copy.h:90,
    from /usr/include/thrust/system/detail/sequential/merge.inl:21,
    from /usr/include/thrust/system/detail/sequential/merge.h:78,
    from /usr/include/thrust/system/cpp/detail/merge.h:22,
    from /usr/include/thrust/system/cpp/execution_policy.h:51,
    from /usr/include/thrust/execution_policy.h:33: /usr/include/thrust/detail/type_traits/result_of_adaptable_function.h:41:18: error: ‘invoke_result_t’ does not name a type
    41 | using type = invoke_result_t<F, Args...>;
    | ^~~~~~~~~~~~~~~
    In file included from /usr/include/thrust/detail/functional/actor.h:34,
    from /usr/include/thrust/detail/functional/placeholder.h:20,
    from /usr/include/thrust/functional.h:26,
    from /usr/include/thrust/system/detail/generic/copy.inl:21,
    from /usr/include/thrust/system/detail/generic/copy.h:57,
    from /usr/include/thrust/detail/copy.inl:22,
    from /usr/include/thrust/detail/copy.h:90,
    from /usr/include/thrust/system/detail/sequential/merge.inl:21,
    from /usr/include/thrust/system/detail/sequential/merge.h:78,
    from /usr/include/thrust/system/cpp/detail/merge.h:22,
    from /usr/include/thrust/system/cpp/execution_policy.h:51,
    from /usr/include/thrust/execution_policy.h:33,
    from /<<PKGBUILDDIR>>/src/stdgpu/../stdgpu/execution.h:30,
    from /<<PKGBUILDDIR>>/src/stdgpu/../stdgpu/memory.h:32,
    from /<<PKGBUILDDIR>>/src/stdgpu/impl/iterator.cpp:18: /usr/include/thrust/detail/type_traits/result_of_adaptable_function.h:41:18: error: ‘invoke_result_t’ does not name a type
    41 | using type = invoke_result_t<F, Args...>;
    | ^~~~~~~~~~~~~~~
    In file included from /usr/include/thrust/detail/functional/actor.h:34,
    from /usr/include/thrust/detail/functional/placeholder.h:20,
    from /usr/include/thrust/functional.h:26,
    from /usr/include/thrust/system/detail/generic/copy.inl:21,
    from /usr/include/thrust/system/detail/generic/copy.h:57,
    from /usr/include/thrust/detail/copy.inl:22,
    from /usr/include/thrust/detail/copy.h:90,
    from /usr/include/thrust/system/detail/sequential/merge.inl:21,
    from /usr/include/thrust/system/detail/sequential/merge.h:78,
    from /usr/include/thrust/system/cpp/detail/merge.h:22,
    from /usr/include/thrust/system/cpp/execution_policy.h:51,
    from /usr/include/thrust/execution_policy.h:33: /usr/include/thrust/detail/type_traits/result_of_adaptable_function.h:41:18: error: ‘invoke_result_t’ does not name a type
    41 | using type = invoke_result_t<F, Args...>;
    | ^~~~~~~~~~~~~~~
    make[4]: *** [src/stdgpu/CMakeFiles/stdgpu.dir/build.make:93: src/stdgpu/CMakeFiles/stdgpu.dir/impl/iterator.cpp.o] Error 1


    The full build log is available from: http://qa-logs.debian.net/2024/02/24/stdgpu_1.3.0+git20220507.32e0517-5_unstable.log

    All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240224;users=lucas@debian.org
    or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240224&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

    A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

    If you reassign this bug to another package, please mark it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects

    If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Timo =?UTF-8?Q?R=C3=B6hling?=@21:1/5 to All on Sat Mar 2 09:30:01 2024
    Hi,

    On Sun, 25 Feb 2024 20:28:53 +0100 Lucas Nussbaum <lucas@debian.org>
    wrote:
    /usr/include/thrust/detail/type_traits.h:736:1: error: expected type-specifier before ‘template’

    This bug is caused by a #ifdef cascade for different
    THRUST_DEVICE_SYSTEM values, which sadly no longer works with THRUST_DEVICE_SYSTEM_OMP. This makes it effectively impossible to
    build the HIP backend and the OpenMP backend from the same source.


    --
    ⢀⣴⠾⠻⢶⣦⠀ ╭────────────────────────────────────────────────────╮
    ⣾⠁⢠⠒⠀⣿⡁ │ Timo Röhling │
    ⢿⡄⠘⠷⠚⠋⠀ │ 9B03 EBB9 8300 DF97 C2B1 23BF CC8C 6BDD 1403 F4CA │
    ⠈⠳⣄⠀⠀⠀⠀ ╰────────────────────────────────────────────────────╯

    -----BEGIN PGP SIGNATURE-----

    iQGzBAEBCgAdFiEEJvtDgpxjkjCIVtam+C8H+466LVkFAmXi4ZQACgkQ+C8H+466 LVk8+QwA5khGZM49CrMjgeZ9gOW/pB0m+zbQpvpBc+JrHHmyIcUvrKdjbGiRhxCq O+BGfC02jCGPZ+kr53iRNnRKHWnU9KwQYiq5WzaaD3ktWfF3t01Dvu85k9XoJHEA uEpOX4322S7ZmHk4x4z3kTeBIauZWLrrGsjutdLo5tD+UXs+rlrau6F3ei8gVswS 4oS2slphohD3W69Kx6LSuwIbuqbMc50yShkxghW5Z3a4PkSbA00yemqE89gpxg91 5gGr98DUQ6pSQ+zfaYTgPrd7EKtQiJWhL+R8UEvqbYyXXGRR2KKL4EDznyu5uyap kt+4qCoUtybguBpARXNJlStfghuAzP3D3NpqVXBhwH3
  • From Debian Bug Tracking System@21:1/5 to All on Tue Apr 16 15:10:01 2024
    Processing control commands:

    tags -1 patch
    Bug #1064730 [src:stdgpu] stdgpu: FTBFS: type_traits.h:736:1: error: expected type-specifier before ‘template’
    Added tag(s) patch.
    forwarded -1 https://github.com/ROCm/rocThrust/pull/402
    Bug #1064730 [src:stdgpu] stdgpu: FTBFS: type_traits.h:736:1: error: expected type-specifier before ‘template’
    Set Bug forwarded-to-address to 'https://github.com/ROCm/rocThrust/pull/402'.

    --
    1064730: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064730
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Tue Apr 16 18:30:01 2024
    Processing control commands:

    tags 1064730 + patch
    Bug #1064730 [src:stdgpu] stdgpu: FTBFS: type_traits.h:736:1: error: expected type-specifier before ‘template’
    Ignoring request to alter tags of bug #1064730 to the same tags previously set
    tags 1064730 + pending
    Bug #1064730 [src:stdgpu] stdgpu: FTBFS: type_traits.h:736:1: error: expected type-specifier before ‘template’
    Added tag(s) pending.

    --
    1064730: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064730
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Tue Apr 16 19:10:02 2024
    This is a multi-part message in MIME format...

    Your message dated Tue, 16 Apr 2024 17:06:15 +0000
    with message-id <E1rwmG7-00AE60-NP@fasolo.debian.org>
    and subject line Bug#1064730: fixed in rocthrust 5.7.1-2.1
    has caused the Debian Bug report #1064730,
    regarding stdgpu: FTBFS: type_traits.h:736:1: error: expected type-specifier before ‘template’
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1064730: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064730
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 25 Feb 2024 19:49:48 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-105.3 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,
    SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,
    USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST autolearn=ham
    autolearn_force=no version=3.4.6-bugs.debian.org_2005_01_02 X-Spam-Bayes: score:0.0000 Tokens: new, 56; hammy, 150; neutral, 189; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:108, 0.000-+--H*RT:311
    Return-path: <lucas@debian.org>
    Received: from stravinsky.debian.org ([2001:41b8:2