Compile Error on Debian buster in util/math/mathutil.h

19 views
Skip to first unread message

Lukas Lösche

unread,
Jul 23, 2021, 1:31:35 PM7/23/21
to ArangoDB
When trying to compile ArangoDB 3.7.13 on a fresh Debian buster install make is throwing the following error:

/home/builder/src/arangodb/3rdParty/s2geometry/dfefe0c/src/s2/util/math/mathutil.h: At global scope:
/home/builder/src/arangodb/3rdParty/s2geometry/dfefe0c/src/s2/util/math/mathutil.h:168:53: error: specialization of 'static IntOut MathUtil::Round(FloatIn) [with IntOut = int; FloatIn = double]' after instantiation
inline int32 MathUtil::Round<int32, double>(double x) {

I am guessing this has something to do with the build environment as a general error would likely not have made it into the release tarball.

Any idea what might be the issue here?

Thanks,
-- Lukas

Lukas Lösche

unread,
Jul 23, 2021, 1:36:28 PM7/23/21
to ArangoDB
nvm, just read that g++ 9.2+ is required. Sorry for the noise.

Lukas Lösche

unread,
Jul 24, 2021, 12:28:12 PM7/24/21
to ArangoDB
> nvm, just read that g++ 9.2+ is required

Looks like I spoke too soon. Upgraded the system to Debian testing with g++ 10.2.1 and still getting the same error. Tried building on macOS, same result:

builder@core1 ~ $ g++ --version
g++ (Debian 10.2.1-6) 10.2.1 20210110
...
/home/builder/src/arangodb/3rdParty/s2geometry/dfefe0c/src/s2/util/math/mathutil.h: At global scope:
/home/builder/src/arangodb/3rdParty/s2geometry/dfefe0c/src/s2/util/math/mathutil.h:168:53: error: specialization of ‘static IntOut MathUtil::Round(FloatIn) [with IntOut = int; FloatIn = double]’ after instantiation
  168 | inline int32 MathUtil::Round<int32, double>(double x) {
...


On macOS:

builder@microair ~ % g++ --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.5 (clang-1205.0.22.11)
Target: x86_64-apple-darwin20.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
...
...
/Users/builder/src/arangodb/3rdParty/s2geometry/dfefe0c/src/s2/util/math/mathutil.h:168:24: error: explicit specialization of 'Round<int, double>' after instantiation
inline int32 MathUtil::Round<int32, double>(double x) {                       ^
...
...

Any ideas?


Reply all
Reply to author
Forward
0 new messages