build2 / libbutl Goto Github PK
View Code? Open in Web Editor NEWbuild2 utility library
License: Other
build2 utility library
License: Other
This package contains the build2 utility library. build2 is an open source, cross-platform toolchain for building and packaging C++ code. Its aim is a modern build system and dependency manager for the C++ language that provide a consistent, out of the box interface across multiple platforms and compilers. For more information see: https://build2.org/ This library is a collection of utilities that are used throughout the toolchain. See the NEWS file for the user-visible changes from the previous release. See the LICENSE file for the distribution conditions. See the INSTALL file for the prerequisites and installation instructions. See the doc/ directory for documentation. Send questions, bug reports, or any other feedback to the [email protected] mailing list. You can post without subscribing. See https://lists.build2.org for details.
During installation of build2 using the recommended method on Centos 6.10:
+ bpkg-stage --version
bpkg-stage: error while loading shared libraries: /usr/local/lib/libbutl-stage-0.13.so: cannot allocate memory in static TLS block
Any assistance would be appreciated.
Hi! I'm updating Nixpkgs's various build2 packages from 0.15.0 to 0.16.0 and noticed this build failure when trying to bump bpkg:
In file included from /build/bpkg-0.16.0/bpkg/system-package-manager.cxx:10:
/nix/store/czjlc837wncb400i61arfv0v9f6wms5z-libbutl-0.16.0-dev/include/libbutl/json/parser.hxx:19:10: fatal error: libbutl/json/pdjson.h: No such file or directory
19 | #include <libbutl/json/pdjson.h> // Implementation details.
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: process g++ exited with code 1
It looks to me like the pdjson.h header is now needed by bpkg but is not installed by libbutl's buildfiles. I was able to work around it with this small patch to also install libbutl's .h files, although I'm not sure if this is the correct solution:
--- a/libbutl/buildfile
+++ b/libbutl/buildfile
@@ -1,7 +1,7 @@
# file : libbutl/buildfile
# license : MIT; see accompanying LICENSE file
-lib{butl}: {hxx ixx txx cxx}{** -uuid-* +uuid-io \
+lib{butl}: {h hxx ixx txx cxx}{** -uuid-* +uuid-io \
-win32-utility \
-mingw-* \
-version \
@@ -154,7 +154,7 @@ else
# Install into the libbutl/ subdirectory of, say, /usr/include/
# recreating subdirectories.
#
-{hxx ixx txx}{*}:
+{h hxx ixx txx}{*}:
{
install = include/libbutl/
install.subdirs = true
Since assert
is a necessary part of the tests' control flow, compiling with NDEBUG
defined globally (e.g. via config.cc.poptions+=-DNDEBUG
) causes the tests to fail.
Forcibly undefining NDEBUG
in each test driver before including <cassert>
looks like one way to fix this:
--- a/tests/command/driver.cxx
+++ b/tests/command/driver.cxx
@@ -3,2 +3,5 @@
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
#include <cassert>
If this looks like an appropriate solution, I'm happy to open a PR.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.