Giter Club home page Giter Club logo

Comments (19)

andybons avatar andybons commented on May 18, 2024

Have you fulfilled all prerequisites for building RocksDB?

https://github.com/cockroachdb/rocksdb/blob/master/INSTALL.md

from cockroach.

emilgpa avatar emilgpa commented on May 18, 2024

I installed the dependencies, and after i installed rocksdb by brew.

from cockroach.

emilgpa avatar emilgpa commented on May 18, 2024

If I install rocksdb by compiling (make check), it raises the same error. It is possible that rocksdb not is available for architecture 64 bits?

from cockroach.

andybons avatar andybons commented on May 18, 2024

It definitely is available for 64bit archs as it builds on OS X just fine in other cases

from cockroach.

cockroach-team avatar cockroach-team commented on May 18, 2024

I don't know much about OSX but it should definitely work. You may want to
check that nothing spills into your environment (certainly env -i exists
on a Mac?) or simply use the Docker images - those shouldn't have that
issue you're seeing and you can use them for development just fine.

Best,
Tobias

On Sat, Dec 6, 2014 at 4:52 AM, Andrew Bonventre [email protected]
wrote:

It definitely is available for 64bit archs as it builds on OS X just fine
in other cases


Reply to this email directly or view it on GitHub
#200 (comment)
.

You received this message because you are subscribed to the Google Groups
"Cockroach DB" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
For more options, visit https://groups.google.com/d/optout.

from cockroach.

tbg avatar tbg commented on May 18, 2024

In particular, check if RocksDB finds a lz4 library somewhere on your system. We've had issues before due to RocksDB taking whatever it can find, with sometimes unexpected results. Are you still looking at this @DasHaus?

from cockroach.

emilgpa avatar emilgpa commented on May 18, 2024

I installed LZ4 library by brew (brew is like as apt-get in linux), and it is installed in /usr/local/lib (together with rocksdb and the rest as bzip2, etc). And the error is the same, but if i go to _vendor/rocksdb (inside cockroachdb package) and I execute make shared_lib and I come back to the root of package and execute make clean and after make build then it builds sucessful, but when i run make test it raises the follow error:

make -C proto static_lib
make[1]: Nothing to be done for `static_lib'.
make -C roachlib static_lib
make[1]: Nothing to be done for `static_lib'.
make -C sql/parser
go test  -run ".*" "./..." -logtostderr -timeout 10s
?       github.com/cockroachdb/cockroach    [no test files]
ok      github.com/cockroachdb/cockroach/client 0.578s
ok      github.com/cockroachdb/cockroach/gossip 0.192s
ok      github.com/cockroachdb/cockroach/kv 6.222s
ok      github.com/cockroachdb/cockroach/multiraft  0.347s
ok      github.com/cockroachdb/cockroach/proto  0.033s
ok      github.com/cockroachdb/cockroach/rpc    0.727s
ok      github.com/cockroachdb/cockroach/rpc/codec  0.019s
?       github.com/cockroachdb/cockroach/rpc/codec/message.pb   [no test files]
?       github.com/cockroachdb/cockroach/rpc/codec/wire.pb  [no test files]
ok      github.com/cockroachdb/cockroach/server 0.724s
?       github.com/cockroachdb/cockroach/server/status  [no test files]
?       github.com/cockroachdb/cockroach/simulation [no test files]
ok      github.com/cockroachdb/cockroach/sql/parser 0.063s
W1208 16:41:08.880599   19553 id_alloc.go:91] allocator key is currently set at -1014; minID is 2; allocating again to skip 1016 IDs
I1208 16:41:08.894883   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.895027   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.895081   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.895140   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.895210   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.895276   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.895415   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.895540   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.895690   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.895783   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.895881   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.895949   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.896024   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.896104   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.896169   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.896235   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.896306   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.896390   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.896462   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.896538   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.896613   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.896693   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.896895   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.897043   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.897156   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.897300   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.897408   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.897505   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.897604   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.897706   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.897798   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.897889   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.897992   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.898088   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.898199   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.898351   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.898704   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.898824   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.898939   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.899048   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.899158   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.899282   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.899390   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.899511   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.899924   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.900050   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.900181   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.900309   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.900433   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.933835   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
I1208 16:41:08.933880   19553 response_cache.go:108] waiting on cmdID: wall_time:1 random:1 
libc++abi.dylib: terminating with uncaught exception of type std::length_error: vector
SIGABRT: abort
PC=0x7fff90d6a282
signal arrived during cgo execution

