-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
bootstrapping vitess fails on mysql #61
Comments
Hi Jens, |
This is an issue with GCC and its libraries. I find that if you compile in a container with an older GCC, it will run fine on later versions of the runtime libraries. On Jun 29, 2014, at 1:51 AM, sougou notifications@github.com wrote:
|
Hi sougou, Precise is fine for me. Thanks. |
May be it is a good idea to work in a docker development container like docker self. Take a look here https://github.com/dotcloud/docker. |
Yes we are seriously considering that option, as development time permits... On Mon, Jun 30, 2014 at 3:27 PM, Jens Frederich notifications@github.com
|
…rpcs `slack-vitess-r14.0.5`: Revert "delete RPCs that were deprecated in 13.0 (vitessio#10099)"
I've cloned vitess in a new clean environment on my Ubuntu 14.04 LTS 64-bit system. Bootstrapping fails of mysql fails:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./src -I./src -g2 -O2 -fno-strict-aliasing -fno-omit-frame-pointer -I/home/frederich/vitess/src/github.com/youtube/vitess/third_party/mysql/ncurses/include -I/home/frederich/vitess/src/github.com/youtube/vitess/third_party/mysql/ncurses/include -DHAVE_TERM_H -DUNIV_LINUX -DUNIV_LINUX -MT thread_lister.lo -MD -MP -MF .deps/thread_lister.Tpo -c src/base/thread_lister.c -fPIC -DPIC -o .libs/thread_lister.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./src -I./src -g2 -O2 -fno-strict-aliasing -fno-omit-frame-pointer -I/home/frederich/vitess/src/github.com/youtube/vitess/third_party/mysql/ncurses/include -I/home/frederich/vitess/src/github.com/youtube/vitess/third_party/mysql/ncurses/include -DHAVE_TERM_H -DUNIV_LINUX -DUNIV_LINUX -MT thread_lister.lo -MD -MP -MF .deps/thread_lister.Tpo -c src/base/thread_lister.c -fPIC -DPIC -o thread_lister.o >/dev/null 2>&1
In file included from src/tcmalloc.cc:116:0:
src/packed-cache-inl.h: In constructor ‘PackedCache<kKeybits, T>::PackedCache(PackedCache<kKeybits, T>::V)’:
src/packed-cache-inl.h:148:47: warning: typedef ‘key_size’ locally defined but not used [-Wunused-local-typedefs]
COMPILE_ASSERT(kKeybits <= sizeof(K) * 8, key_size);
^
src/base/basictypes.h:188:39: note: in definition of macro ‘COMPILE_ASSERT’
typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
^
src/packed-cache-inl.h:149:49: warning: typedef ‘value_size’ locally defined but not used [-Wunused-local-typedefs]
COMPILE_ASSERT(kValuebits <= sizeof(V) * 8, value_size);
^
src/base/basictypes.h:188:39: note: in definition of macro ‘COMPILE_ASSERT’
typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
^
src/packed-cache-inl.h:150:43: warning: typedef ‘hash_function’ locally defined but not used [-Wunused-local-typedefs]
COMPILE_ASSERT(kHashbits <= kKeybits, hash_function);
^
src/base/basictypes.h:188:39: note: in definition of macro ‘COMPILE_ASSERT’
typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
^
src/packed-cache-inl.h:152:20: warning: typedef ‘entry_size_must_be_big_enough’ locally defined but not used [-Wunused-local-typedefs]
entry_size_must_be_big_enough);
^
src/base/basictypes.h:188:39: note: in definition of macro ‘COMPILE_ASSERT’
typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
^
src/sampler.h: In static member function ‘static double tcmalloc::Sampler::FastLog2(const double&)’:
src/sampler.h:168:49: warning: typedef ‘DoubleMustBe64Bits’ locally defined but not used [-Wunused-local-typedefs]
COMPILE_ASSERT(sizeof(d) == sizeof(uint64_t), DoubleMustBe64Bits);
^
src/base/basictypes.h:188:39: note: in definition of macro ‘COMPILE_ASSERT’
typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
^
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -pthread -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -g2 -O2 -fno-strict-aliasing -fno-omit-frame-pointer -I/home/frederich/vitess/src/github.com/youtube/vitess/third_party/mysql/ncurses/include -I/home/frederich/vitess/src/github.com/youtube/vitess/third_party/mysql/ncurses/include -DHAVE_TERM_H -fno-rtti -MT libtcmalloc_la-linuxthreads.lo -MD -MP -MF .deps/libtcmalloc_la-linuxthreads.Tpo -c src/base/linuxthreads.cc -fPIC -DPIC -o .libs/libtcmalloc_la-linuxthreads.o
In file included from src/base/commandlineflags.h:55:0,
from src/debugallocation.cc:68:
src/packed-cache-inl.h: In constructor ‘PackedCache<kKeybits, T>::PackedCache(PackedCache<kKeybits, T>::V)’:
src/packed-cache-inl.h:148:47: warning: typedef ‘key_size’ locally defined but not used [-Wunused-local-typedefs]
COMPILE_ASSERT(kKeybits <= sizeof(K) * 8, key_size);
^
./src/base/basictypes.h:188:39: note: in definition of macro ‘COMPILE_ASSERT’
typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
^
src/packed-cache-inl.h:149:49: warning: typedef ‘value_size’ locally defined but not used [-Wunused-local-typedefs]
COMPILE_ASSERT(kValuebits <= sizeof(V) * 8, value_size);
^
./src/base/basictypes.h:188:39: note: in definition of macro ‘COMPILE_ASSERT’
typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
^
src/packed-cache-inl.h:150:43: warning: typedef ‘hash_function’ locally defined but not used [-Wunused-local-typedefs]
COMPILE_ASSERT(kHashbits <= kKeybits, hash_function);
^
./src/base/basictypes.h:188:39: note: in definition of macro ‘COMPILE_ASSERT’
typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
^
src/packed-cache-inl.h:152:20: warning: typedef ‘entry_size_must_be_big_enough’ locally defined but not used [-Wunused-local-typedefs]
entry_size_must_be_big_enough);
^
./src/base/basictypes.h:188:39: note: in definition of macro ‘COMPILE_ASSERT’
typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
^
src/sampler.h: In static member function ‘static double tcmalloc::Sampler::FastLog2(const double&)’:
src/sampler.h:168:49: warning: typedef ‘DoubleMustBe64Bits’ locally defined but not used [-Wunused-local-typedefs]
COMPILE_ASSERT(sizeof(d) == sizeof(uint64_t), DoubleMustBe64Bits);
^
./src/base/basictypes.h:188:39: note: in definition of macro ‘COMPILE_ASSERT’
typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
^
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -pthread -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -g2 -O2 -fno-strict-aliasing -fno-omit-frame-pointer -I/home/frederich/vitess/src/github.com/youtube/vitess/third_party/mysql/ncurses/include -I/home/frederich/vitess/src/github.com/youtube/vitess/third_party/mysql/ncurses/include -DHAVE_TERM_H -fno-rtti -MT libtcmalloc_la-heap-checker.lo -MD -MP -MF .deps/libtcmalloc_la-heap-checker.Tpo -c src/heap-checker.cc -fPIC -DPIC -o .libs/libtcmalloc_la-heap-checker.o
src/base/linuxthreads.cc: In function ‘void ListerThread(ListerParams_)’:
src/base/linuxthreads.cc:312:22: error: invalid conversion from ‘void ()(int, siginfo_t, void_)’ to ‘void ()(int, siginfo, void_)’ [-fpermissive]
sa.sa_sigaction_ = SignalHandler;
^
make[1]: ** [libtcmalloc_la-linuxthreads.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from src/heap-checker.cc:78:0:
src/heap-checker.cc: In static member function ‘static int HeapLeakChecker::IgnoreLiveThreadsLocked(void, int, pid_t_, _va_list_tag)’:
src/heap-checker.cc:1017:22: warning: typedef ‘SP_register_does_not_look_like_a_pointer’ locally defined but not used [-Wunused-local-typedefs]
SP_register_does_not_look_like_a_pointer);
^
src/base/basictypes.h:188:39: note: in definition of macro ‘COMPILE_ASSERT’
typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
^
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -pthread -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -g2 -O2 -fno-strict-aliasing -fno-omit-frame-pointer -I/home/frederich/vitess/src/github.com/youtube/vitess/third_party/mysql/ncurses/include -I/home/frederich/vitess/src/github.com/youtube/vitess/third_party/mysql/ncurses/include -DHAVE_TERM_H -fno-rtti -MT libtcmalloc_la-tcmalloc.lo -MD -MP -MF .deps/libtcmalloc_la-tcmalloc.Tpo -c src/tcmalloc.cc -fPIC -DPIC -o libtcmalloc_la-tcmalloc.o >/dev/null 2>&1
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -pthread -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -g2 -O2 -fno-strict-aliasing -fno-omit-frame-pointer -I/home/frederich/vitess/src/github.com/youtube/vitess/third_party/mysql/ncurses/include -I/home/frederich/vitess/src/github.com/youtube/vitess/third_party/mysql/ncurses/include -DHAVE_TERM_H -fno-rtti -MT libtcmalloc_la-heap-checker.lo -MD -MP -MF .deps/libtcmalloc_la-heap-checker.Tpo -c src/heap-checker.cc -fPIC -DPIC -o libtcmalloc_la-heap-checker.o >/dev/null 2>&1
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -DNO_TCMALLOC_SAMPLES -pthread -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -DTCMALLOC_FOR_DEBUGALLOCATION -g2 -O2 -fno-strict-aliasing -fno-omit-frame-pointer -I/home/frederich/vitess/src/github.com/youtube/vitess/third_party/mysql/ncurses/include -I/home/frederich/vitess/src/github.com/youtube/vitess/third_party/mysql/ncurses/include -DHAVE_TERM_H -fno-rtti -MT libtcmalloc_minimal_debug_la-debugallocation.lo -MD -MP -MF .deps/libtcmalloc_minimal_debug_la-debugallocation.Tpo -c src/debugallocation.cc -fPIC -DPIC -o libtcmalloc_minimal_debug_la-debugallocation.o >/dev/null 2>&1
make: *_* [all-recursive] Error 1
The text was updated successfully, but these errors were encountered: