[Bug 278630] math/kamis, misc/openn: GCC fails with an error on armv7: use of built-in trait '__remove_cvref(_InIter1)' in function signature; use library traits instead

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 07 Jun 2026 04:05:11 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278630

--- Comment #8 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Mark Millard from comment #7)

Hmm:

[00:00:26] Ignoring   math/kamis | kamis-3.1: is marked as broken: requires
OpenMP support that is missing on this architecture

Looking at the Makefile: no use of gcc with libc++ use is set up for there as
well.

The submittal gives no clue how it was set up to test with gcc.

So I had to hack things to test math/kamis .

. . . Result:

# git -C /usr/ports-alt diff math/kamis | cat
diff --git a/math/kamis/Makefile b/math/kamis/Makefile
index b3d2b1ac49c9..66fd131c2ad6 100644
--- a/math/kamis/Makefile
+++ b/math/kamis/Makefile
@@ -11,13 +11,12 @@ WWW=                https://karlsruhemis.github.io/ \
 LICENSE=       MIT
 LICENSE_FILE=  ${WRKSRC}/LICENSE

-#BROKEN_armv7= gcc13 fails: error: use of built-in trait
'__remove_cvref(_InIter1)' in function signature, see
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278630
-
 USES=          cmake
 USE_LDCONFIG=  yes

 .if !exists(/usr/include/omp.h)
-BROKEN=                requires OpenMP support that is missing on this
architecture
+USES+=         compiler:gcc-c++11-lib
+USE_GCC=       yes
 .endif

 USE_GITHUB=    yes


[02:18:55] [01] [00:00:00] Building   math/kamis | kamis-3.1
[02:20:50] [01] [00:01:55] Finished   math/kamis | kamis-3.1: Success

Note: lang/gcc14 supplied the openmp and its omp.h . FreeBSD
does not.


As for m"isc/openn" ( well, really, misc/opennn ),

[00:00:09] [02] [00:00:00] Building   misc/opennn | opennn-8.0.0
[00:02:43] [02] [00:02:34] Finished   misc/opennn | opennn-8.0.0: Success

based on:

# git -C /usr/ports-alt diff misc/opennn | cat
diff --git a/misc/opennn/Makefile b/misc/opennn/Makefile
index 53724a28b276..af266f3ee6b8 100644
--- a/misc/opennn/Makefile
+++ b/misc/opennn/Makefile
@@ -11,8 +11,6 @@ WWW=          https://www.opennn.net/ \
 LICENSE=       GPLv3
 LICENSE_FILE=  ${WRKSRC}/LICENSE.txt

-BROKEN_armv7=  gcc13 fails: error: use of built-in trait
'__remove_cvref(_InIter1)' in function signature, see
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278630
-
 TEST_DEPENDS=  googletest>0:devel/googletest

 USES=          cmake:testing dos2unix localbase:ldflags


For reference:

# poudriere jail -l
JAILNAME            VERSION          OSVERSION ARCH          METHOD     
TIMESTAMP           PATH
. . .
release14-armv7     14.4-RELEASE-p5  1404000   armv7         pkgbase    
2026-06-06 17:47:19 /usr/local/poudriere/jails/release14-armv7
. . .

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