goroutine 319 [syscall]:
runtime.cgocall(0x4001800, 0x5caf958)
    /usr/local/go/src/pkg/runtime/cgocall.c:143 +0xe5 fp=0x5caf940 sp=0x5caf8f8
github.com/cockroachdb/cockroach/storage/engine._Cfunc_DBOpen(0xc208144a80, 0xc2081ba2d0, 0x46, 0x40000000, 0xc2081820f0, 0x9, 0xc208182110, 0x9, 0x0, 0x4001940, ...)
    github.com/cockroachdb/cockroach/storage/engine/_obj/_cgo_defun.c:286 +0x36 fp=0x5caf958 sp=0x5caf940
github.com/cockroachdb/cockroach/storage/engine.(*RocksDB).Start(0xc208144a80, 0x0, 0x0)
    /Users/emilio/go/src/github.com/cockroachdb/cockroach/storage/engine/rocksdb.go:108 +0x3ba fp=0x5cafb98 sp=0x5caf958
github.com/cockroachdb/cockroach/storage.TestResponseCacheGC(0xc20809e900)
    /Users/emilio/go/src/github.com/cockroachdb/cockroach/storage/response_cache_test.go:239 +0x1ae fp=0x5caff68 sp=0x5cafb98
testing.tRunner(0xc20809e900, 0x4992f68)
    /usr/local/go/src/pkg/testing/testing.go:422 +0x8b fp=0x5caff98 sp=0x5caff68
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1445 fp=0x5caffa0 sp=0x5caff98
created by testing.RunTests
    /usr/local/go/src/pkg/testing/testing.go:504 +0x8db

goroutine 16 [chan receive]:
testing.RunTests(0x4796da0, 0x4992a40, 0x5c, 0x5c, 0x4212e01)
    /usr/local/go/src/pkg/testing/testing.go:505 +0x923
testing.Main(0x4796da0, 0x4992a40, 0x5c, 0x5c, 0x4993f00, 0x0, 0x0, 0x4993f00, 0x0, 0x0)
    /usr/local/go/src/pkg/testing/testing.go:435 +0x84
main.main()
    github.com/cockroachdb/cockroach/storage/_test/_testmain.go:231 +0x9c

goroutine 19 [finalizer wait]:
runtime.park(0x4014df0, 0x49b0610, 0x49920c9)
    /usr/local/go/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0x49b0610, 0x49920c9)
    /usr/local/go/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
    /usr/local/go/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1445

goroutine 20 [chan receive]:
github.com/golang/glog.(*loggingT).flushDaemon(0x49b2e80)
    /Users/emilio/go/src/github.com/golang/glog/glog.go:879 +0x75
created by github.com/golang/glog.init·1
    /Users/emilio/go/src/github.com/golang/glog/glog.go:410 +0x2b2

goroutine 17 [syscall]:
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1445

goroutine 49 [select]:
github.com/cockroachdb/cockroach/storage.(*Range).startGossip(0xc2080ad3b0)
    /Users/emilio/go/src/github.com/cockroachdb/cockroach/storage/range.go:520 +0xe6
created by github.com/cockroachdb/cockroach/storage.(*Range).start
    /Users/emilio/go/src/github.com/cockroachdb/cockroach/storage/range.go:192 +0x99

