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

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 15 May 2025 23:22:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285708

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

Use of -stdlib=libc++ with lang/gcc13 got:

virtual memory exhausted: Cannot allocate memory

So it seems to be libc++ headers specific instead
of compiler specific. (I used a poudriere jail
targeting armv7 14.2-RELEASE for this test.)

As system clang does not allow for libstdc++
use, it appears that a lang/gcc* and its
libstdc++ needs to be used. Care may be
needed to verify that -rpath= is picking
out the right place to find the lang/gcc*'s
libgcc_s.so.1 instead of using
/lib/libgcc_s.so.1 .


More detail for the failure I got:

=======================<phase: build          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Building for vtm-0.9.99.70
[ 50% 1/2] /usr/local/bin/g++13   -O2 -pipe  -I/usr/local/include/lua54
-stdlib=libc++ -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 
-Wl,-rpath=/usr/local/lib/gcc13 -std=c++20 -pthread -O2 -pipe 
-I/usr/local/include/lua54 -stdlib=libc++ -fstack-protector-strong
-Wl,-rpath=/usr/local/lib/gcc13  -Wl,-rpath=/usr/local/lib/gcc13 -std=c++20 
-DNDEBUG -std=c++20 -MD -MT CMakeFiles/vtm.dir/src/vtm.cpp.o -MF
CMakeFiles/vtm.dir/src/vtm.cpp.o.d -o CMakeFiles/vtm.dir/src/vtm.cpp.o -c
/wrkdirs/usr/ports/sysutils/vtm/work/vtm-0.9.99.70/src/vtm.cpp
FAILED: CMakeFiles/vtm.dir/src/vtm.cpp.o 
/usr/local/bin/g++13   -O2 -pipe  -I/usr/local/include/lua54 -stdlib=libc++
-fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc13 
-Wl,-rpath=/usr/local/lib/gcc13 -std=c++20 -pthread -O2 -pipe 
-I/usr/local/include/lua54 -stdlib=libc++ -fstack-protector-strong
-Wl,-rpath=/usr/local/lib/gcc13  -Wl,-rpath=/usr/local/lib/gcc13 -std=c++20 
-DNDEBUG -std=c++20 -MD -MT CMakeFiles/vtm.dir/src/vtm.cpp.o -MF
CMakeFiles/vtm.dir/src/vtm.cpp.o.d -o CMakeFiles/vtm.dir/src/vtm.cpp.o -c
/wrkdirs/usr/ports/sysutils/vtm/work/vtm-0.9.99.70/src/vtm.cpp
virtual memory exhausted: Cannot allocate memory
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

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