make: "/usr/src/ArangoDB-2.7.0/Makefile" line 10489: warning: duplicate script for target "js/apps/system/_admin/aardvark/APP/frontend/js/modules/%.js" ignoredmake: "/usr/src/ArangoDB-2.7.0/Makefile" line 10486: warning: using previous script for "js/apps/system/_admin/aardvark/APP/frontend/js/modules/%.js" defined heremake: don't know how to make etc/arangodb/arango-dfdb.conf. Stop
make: stopped in /usr/src/ArangoDB-2.7.0
configure: configure started in '/usr/src/ArangoDB-2.7.0configure: with CC=''configure: with CXX=''configure: with CPPFLAGS=''configure: with CFLAGS=''configure: with CXXFLAGS=''configure: with LDFLAGS=''checking for go... goconfigure: ................................................................................configure: CHECKING BUILD SYSTEMconfigure: ................................................................................checking build system type... x86_64-unknown-freebsd10.1checking host system type... x86_64-unknown-freebsd10.1checking target system type... x86_64-unknown-freebsd10.1checking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... config/install-sh -c -dchecking for gawk... nochecking for mawk... nochecking for nawk... nawkchecking whether make sets $(MAKE)... yeschecking whether make supports nested variables... yeschecking whether make supports nested variables... (cached) yesconfigure: ................................................................................configure: CHECKING C/C++ COMPILER AND LINKERconfigure: ................................................................................checking for style of include used by make... GNUchecking for g++... nochecking for c++... c++checking whether the C++ compiler works... yeschecking for C++ compiler default output file name... a.outchecking for suffix of executables...checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C++ compiler... yeschecking whether c++ accepts -g... yeschecking dependency style of c++... gcc3checking how to run the C++ preprocessor... c++ -Echecking for gcc... nochecking for clang... clangchecking whether we are using the GNU C compiler... yeschecking whether clang accepts -g... yeschecking for clang option to accept ISO C89... none neededchecking whether clang understands -c and -o together... yeschecking dependency style of clang... gcc3checking whether we are using the GNU C++ compiler... (cached) yeschecking whether c++ accepts -g... (cached) yeschecking dependency style of c++... (cached) gcc3checking how to run the C preprocessor... clang -Echecking whether ln -s works... yeschecking whether make sets $(MAKE)... (cached) yeschecking whether c++ supports C++11 features by default... nochecking whether c++ supports C++11 features with -std=c++11... yeschecking -Wstrict-null-sentinel for c++... nochecking -Qunused-arguments for c++... yeschecking -std=gnu90 for clang... yeschecking -std=c++11 for c++... yeschecking whether C++ has support for std::unordered_map::emplace()... yeschecking for ranlib... ranlibchecking for special C compiler options needed for large files... nochecking for _FILE_OFFSET_BITS value needed for large files... noconfigure: ................................................................................configure: CHECKING FOR PTHREADSconfigure: ................................................................................checking for the pthreads library -lpthreads... nochecking whether pthreads work without any flags... nochecking whether pthreads work with -Kthread... nochecking whether pthreads work with -kthread... nochecking for the pthreads library -llthread... nochecking whether pthreads work with -pthread... yeschecking for joinable pthread attribute... PTHREAD_CREATE_JOINABLEchecking if more special flags are required for pthreads... -D_THREAD_SAFEchecking broken __cxa_guard... noconfigure: ................................................................................configure: CHECKING FOR DOCUMENTATION UTILSconfigure: ................................................................................checking for markdown... nochecking for html2text... nochecking whether to enable maintainer-specific portions of Makefiles... nochecking for futimes... yeschecking for clock_gettime... yesconfigure: --------------------------------------------------------------------------------configure: CHECKING FOR MATHconfigure: --------------------------------------------------------------------------------checking for sincos in -lm... noconfigure: --------------------------------------------------------------------------------configure: CHECKING FOR READLINEconfigure: --------------------------------------------------------------------------------checking for grep that handles long lines and -e... /usr/bin/grepchecking for egrep... /usr/bin/grep -Echecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking readline/readline.h usability... yeschecking readline/readline.h presence... yeschecking for readline/readline.h... yeschecking for readline in -lreadline... yeschecking READLINE support... readlinechecking READLINE version... 5.2configure: --------------------------------------------------------------------------------configure: CHECKING FOR OPENSSLconfigure: --------------------------------------------------------------------------------checking openssl/ssl.h usability... yeschecking openssl/ssl.h presence... yeschecking for openssl/ssl.h... yeschecking for CRYPTO_num_locks in -lcrypto... yeschecking for SSL_get_error in -lssl... yeschecking return type of SSLv23_method... SSL_METHOD*checking OPENSSL version... "OpenSSL 1.0.1j-freebsd 15 Oct 2014"checking whether your system knows about splice()... nochecking that generated files are newer than configure... doneconfigure: creating ./config.statusconfig.status: creating Makefileconfig.status: creating Installation/MacOSX/Bundle/Info.plistconfig.status: creating config/config.hconfig.status: creating lib/Basics/local-configuration.hconfig.status: executing depfiles commandsconfigure: --------------------------------------------------------------------------------configure: BISON: disabledconfigure: FIGURES: disabledconfigure: FLEX: disabledconfigure: GO BINARY: goconfigure: HTML2TEXT support: disabledconfigure: LOGGER: enabledconfigure: MARKDOWN support: disabledconfigure: RELATIVE PATHS: disabledconfigure: TCMALLOC support: disabledconfigure: TIMING: disabledconfigure: --------------------------------------------------------------------------------configure: READLINE VERSION: 5.2configure: READLINE_CPPFLAGS: -DTRI_READLINE_VERSION='"5.2"'configure: READLINE_LDFLAGS:configure: READLINE_LIBS: -lreadlineconfigure: .configure: OPENSSL VERSION: "OpenSSL 1.0.1j-freebsd 15 Oct 2014"configure: OPENSSL_CPPFLAGS:configure: OPENSSL_LDFLAGS:configure: OPENSSL_LIBS: -lssl -lcryptoconfigure: .configure: BOOST: 3rdParty versionconfigure: BOOST VERSION: 1.58.0configure: BOOST_CPPFLAGS: -I./3rdParty/boost/1.58.0configure: .configure: V8: 3rdParty versionconfigure: V8 VERSION: 4.3.61configure: V8_TARGET: x64.releaseconfigure: V8_CPPFLAGS: -I./3rdParty/V8-4.3.61/include -DTRI_V8_VERSION='"4.3.61"'configure: V8_LDFLAGS:configure: V8_LIBS: ./3rdParty/V8-4.3.61/out/x64.release/obj.target/tools/gyp/libv8_base.a ./3rdParty/V8-4.3.61/out/x64.release/obj.target/tools/gyp/libv8_libbase.a ./3rdParty/V8-4.3.61/out/x64.release/obj.target/tools/gyp/libv8_libplatform.a ./3rdParty/V8-4.3.61/out/x64.release/obj.target/tools/gyp/libv8_nosnapshot.a -lexecinfoconfigure: .configure: ICU: 3rdParty versionconfigure: ICU VERSION: 52.2configure: ICU_CPPFLAGS: -D_REENTRANT -I./3rdParty/V8-4.3.61/third_party/icu/source/common -I./3rdParty/V8-4.3.61/third_party/icu/source/i18n -I./3rdParty/V8-4.3.61/third_party/icu/source/ioconfigure: ICU_LDFLAGS:configure: ICU_LIBS: -ldl -lm ./3rdParty/V8-4.3.61/out/x64.release/obj.target/third_party/icu/libicui18n.a ./3rdParty/V8-4.3.61/out/x64.release/obj.target/third_party/icu/libicuuc.a ./3rdParty/V8-4.3.61/out/x64.release/obj.target/third_party/icu/libicudata.a -ldl -lmconfigure: .configure: LIBEV: 3rdParty versionconfigure: LIBEV VERSION: 4.11configure: LIBEV_CPPFLAGS: -I./3rdParty/libev -DTRI_LIBEV_VERSION='"4.11"'configure: LIBEV_LDFLAGS:configure: LIBEV_LIBS: ./3rdParty/libev/BUILD/.libs/libev.aconfigure: .configure: ZLIB: 3rdParty versionconfigure: ZLIB VERSION: 1.2.7configure: ZLIB_CPPFLAGS:configure: ZLIB_LDFLAGS:configure: ZLIB_LIBS: ./3rdParty/zlib-1.2.7/libz.aconfigure: --------------------------------------------------------------------------------configure: REPOSITORY VERSION:configure: BITS: 64configure: CPPFLAGS: -DTRI_BITS=64 -DHAVE_READLINE=1configure: CFLAGS: -std=gnu90 -g -O2 -Wall -Winit-self -Wno-long-long -Wno-variadic-macros -Wshadow -Wstrict-prototypes -Wdeclaration-after-statement -D_THREAD_SAFE -pthreadconfigure: CXXFLAGS: -std=c++11 -g -O2 -std=c++11 -Wall -Winit-self -Wno-long-long -Wno-variadic-macros -Woverloaded-virtual -Qunused-arguments -D_THREAD_SAFE -pthreadconfigure: LDFLAGS: -D_THREAD_SAFE -pthreadconfigure: LIBS:configure: CC: clangconfigure: CC VERSION: FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512Target: x86_64-unknown-freebsd10.1Thread model: posixconfigure: CXX: c++configure: CXX VERSION: FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512Target: x86_64-unknown-freebsd10.1Thread model: posixconfigure: --------------------------------------------------------------------------------
arango-dfdb.conf is just a configuration; so probably the make install fails for you?
Can you retry with V=1
so we get a little more output about whats it doing there?
prompt# make V=1
make: "/usr/src/ArangoDB-2.7.0/Makefile" line 10489: warning: duplicate script for target "js/apps/system/_admin/aardvark/APP/frontend/js/modules/%.js" ignoredmake: "/usr/src/ArangoDB-2.7.0/Makefile" line 10486: warning: using previous script for "js/apps/system/_admin/aardvark/APP/frontend/js/modules/%.js" defined heremake: don't know how to make etc/arangodb/arango-dfdb.conf. Stop
--------------------------------------------------------------------------------BUILDING V8--------------------------------------------------------------------------------
cd ./3rdParty/V8-4.3.61 \ export GYPFLAGS="-Dstandalone_static_library=1 -Dlinux_use_bundled_gold=0 -Dlinux_use_gold_flags=0" \ && gmake \ CC="clang" \ CC.host="clang" \ CXX="c++" \ CXX.host="c++" \ LINK="c++" \ CFLAGS="-O3 -fomit-frame-pointer -g " \ CXXFLAGS="-O3 -fomit-frame-pointer -g " \ library=static strictaliasing=off snapshot=off werror=no x64.releasecd: too many argumentsMakefile:10555: recipe for target '.v8-build-64' failedgmake: *** [.v8-build-64] Error 2
--------------------------------------------------------------------------------BUILDING V8--------------------------------------------------------------------------------
cd ./3rdParty/V8-4.3.61 \ && export GYPFLAGS="-Dstandalone_static_library=1 -Dlinux_use_bundled_gold=0 -Dlinux_use_gold_flags=0" \ && gmake \ CC="clang" \ CC.host="clang" \ CXX="c++" \ CXX.host="c++" \ LINK="c++" \ CFLAGS="-O3 -fomit-frame-pointer -g " \ CXXFLAGS="-O3 -fomit-frame-pointer -g " \ library=static strictaliasing=off snapshot=off werror=no x64.releasegmake[1]: Entering directory '/usr/src/arangodb/3rdParty/V8-4.3.61'PYTHONPATH="/usr/src/arangodb/3rdParty/V8-4.3.61/tools/generate_shim_headers:/usr/src/arangodb/3rdParty/V8-4.3.61/build::/usr/src/arangodb/3rdParty/V8-4.3.61/build/gyp/pylib:" \GYP_GENERATORS=make \build/gyp/gyp --generator-output="out" build/all.gyp \ -Ibuild/standalone.gypi --depth=. \ -Dv8_target_arch=x64 \ -Dtarget_arch=x64 \ \ -S.x64.release -Dstandalone_static_library=1 -Dlinux_use_bundled_gold=0 -Dlinux_use_gold_flags=0 -Dv8_enable_backtrace=1 -Dv8_use_snapshot='false' -Dwerror='' -Dv8_no_strict_aliasing=1 -Darm_fpu=default -Darm_float_abi=defaultbuild/gyp/gyp: not foundMakefile:425: recipe for target 'out/Makefile.x64.release' failedgmake[1]: *** [out/Makefile.x64.release] Error 127gmake[1]: Leaving directory '/usr/src/arangodb/3rdParty/V8-4.3.61'Makefile:10555: recipe for target '.v8-build-64' failedgmake: *** [.v8-build-64] Error 2
--
You received this message because you are subscribed to the Google Groups "ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arangodb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
export CC=/usr/local/bin/clang37
export CXX=/usr/local/bin/clang++37
export GYP_DEFINES=clang=1
cd 3rdParty/V8-4.3.61/
gmake clean
cd ../..
gmake clean
gmake setup
./configure --enable-relative
...Modify make file...
cd 3rdParty/V8-4.3.61/
gmake x64
cd ../..
gmake
In file included from arangod/Wal/RecoverState.h:34:In file included from ./arangod/Utils/transactions.h:34:./arangod/Utils/CollectionNameResolver.h:242:28: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] std::string name(std::move(getCollectionName(cid))); ^./arangod/Utils/CollectionNameResolver.h:242:28: note: remove std::move call here std::string name(std::move(getCollectionName(cid))); ^~~~~~~~~~ ~1 warning generated. CXX arangod/Wal/arangod_libarangod_a-RemoverThread.o CXX arangod/Wal/arangod_libarangod_a-Slot.o CXX arangod/Wal/arangod_libarangod_a-Slots.o CXX arangod/Wal/arangod_libarangod_a-SynchronizerThread.o AR arangod/libarangod.a CXX arangosh/ArangoShell/bin_arangob-ArangoClient.o CXX arangosh/Benchmark/bin_arangob-arangob.o CXXLD bin/arangobclang-3.7: error: no such file or directory: './3rdParty/V8-4.3.61/out/x64.release/obj.target/third_party/icu/libicuii8n.a'clang-3.7: error: no such file or directory: './3rdParty/V8-4.3.61/out/x64.release/obj.target/third_party/icu/libicuuu.a'clang-3.7: error: no such file or directory: './3rdParty/V8-4.3.61/out/x64.release/obj.target/third_party/icu/libicuddta.a'clang-3.7: error: no such file or directory: './3rdParty/V8-4.3.61/out/x64.release/obj.target/third_party/icu/libicuii8n.a'clang-3.7: error: no such file or directory: './3rdParty/V8-4.3.61/out/x64.release/obj.target/third_party/icu/libicuuu.a'clang-3.7: error: no such file or directory: './3rdParty/V8-4.3.61/out/x64.release/obj.target/third_party/icu/libicuddta.a'Makefile:3422: recipe for target 'bin/arangob' failedgmake[1]: *** [bin/arangob] Error 1gmake[1]: Leaving directory '/usr/src/arangodb'Makefile:2062: recipe for target 'all' failedgmake: *** [all] Error 2
CXXLD bin/arangosh CXX arangosh/ArangoShell/bin_arangoimp-ArangoClient.o CXX arangosh/V8Client/bin_arangoimp-ImportHelper.o CXX arangosh/V8Client/bin_arangoimp-arangoimp.o CXXLD bin/arangoimp CXX arangod/RestServer/bin_arangod-arangod.oIn file included from arangod/RestServer/arangod.cpp:37:In file included from ./arangod/RestServer/ArangoServer.h:39:In file included from ./arangod/Aql/QueryRegistry.h:33:In file included from ./arangod/Aql/Query.h:40:In file included from ./arangod/Utils/AqlTransaction.h:37:./arangod/Utils/CollectionNameResolver.h:242:28: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] std::string name(std::move(getCollectionName(cid))); ^./arangod/Utils/CollectionNameResolver.h:242:28: note: remove std::move call here std::string name(std::move(getCollectionName(cid))); ^~~~~~~~~~ ~1 warning generated. CXXLD bin/arangod
--------------------------------------------------------------------------------BUILDING etcd--------------------------------------------------------------------------------
cd ./3rdParty/etcd && ./build./build: not foundMakefile:10726: recipe for target 'bin/etcd-arango' failedgmake[1]: *** [bin/etcd-arango] Error 127gmake[1]: Leaving directory '/usr/src/arangodb'Makefile:2062: recipe for target 'all' failedgmake: *** [all] Error 2
../src/runtime/runtime-i18n.cc:630:37: error: reinterpret_cast from 'nullptr_t' to 'v8::internal::Smi *' is not allowed local_object->SetInternalField(1, reinterpret_cast<Smi*>(NULL)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi J Mathew,
Thanks for hints how to compile Arangodb on FreeBSD. I have used them as a good starting point.
My setup is FreeBSD 10.2-RELEASE-p2 without root privileges, and Arangodb 2.7.3.
Here is my (successful) method. I may miss something, but more or less is what I did:
1. Compilation & local instalation of gcc 5.3 system
2. Force to use the gcc toolchain, set CXX and CC to gcc 5.3 compilers paths
3. Add to CFLAGS and CXXFLAGS: -D_GLIBCXX_USE_C99
4. Add to LDFLAGS: -fno-use-linker-plugin
5. ./configure
6. Modification of Makefile: cd ./3rdParty/$(V8DIR) &&\ ('&&' characters, line ~10735)
7. Remove ‘-ldl’ from the Makefile
8. Modification of 3rdParty/V8-4.3.61/build/all.gyp: remove tests targets
9. Add a line ‘#include <stdio.h>’ to '3rdParty/V8-4.3.61/src/base/platform/platform-freebsd.cc'
10. gmake && gmake install
Now I’m a happy Arangodb user on FreeBSD machine:
INFO ArangoDB 2.7.3 [freebsd] 64bit, using ICU 54.1, V8 4.3.61, OpenSSL 1.0.2d 9 Jul 2015
Regards,
Szczepan