goroutine 50 [select]:
github.com/cockroachdb/cockroach/storage.(*Store).processRaft(0xc20807a0e0, 0xc208004060)
    /Users/emilio/go/src/github.com/cockroachdb/cockroach/storage/store.go:812 +0x2ce
created by github.com/cockroachdb/cockroach/storage.(*Store).Start
    /Users/emilio/go/src/github.com/cockroachdb/cockroach/storage/store.go:285 +0x5bf

goroutine 80 [select]:
github.com/cockroachdb/cockroach/storage.(*Store).processRaft(0xc20807a7e0, 0xc208004000)
    /Users/emilio/go/src/github.com/cockroachdb/cockroach/storage/store.go:812 +0x2ce
created by github.com/cockroachdb/cockroach/storage.(*Store).Start
    /Users/emilio/go/src/github.com/cockroachdb/cockroach/storage/store.go:285 +0x5bf

goroutine 79 [select]:
github.com/cockroachdb/cockroach/storage.(*Range).startGossip(0xc2080e5420)
    /Users/emilio/go/src/github.com/cockroachdb/cockroach/storage/range.go:520 +0xe6
created by github.com/cockroachdb/cockroach/storage.(*Range).start
    /Users/emilio/go/src/github.com/cockroachdb/cockroach/storage/range.go:192 +0x99

rax     0x0
rbx     0x6
rcx     0x7fff5fbfe4c8
rdx     0x0
rdi     0x30b
rsi     0x6
rbp     0x7fff5fbfe4f0
rsp     0x7fff5fbfe4c8
r8      0x0
r9      0x7fff975d4d90
r10     0x8000000
r11     0x206
r12     0x7fff5fbfe650
r13     0x7
r14     0x7fff7b3f7300
r15     0x7fff5fbfe530
rip     0x7fff90d6a282
rflags  0x206
cs      0x7
fs      0x0
gs      0x0
FAIL    github.com/cockroachdb/cockroach/storage    0.285s
libc++abi.dylib: terminating with uncaught exception of type std::length_error: vector
SIGABRT: abort
PC=0x7fff90d6a282
signal arrived during cgo execution

goroutine 30 [syscall]:
runtime.cgocall(0x40013d0, 0x4c54a80)
    /usr/local/go/src/pkg/runtime/cgocall.c:143 +0xe5 fp=0x4c54a68 sp=0x4c54a20
github.com/cockroachdb/cockroach/storage/engine._Cfunc_DBOpen(0xc208004900, 0xc2080a5c20, 0x4a, 0x40000000, 0xc208001bf0, 0x9, 0xc208001c10, 0x9, 0x0, 0x4001510, ...)
    github.com/cockroachdb/cockroach/storage/engine/_test/_obj_test/_cgo_defun.c:286 +0x36 fp=0x4c54a80 sp=0x4c54a68
github.com/cockroachdb/cockroach/storage/engine.(*RocksDB).Start(0xc208004900, 0x0, 0x0)
    /Users/emilio/go/src/github.com/cockroachdb/cockroach/storage/engine/rocksdb.go:108 +0x3ba fp=0x4c54cc0 sp=0x4c54a80
github.com/cockroachdb/cockroach/storage/engine.runWithAllEngines(0x4c54f40, 0xc20805d290)
    /Users/emilio/go/src/github.com/cockroachdb/cockroach/storage/engine/engine_test.go:61 +0x381 fp=0x4c54ef0 sp=0x4c54cc0
github.com/cockroachdb/cockroach/storage/engine.TestEngineWriteBatch(0xc20805d290)
    /Users/emilio/go/src/github.com/cockroachdb/cockroach/storage/engine/engine_test.go:124 +0xfa fp=0x4c54f68 sp=0x4c54ef0
testing.tRunner(0xc20805d290, 0x47f6360)
    /usr/local/go/src/pkg/testing/testing.go:422 +0x8b fp=0x4c54f98 sp=0x4c54f68
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1445 fp=0x4c54fa0 sp=0x4c54f98
created by testing.RunTests
    /usr/local/go/src/pkg/testing/testing.go:504 +0x8db

goroutine 16 [chan receive]:
testing.RunTests(0x46545e8, 0x47f62a0, 0x46, 0x46, 0xc208000e01)
    /usr/local/go/src/pkg/testing/testing.go:505 +0x923
testing.Main(0x46545e8, 0x47f62a0, 0x46, 0x46, 0x47f1920, 0x3, 0x3, 0x47f8ba0, 0x0, 0x0)
    /usr/local/go/src/pkg/testing/testing.go:435 +0x84
main.main()
    github.com/cockroachdb/cockroach/storage/engine/_test/_testmain.go:191 +0x9c

goroutine 19 [finalizer wait]:
runtime.park(0x40148c0, 0x4815290, 0x47f7609)
    /usr/local/go/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0x4815290, 0x47f7609)
    /usr/local/go/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
    /usr/local/go/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1445

goroutine 20 [chan receive]:
github.com/golang/glog.(*loggingT).flushDaemon(0x48176a0)
    /Users/emilio/go/src/github.com/golang/glog/glog.go:879 +0x75
created by github.com/golang/glog.init·1
    /Users/emilio/go/src/github.com/golang/glog/glog.go:410 +0x2b2

goroutine 17 [syscall]:
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1445

rax     0x0
rbx     0x6
rcx     0x7fff5fbfe4b8
rdx     0x0
rdi     0x30b
rsi     0x6
rbp     0x7fff5fbfe4e0
rsp     0x7fff5fbfe4b8
r8      0x0
r9      0x7fff975d4d90
r10     0x8000000
r11     0x206
r12     0x7fff5fbfe640
r13     0x7
r14     0x7fff7b3f7300
r15     0x7fff5fbfe520
rip     0x7fff90d6a282
rflags  0x206
cs      0x7
fs      0x0
gs      0x0
FAIL    github.com/cockroachdb/cockroach/storage/engine 0.144s
ok      github.com/cockroachdb/cockroach/structured 0.152s
ok      github.com/cockroachdb/cockroach/util   0.725s
ok      github.com/cockroachdb/cockroach/util/encoding  0.020s
ok      github.com/cockroachdb/cockroach/util/hlc   0.017s
?       github.com/cockroachdb/cockroach/util/log   [no test files]
ok      github.com/cockroachdb/cockroach/util/metrics   0.024s
make: *** [test] Error 1

from cockroach.

tbg avatar tbg commented on May 18, 2024

Try starting from scratch again, running everything inside of an appropriate invocation of env, i.e. something like

env -i GOROOT="$GOROOT" GOPATH="$GOPATH" PATH="$PATH" ./bootstrap.sh

I suspect that you have a bunch of stuff on your system and RocksDB sees that only sometimes. For example, we don't vendor in LZ4 so ideally RocksDB shouldn't find it.

from cockroach.

emilgpa avatar emilgpa commented on May 18, 2024

Ok, I cloned again cockroachdb, and I execute inside of package:

  • env -i GOROOT="$GOROOT" GOPATH="$GOPATH" PATH="$PATH" ./bootstrap.sh
  • env -i GOROOT="$GOROOT" GOPATH="$GOPATH" PATH="$PATH" make build

but I get the same error:

make -C proto static_lib
make[1]: Nothing to be done for `static_lib'.
make -C roachlib static_lib
make[1]: Nothing to be done for `static_lib'.
make -C sql/parser
go build  -i -o cockroach
# github.com/cockroachdb/cockroach/storage/engine
Undefined symbols for architecture x86_64:
  "_LZ4_compressBound", referenced from:
      rocksdb::BlockBasedTableBuilder::WriteBlock(rocksdb::Slice const&, rocksdb::BlockHandle*) in librocksdb.a(block_based_table_builder.o)
  "_LZ4_compressHC2_limitedOutput", referenced from:
      rocksdb::BlockBasedTableBuilder::WriteBlock(rocksdb::Slice const&, rocksdb::BlockHandle*) in librocksdb.a(block_based_table_builder.o)
  "_LZ4_compress_limitedOutput", referenced from:
      rocksdb::BlockBasedTableBuilder::WriteBlock(rocksdb::Slice const&, rocksdb::BlockHandle*) in librocksdb.a(block_based_table_builder.o)
  "_LZ4_decompress_safe_partial", referenced from:
      rocksdb::UncompressBlockContents(char const*, unsigned long, rocksdb::BlockContents*) in librocksdb.a(format.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [build] Error 2

If LZ4 is not necessary, then I am doing something wrong .. haha. But, what can be?

Thanks.

from cockroach.

bdarnell avatar bdarnell commented on May 18, 2024

Can you uninstall LZ4 from homebrew? If not, you may be better off working in a linux VM, or helping us refactor the rocksdb installation. The problem is that rocksdb's build is too smart and tries to detect which libraries are present automatically. We need to set the *_FLAGS variables explicitly for the libraries we want to use and then turn on FBCODE_BUILD to disable the magic in rocksdb's build_detect_platform script.

from cockroach.

emilgpa avatar emilgpa commented on May 18, 2024

Oook! It works! I uninstalled lz4, bzip2, gflags, etc etc (I installed all this by brew). I restart the computer, and I retry it by the steps in CONTRIBUTING.md:

  • go get -d github.com/cockroachdb/cockroach
  • ./bootstrap.sh
  • make build
  • make test

and already works.

Thanks at all!

from cockroach.

spencerkimball avatar spencerkimball commented on May 18, 2024

Should we maybe add a note about this to CONTRIBUTING.md?

from cockroach.

andybons avatar andybons commented on May 18, 2024

Just ran into this too and I agree it warrants a note. It may be sufficient simply removing "prerequisites for building RocksDB" as that link is where it tells you to install lz4, bzip2, etc.

from cockroach.

cockroach-team avatar cockroach-team commented on May 18, 2024

I'm getting the exact error on OSX, and then tried to rebuild without dependencies installed with brew.

However, I'm getting into this on latest master:

github.com/cockroachdb/cockroach/multiraft.NewMultiRaft: github.com/coreos/etcd/raft.StartMultiNode: not defined
type.github.com/cockroachdb/cockroach/multiraft.MultiRaft: type.github.com/coreos/etcd/raft.MultiNode: not defined
github.com/cockroachdb/cockroach/multiraft.NewMultiRaft: undefined: github.com/coreos/etcd/raft.StartMultiNode
type.github.com/cockroachdb/cockroach/multiraft.MultiRaft: undefined: type.github.com/coreos/etcd/raft.MultiNode

I'm not very familiar with go yet, and I see it's defined in the _vendor coreOs path. How do I make it so it can pick it up from there?

On Wednesday, December 10, 2014 10:05:20 AM UTC-8, Andrew Bonventre wrote:

Just ran into this too and I agree it warrants a note. It may be sufficient simply removing "prerequisites for building RocksDB" as that link is where it tells you to install lz4, bzip2, etc.


Reply to this email directly or view it on GitHub.

from cockroach.

andybons avatar andybons commented on May 18, 2024

Can you paste your full shell output (command and all)?

from cockroach.

tnachen avatar tnachen commented on May 18, 2024

Timothys-MacBook-Pro :: github.com/cockroachdb/cockroach ‹master› » make build
sed -e "s,@pwd@,/Users/tnachen/go/src/github.com/cockroachdb/cockroach,g" -e "s,@LDEXTRA@,-lc++,g" < storage/engine/engine.pc.in > storage/engine/engine.pc
make -C proto static_lib
protoc --gogo_out=. --cpp_out=lib --proto_path=.:../../../../:../../../../code.google.com/p/gogoprotobuf/protobuf:../../../../code.google.com/p/gogoprotobuf/gogoproto api.proto config.proto data.proto errors.proto gossip.proto heartbeat.proto internal.proto
protoc --cpp_out=lib --proto_path=../../../../:../../../../code.google.com/p/gogoprotobuf/protobuf:../../../../code.google.com/p/gogoprotobuf/gogoproto ../../../../code.google.com/p/gogoprotobuf/gogoproto/gogo.proto
c++ -Ilib -c lib/api.pb.cc -o lib/api.pb.o
c++ -Ilib -c lib/config.pb.cc -o lib/config.pb.o
c++ -Ilib -c lib/data.pb.cc -o lib/data.pb.o
c++ -Ilib -c lib/errors.pb.cc -o lib/errors.pb.o
c++ -Ilib -c lib/gossip.pb.cc -o lib/gossip.pb.o
c++ -Ilib -c lib/heartbeat.pb.cc -o lib/heartbeat.pb.o
c++ -Ilib -c lib/internal.pb.cc -o lib/internal.pb.o
c++ -Ilib -c lib/code.google.com/p/gogoprotobuf/gogoproto/gogo.pb.cc -o lib/code.google.com/p/gogoprotobuf/gogoproto/gogo.pb.o
rm -f lib/libroachproto.a
ar -rsv lib/libroachproto.a lib/api.pb.o lib/config.pb.o lib/data.pb.o lib/errors.pb.o lib/gossip.pb.o lib/heartbeat.pb.o lib/internal.pb.o lib/code.google.com/p/gogoprotobuf/gogoproto/gogo.pb.o
ar: creating archive lib/libroachproto.a
a - lib/api.pb.o
a - lib/config.pb.o
a - lib/data.pb.o
a - lib/errors.pb.o
a - lib/gossip.pb.o
a - lib/heartbeat.pb.o
a - lib/internal.pb.o
a - lib/code.google.com/p/gogoprotobuf/gogoproto/gogo.pb.o
make -C roachlib static_lib
echo path is /Users/tnachen/go/src/github.com/cockroachdb/cockroach/_vendor/usr/include:/Users/tnachen/go/src/github.com/cockroachdb/cockroach/_vendor/usr/include
path is /Users/tnachen/go/src/github.com/cockroachdb/cockroach/_vendor/usr/include:/Users/tnachen/go/src/github.com/cockroachdb/cockroach/_vendor/usr/include
c++ -std=c++11 -I../proto/lib -I../_vendor/rocksdb/include -c db.cc -o db.o
rm -f libroach.a
ar -rsv libroach.a db.o
ar: creating archive libroach.a
a - db.o
make -C sql/parser
go build -i -o cockroach

github.com/cockroachdb/cockroach

github.com/cockroachdb/cockroach/multiraft.NewMultiRaft: github.com/coreos/etcd/raft.StartMultiNode: not defined
type.github.com/cockroachdb/cockroach/multiraft.MultiRaft: type.github.com/coreos/etcd/raft.MultiNode: not defined
github.com/cockroachdb/cockroach/multiraft.NewMultiRaft: undefined: github.com/coreos/etcd/raft.StartMultiNode
type.github.com/cockroachdb/cockroach/multiraft.MultiRaft: undefined: type.github.com/coreos/etcd/raft.MultiNode
make: *** [build] Error 2

from cockroach.

bdarnell avatar bdarnell commented on May 18, 2024

Looks like you might need to run git submodule update --init or bootstrap.sh again.

from cockroach.

tnachen avatar tnachen commented on May 18, 2024

Tried that couple of times and still getting the same result. Any suggestions?

from cockroach.

tnachen avatar tnachen commented on May 18, 2024

I just got it to work! Had to remove pkgs folder and do bootstrap and build again.
Thanks all.

from cockroach.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.