[Bug 285708] sysutils/vtm: Fix build on i386

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 16 May 2025 17:35:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285708

--- Comment #18 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Yusuf Yaman from comment #17)

+USE_GCC=       yes
+CXXFLAGS+=     -stdlib=libstdc++

The above line might need a comment indicating
something like: "explicit because -stdlib=c++
use runs out of memory". (Otherwise the line
is redundant because libstdc++ is the default.
But documenting to not try libc++ is likely a
good thing at this point.)

+LDFLAGS+=      -Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFAULT} \
+               ${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgcc_s.so

When I looked up the details, the USE_GCC=yes
automatically adds a matching -Wl,-rpath=
into the required commands.

I'm not aware of the explicit libgcc_s.so
(with path) being needed.

So it may be that the LDFLAGS+= lines are
redundant.


QUOTE
Use GCC for build on armv6/7 and i386 architectures
because clang runs out of memory. It may be related
to use of libc++ (clang) while gcc uses libstdc++.
END QUOTE

I'll note that gcc using -stdlib=libc++ also runs
out of memory: both compilers do when libc++ is
used.

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