Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Nov 2024 19:55:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 282654] misc/mxnet: fix build with clang 19
Message-ID:  <bug-282654-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282654

            Bug ID: 282654
           Summary: misc/mxnet: fix build with clang 19
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri@freebsd.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(yuri@freebsd.org)
          Assignee: yuri@freebsd.org

Clang 19 now implements CWG 96 [1], which requires a template argument
list after a 'template' keyword, resulting in errors similar to:

=20
/wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/n=
umpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358=
:18:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
    358 |         template LaunchEx(s, new_oshape.Size(), req[0], lstride,
rstride, oshape,
        |                  ^
=20
/wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/n=
umpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358=
:18:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
=20
/wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/n=
umpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358=
:18:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
=20
/wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/n=
umpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358=
:18:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
=20
/wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/n=
umpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358=
:18:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
=20
/wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/n=
umpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358=
:18:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
=20
/wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/n=
umpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358=
:18:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
=20
/wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/n=
umpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358=
:18:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
=20
/wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/n=
umpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358=
:18:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
=20
/wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/n=
umpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358=
:18:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
=20
/wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/n=
umpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358=
:18:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
=20
/wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/n=
umpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358=
:18:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
=20
/wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/n=
umpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358=
:18:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
=20
/wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/n=
umpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358=
:18:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
=20
/wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/n=
umpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:358=
:18:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
=20
/wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/n=
umpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:389=
:18:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
    389 |         template LaunchEx(s, new_oshape.Size(), req[0], lstride,
rstride, oshape,
        |                  ^
=20
/wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/n=
umpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:389=
:18:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
=20
/wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/n=
umpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:389=
:18:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]
=20
/wrkdirs/usr/ports/misc/mxnet/work/incubator-mxnet-1.9.1/src/api/operator/n=
umpy/../../../operator/numpy/../tensor/./elemwise_binary_broadcast_op.h:389=
:18:
error: a template argument list is expected after a name prefixed by the
template keyword [-Wmissing-template-arg-list-after-template-kw]

In all these cases, appending "<>" is enough to satisfy the constraint.
This can be done with a REINPLACE_CMD in the post-patch phase.

[1] https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#96

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-282654-7788>