Package Details: arangodb 3.1.21-2

Git Clone URL: https://aur.archlinux.org/arangodb.git (read-only)
Package Base: arangodb
Description: A multi-model NoSQL database, combining key-value, document and graph data models.
Upstream URL: https://www.arangodb.com/
Keywords: database document-store graph nosql
Licenses: Apache
Submitter: bpdp
Maintainer: sleepycat (NicoHood)
Last Packager: sleepycat
Votes: 11
Popularity: 0.678021
First Submitted: 2012-08-23 14:29
Last Updated: 2017-05-30 19:36

Latest Comments

cvnb commented on 2017-06-27 22:36

@pschyma: Yes, now I'm getting the same errors you see. :/

pschyma commented on 2017-06-27 20:12

The default CC flags are carried over to cmake/make.

Using the PKGBUILD from your gist I'm getting following

[ 4%] Building C object 3rdParty/zlib/zlib-1.2.8/CMakeFiles/zlibstatic.dir/inftrees.o
In file included from /home/peter/builds/arangodb/src/arangodb-3.1.23/3rdParty/rocksdb/rocksdb/db/auto_roll_logger.cc:6:
In file included from /home/peter/builds/arangodb/src/arangodb-3.1.23/3rdParty/rocksdb/rocksdb/db/auto_roll_logger.h:15:
In file included from /home/peter/builds/arangodb/src/arangodb-3.1.23/3rdParty/rocksdb/rocksdb/port/util_logger.h:18:
In file included from /home/peter/builds/arangodb/src/arangodb-3.1.23/3rdParty/rocksdb/rocksdb/util/posix_logger.h:28:
/home/peter/builds/arangodb/src/arangodb-3.1.23/3rdParty/rocksdb/rocksdb/util/sync_point.h:75:25: error: no type named 'function' in namespace 'std'
std::function<void(void*)> callback);
~~~~~^
/home/peter/builds/arangodb/src/arangodb-3.1.23/3rdParty/rocksdb/rocksdb/util/sync_point.h:75:33: error: expected ')'
std::function<void(void*)> callback);
^
/home/peter/builds/arangodb/src/arangodb-3.1.23/3rdParty/rocksdb/rocksdb/util/sync_point.h:74:19: note: to match this '('
void SetCallBack(const std::string point,
^
/home/peter/builds/arangodb/src/arangodb-3.1.23/3rdParty/rocksdb/rocksdb/util/sync_point.h:102:40: error: no member named 'function' in namespace 'std'
std::unordered_map<std::string, std::function<void(void*)> > callbacks_;
~~~~~^
/home/peter/builds/arangodb/src/arangodb-3.1.23/3rdParty/rocksdb/rocksdb/util/sync_point.h:102:58: error: expected '(' for function-style cast or type construction
std::unordered_map<std::string, std::function<void(void*)> > callbacks_;
~~~~^
/home/peter/builds/arangodb/src/arangodb-3.1.23/3rdParty/rocksdb/rocksdb/util/sync_point.h:102:59: error: expected expression
std::unordered_map<std::string, std::function<void(void*)> > callbacks_;
^
/home/peter/builds/arangodb/src/arangodb-3.1.23/3rdParty/rocksdb/rocksdb/util/sync_point.h:102:62: error: expected member name or ';' after declaration specifiers
std::unordered_map<std::string, std::function<void(void*)> > callbacks_;
^
[ 4%] Built target snappystatic

and the build dies a bit later

CXX(target) /home/peter/builds/arangodb/src/arangodb-3.1.23/build/3rdParty/V8/v8/x64.release/obj.target/v8_external_snapshot/src/snapshot/natives-external.o
CXX(target) /home/peter/builds/arangodb/src/arangodb-3.1.23/build/3rdParty/V8/v8/x64.release/obj.target/v8_external_snapshot/src/snapshot/snapshot-external.o
AR(target) /home/peter/builds/arangodb/src/arangodb-3.1.23/build/3rdParty/V8/v8/x64.release/obj.target/tools/gyp/libv8_external_snapshot.a
TOUCH /home/peter/builds/arangodb/src/arangodb-3.1.23/build/3rdParty/V8/v8/x64.release/obj.target/tools/gyp/v8_maybe_snapshot.stamp
TOUCH /home/peter/builds/arangodb/src/arangodb-3.1.23/build/3rdParty/V8/v8/x64.release/obj.target/tools/gyp/v8.stamp
[ 31%] No install step for 'v8_build'
[ 31%] Completed 'v8_build'
[ 31%] Built target v8_build
make: *** [Makefile:152: all] Fehler 2


Using GCC 7.1.1 yields:
In file included from ../../../../3rdParty/V8/V8-5.0.71.39/./src/heap/objects-visiting.h:12:0,
from ../../../../3rdParty/V8/V8-5.0.71.39/src/heap/objects-visiting.cc:5:
../../../../3rdParty/V8/V8-5.0.71.39/./src/objects-body-descriptors.h: In static member function ‘static void v8::internal::FixedBodyDescriptor<start_offset, end_offset, size>::IterateBody(v8::internal::HeapObject*, int)’:
../../../../3rdParty/V8/V8-5.0.71.39/./src/objects-body-descriptors.h:102:20: error: no matching function for call to ‘v8::internal::FixedBodyDescriptor<start_offset, end_offset, size>::IterateBody(v8::internal::HeapObject*&)’
IterateBody(obj);

cvnb commented on 2017-06-27 19:10

@NicoHood: I'm not sure about the security implications you allude to in your comment. I'll appreciate if you can explain. On the export, I adapted directives from Clang wiki[1]. As far as reason for using clang in place of gcc, refer to pschyma's comment: the bundled v8 version cannot be compiled with gcc 7.1.1. Instead of downgrading to lower gcc 6.3.1, I checked if clang could compile it without errors since this is an alternate compiler to gcc[2]. It did and turned out to be path of least resistance.

[1] https://wiki.archlinux.org/index.php/clang
[2] https://docs.arangodb.com/3.1/Manual/GettingStarted/Installing/Compiling.html

NicoHood commented on 2017-06-27 13:30

I am not sure but by using the export like this you overwrite security features provided by default makepkg CC flags. I might be wrong. You should ask in the mailinglist before applying this chang. Also why would you want to use clang instead of gcc? Is there any specific reason?

cvnb commented on 2017-06-27 05:44

Thank you pschyma for the helpful comment! I changed compiler to clang/clang++ and I was able to compile as well.

https://gist.github.com/cvnb/ea628c5f942c1b538448d44072f47e2e

Changes:
1. Version bumped to 3.1.23
2. Added clang to makedepends
3. Updated sha512sums array for new package 3.1.23
4. Added CC and CXX exports for clang

pschyma commented on 2017-06-25 08:30

Seems to be related to the v8 version used that cannot be compiled using the latest gcc. After downgrading to gcc 6.3.1 from 7.1.1 the build compiles again.

sleepycat commented on 2017-06-22 17:09

The build failures are being investigated. I'll get them sorted out soon, and get this back up to date.

a216 commented on 2017-06-10 05:12

Build sure is failing, an error after:
...
[93%] Built target arangoserver
make: *** [Makefile:152: all] Error 2
==> ERROR: A failure occurred in build()

guerch commented on 2017-06-06 22:16

build is failing

gregorybleiker commented on 2017-06-04 08:35

Is anyone working on a binary package for this? It takes like forever to compile this thing on my laptop... Would be willing to put some work into this.

All comments