I am trying to build couchbase 4.5 from source on sles12.
I am facing a lot of build issue related to v8.
Is there some online documentation on how to build it from source or a doc listing the required dependencies ?
There’s instructions for OpenSUSE at: https://github.com/couchbase/tlm#opensuse. You may have to adjust them for SLES12.
those instruction seem to out of date of 4.5.
Has anybody tried 4.5 build on any flavour of linux.
I am unable to figure out the version of v8 used as of now for my build.
To be more specific, the …/cbbuild/cbdeps/build-all-sherlock.sh
I am looking for a corresponding one for 4.5
The instructions are actually “newer” than 4.5 - they build the current master branch
You want to run
repo init with the manifest for the version you want -
released/4.5.1.xml perhaps - and then follow the build instructions as in tlm.
If you’re on a platform which Couchbase supports (centos6 centos7 debian7 debian8 suse11.2 ubuntu12.04 ubuntu14.04 windows_msvc) then the external dependancies (including V8) will automatically be downloaded from pre-built binaries (see tlm/manifest.cmake at master · couchbase/tlm · GitHub). If you’re building on a different platform, then you’ll have to ensure those 3rd party dependancies are available for CMake to locate them - for V8 see tlm/FindCouchbaseV8.cmake at master · couchbase/tlm · GitHub.
I’m trying to install Community edition 4.1.1 in openSUSE 42.2 I’m facing the dependency issue
– Reading global third-party dependencies manifest…
– Dependency breakpad (20160926-cb1) not declared for platform suse42.2, skipping…
– Dependency boost (1.62.0-cb1) not declared for platform suse42.2, skipping…
– Dependency v8 (4.8-cb4) not declared for platform suse42.2, skipping…
– Dependency v8 (5.2-cb1) not declared for platform suse42.2, skipping…
– Dependency v8 (4.8-cb5) not declared for platform suse42.2, skipping…
– Global third-party dependencies manifest complete
Could you please suggest ways to add above dependencies in openSUSE?
As per my previous comment, Couchbase only have pre-built binaries for our dependancies for the platforms which we support, and openSUSE 42.2 isn’t one of them.
You’ll need to install the dependancies (including V8) yourself, with whatever method they come packaged on openSUSE, and then you’ll need to ensure that CMake can locate them, as per the CMake file which I highlighted last time.
Alternatively, if you pick an OS which is supported you can just use the pre-compiled 3rd party dependancies.
I was able to build couchbase 4.5 on sles 12 by building v8 on my own.
But, I get alot of test failures which are in the couchdb (couchdb-mapreduce-01-map,02-old-index-cleanup
and many more) bucket.
They all fail due to a segfault. Attaching backtrace. Could you guys share the v8 build arguments you used to build v8, maybe that will help me filter.
EDIT: I am using v8 from https://github.com/v8/v8/tree/4.8-lkgr
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff49bf700 (LWP 17752)]
0x00007ffff174efaa in v8::internal::NativesCollection<(v8::internal::NativeType)0>::GetBuiltinsCount() () from /home/sodramin/v8/out/x64.release/lib.target/libv8.so
Missing separate debuginfos, use: zypper install glibc-debuginfo-2.19-17.72.x86_64 libgcc_s1-debuginfo-4.8.3+r212056-6.3.x86_64 libncurses5-debuginfo-5.9-40.124.x86_64 libstdc++6-debuginfo-4.8.3+r212056-6.3.x86_64
#0 0x00007ffff174efaa in v8::internal::NativesCollection<(v8::internal::NativeType)0>::GetBuiltinsCount() () from /home/sodramin/v8/out/x64.release/lib.target/libv8.so
#1 0x00007ffff145563c in v8::internal::Heap::CreateInitialObjects() () from /home/sodramin/v8/out/x64.release/lib.target/libv8.so
#2 0x00007ffff145d46d in v8::internal::Heap::CreateHeapObjects() () from /home/sodramin/v8/out/x64.release/lib.target/libv8.so
#3 0x00007ffff1547fbc in v8::internal::Isolate::Init(v8::internal::Deserializer*) () from /home/sodramin/v8/out/x64.release/lib.target/libv8.so
#4 0x00007ffff12b1599 in v8::Isolate::New(v8::Isolate::CreateParams const&) () from /home/sodramin/v8/out/x64.release/lib.target/libv8.so
#5 0x00007ffff1b0708e in doInitContext (funs=…, viewType=VIEW_INDEX_TYPE_MAPREDUCE, ctx=0x7ffff65403b8) at /home/sodramin/compile/couchbase/couchdb/src/mapreduce/mapreduce.cc:183
#6 initContext (ctx=ctx@entry=0x7ffff65403b8, funs=…, viewType=viewType@entry=VIEW_INDEX_TYPE_MAPREDUCE) at /home/sodramin/compile/couchbase/couchdb/src/mapreduce/mapreduce.cc:145
#7 0x00007ffff1b0132f in startMapContext (env=0x7ffff49bee60, argc=, argv=0x7ffff66c0080) at /home/sodramin/compile/couchbase/couchdb/src/mapreduce/mapreduce_nif.cc:104
#8 0x000000000055258e in process_main () at beam/beam_emu.c:3324
#9 0x000000000049db72 in sched_thread_func (vesdp=0x7ffff5800ac0) at beam/erl_process.c:6139
#10 0x00000000005c6f75 in thr_wrapper (vtwd=0x7fffffffd080) at pthread/ethread.c:106
#11 0x00007ffff70630a4 in start_thread () from /lib64/libpthread.so.0
#12 0x00007ffff6b907fd in clone () from /lib64/libc.so.6