Package Details: build2 0.12.0-2

Git Clone URL: https://aur.archlinux.org/build2.git (read-only, click to copy)
Package Base: build2
Description: build2 build system
Upstream URL: https://build2.org/
Licenses: MIT
Submitter: verri
Maintainer: migrev
Last Packager: migrev
Votes: 9
Popularity: 1.37
First Submitted: 2017-08-19 16:03
Last Updated: 2020-02-11 03:56

Latest Comments

jonathon commented on 2020-03-26 01:44

Build appears to fail if ccache is configured, e.g.:

...
In file included from /usr/include/c++/9.3.0/bits/exception_ptr.h:39,
                 from /usr/include/c++/9.3.0/exception:143,
                 from /usr/include/c++/9.3.0/stdexcept:38,
                 from /usr/include/c++/9.3.0/array:39,
                 from /build/build2/src/build2-toolchain-0.12.0/libbutl/libbutl/uuid.hxx:7,
                 from /build/build2/src/build2-toolchain-0.12.0/libbutl/libbutl/uuid-linux.cxx:7:
/usr/include/c++/9.3.0/typeinfo:76:5: error: stray ‘#’ in program
   76 |     #define __GXX_TYPEINFO_EQUALITY_INLINE 1
      |     ^
...

(and many, many more).

Quick fix is to disable ccache:

diff --git a/PKGBUILD b/PKGBUILD
index e914b62..01e3013 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,6 +11,7 @@ url="https://build2.org/"
 license=('MIT')
 makedepends=('wget')
 depends=('sqlite3' 'pkgconf')
+options=(!ccache)
 source=("https://download.build2.org/${pkgver}/build2-toolchain-${pkgver}.tar.xz"
                "build.patch")