[Bug 278271] Bug in LLVM's libc++ breaks g++13 (build of math/ceres-solver is broken on armv7)

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 10 Apr 2024 17:53:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278271

--- Comment #7 from Dimitry Andric <dim@FreeBSD.org> ---
Okay, my magic incantation was:

--- a/math/ceres-solver/Makefile
+++ b/math/ceres-solver/Makefile
@@ -57,10 +57,10 @@ GFLAGS_LIB_DEPENDS= libgflags.so:devel/gflags
 GFLAGS_CMAKE_BOOL=     GFLAGS

 OPENMP_CMAKE_ON=       -DCERES_THREADING_MODEL:STRING="OPENMP"
-.if !exists(/usr/include/omp.h)
+#.if !exists(/usr/include/omp.h)
 # XXX ports/199603: LLVM openmp in base doesn't support armv6, armv7 yet
 OPENMP_VARS=           OPENMP=gcc-
-.endif
+#.endif

 SCHUR_DESC=            Fixed-size schur specializations
 SCHUR_CMAKE_BOOL=      SCHUR_SPECIALIZATIONS

so it would insist on using gcc13 by itself, and indeed it used -stdlib=libc++
everywhere. But still, it compiled totally fine, even without the fix.

How can I reproduce the original problem, and verify that the fix works? (I
don't want to have to build on armv7 since I don't have the time to setup the
whole environment for that)

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