Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck in rocksdb installing when make install-rocksdb-ull #16

Closed
lni opened this issue Jan 11, 2019 · 10 comments
Closed

Stuck in rocksdb installing when make install-rocksdb-ull #16

lni opened this issue Jan 11, 2019 · 10 comments
Labels
question Further information is requested

Comments

@lni
Copy link
Owner

lni commented Jan 11, 2019

Stuck in rocksdb installing when make install-rocksdb-ull,anyone help?

gzip: stdin: unexpected end of file
rocksdb-5.13.4/monitoring/instrumented_mutex.cc
rocksdb-5.13.4/monitoring/instrumented_mutex.h
rocksdb-5.13.4/monitoring/iostats_context.cc
rocksdb-5.13.4/monitoring/iostats_context_imp.h
rocksdb-5.13.4/monitoring/iostats_context_test.cc
rocksdb-5.13.4/monitoring/perf_context.cc
rocksdb-5.13.4/monitoring/perf_context_imp.h
rocksdb-5.13.4/monitoring/perf_level.cc
rocksdb-5.13.4/monitoring/perf_level_imp.h
rocksdb-5.13.4/monitoring/perf_step_timer.h
rocksdb-5.13.4/monitoring/statistics.cc
rocksdb-5.13.4/monitoring/statistics.h
rocksdb-5.13.4/monitoring/statistics_test.cc
rocksdb-5.13.4/monitoring/thread_status_impl.cc
rocksdb-5.13.4/monitoring/thread_status_updater.cc
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
make: *** [get-rocksdb] Error 2

Originally posted by @funlake in #4 (comment)

@lni
Copy link
Owner Author

lni commented Jan 11, 2019

@funlake, it seems you got a incomplete/corrupted rocksdb .tar.gz file.

Could you please try again and see what happens?

@lni
Copy link
Owner Author

lni commented Jan 13, 2019

@funlake, do you still experience the above reported problem?

@funlake
Copy link

funlake commented Jan 14, 2019

I will try again and see what happen

@funlake
Copy link

funlake commented Jan 14, 2019

Still got bad luck.

make[1]: Entering directory `/home/wwwroot/goroot/src/github.com/lni/dragonboat/build/rocksdbtmp/rocksdb-5.13.4'
  GEN      util/build_version.cc
make[1]: Leaving directory `/home/wwwroot/goroot/src/github.com/lni/dragonboat/build/rocksdbtmp/rocksdb-5.13.4'
make[1]: Entering directory `/home/wwwroot/goroot/src/github.com/lni/dragonboat/build/rocksdbtmp/rocksdb-5.13.4'
  GEN      util/build_version.cc
  CC       shared-objects/cache/sharded_cache.o
  CC       shared-objects/cache/lru_cache.o
  CC       shared-objects/cache/clock_cache.o
  CC       shared-objects/db/builder.o
  CC       shared-objects/db/c.o
  CC       shared-objects/db/column_family.o
  CC       shared-objects/db/compacted_db_impl.o
  CC       shared-objects/db/compaction.o
  CC       shared-objects/db/compaction_iterator.o
  CC       shared-objects/db/compaction_job.o
  CC       shared-objects/db/compaction_picker_universal.o
  CC       shared-objects/db/compaction_picker.o
  CC       shared-objects/db/convenience.o
  CC       shared-objects/db/db_filesnapshot.o
  CC       shared-objects/db/db_impl.o
  CC       shared-objects/db/db_impl_compaction_flush.o
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make[1]: *** [shared-objects/db/c.o] Error 4
make[1]: *** Waiting for unfinished jobs....
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make[1]: *** [shared-objects/db/convenience.o] Error 4

@funlake
Copy link

funlake commented Jan 14, 2019

my gcc version

[root@cpe-172-72-33-11 dragonboat]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) 

@lni
Copy link
Owner Author

lni commented Jan 14, 2019

It seems to me that you now have a complete rocksdb source package, but your gcc 4.8.5 shipped with Redhat Linux had a crash when compiling rocksdb 5.13.4.

Please update your dragonboat version to the latest in Master and try

ROCKSDB_VER=5.16.6 make install-rocksdb-ull

If this still doesn't work for you, then you may want to upgrade your GCC to a more recent version. From memory, GCC 4.8 is the first GCC release with C++11 support, that might explain why it crashed in your case.

@lni
Copy link
Owner Author

lni commented Jan 14, 2019

Don't know much about yum/Redhat, but a quick search returned the following article that might help you to get GCC 7 in a few minutes.

https://stackoverflow.com/questions/36327805/how-to-install-gcc-5-3-with-yum-on-centos-7-2

@funlake
Copy link

funlake commented Jan 15, 2019

Ok,i will try later.thanks

@funlake
Copy link

funlake commented Jan 16, 2019

My workmate just smoothly done the installation under gcc 6.1,so i think this is not an issue of dragonboat. i think we can close it now.:-)

@lni
Copy link
Owner Author

lni commented Jan 16, 2019

Cool, let me know if you have any other questions on how to use dragonboat. Have fun!

@lni lni closed this as completed Jan 16, 2019
@lni lni added the question Further information is requested label Jan 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants