build2 is an open source (MIT), cross-platform build toolchain that aims to
approximate Rust Cargo's convenience for developing and packaging C/C++
projects while providing more depth and flexibility, especially in the build
system.
===> The following configuration options are available for build2-0.18.1:
DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings
devel/build2: fix build with libc++ >= 20
With libc++ 20 or higher devel/build2 fails to build, with errors
similar to:
In file included from libbuild2/utility.cxx:27:
./libbuild2/script/regex.hxx:620:10: error: 'make_unsigned' cannot be
specialized: Users are not allowed to specialize this standard library entity
[-Winvalid-specialization]
620 | struct make_unsigned<build2::script::regex::line_char>
| ^
/usr/include/c++/v1/__type_traits/make_unsigned.h:75:8: note: marked
'_Clang::no_specializations' here
75 | struct _LIBCPP_NO_SPECIALIZATIONS make_unsigned {
| ^
/usr/include/c++/v1/__config:1167:9: note: expanded from macro
'_LIBCPP_NO_SPECIALIZATIONS'
Upstream committed a fix for this in
https://github.com/build2/build2/commit/7cf9cec, so add that as a patch
file.
PR: 292867
Approved by: fuz (maintainer)
MFH: 2026Q1
devel/build2: use SETENVI
Apparently this is needed when building with portmaster.
PR: 281554
Reported by: O. Hartmann <ohartmann@walstatt.org>
Event: EuroBSDcon 2024
devel/build2: fix build with clang 18 rc1
As of rc1, clang 18 has a version id formatted as "18.1.0rc". Similarly,
builds from the upstream main branch typically have a version id looking
like "19.0.0git". Due to the way it parses version strings, devel/build2
cannot handle this format, and fails with:
LC_ALL=C c++ -v
error: unable to extract Clang minor version from '18'
info: use config.cxx.version to override
I submitted https://github.com/build2/build2/issues/360 upstream, and
they committed a fix: https://github.com/build2/build2/commit/0e1b73e3,
which should eventually end up in 0.17.0.
The fix applies without issues on 0.16.0, so add it as a patch.
PR: 276785
Approved by: fuz (maintainer)
MFH: 2024Q1
devel/build2: Fix build on i386
The powerpc build progresses much further with the same flag set, but now
segfaults when the do-install target is run.
===> Staging for build2-0.16.0
===> Generating temporary packing list
Invalid data memory access: 0xf2e018b8
Invalid data memory access: 0x81390500
Invalid data memory access: 0x00000048
*** Signal 11
Approved by: portmgr (blanket)
devel/build2: Toolchain for building and packaging C++ code
build2 is an open source (MIT), cross-platform build toolchain that aims
to approximate Rust Cargo's convenience for developing and packaging
C/C++ projects while providing more depth and flexibility, especially in
the build system.
libodb and libodb-sqlite are currently bundled in this port. These are
planned to be unbundled in a future commit.
The port's author is known to the maintainer but wishes not to be named.
Obtained from: anonymous author
Approved by: flo (mentor)
Differential Revision: https://reviews.freebsd.org/D38629