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

bootstrapping vitess fails on mysql #61

Closed
frederich opened this issue Jun 29, 2014 · 5 comments
Closed

bootstrapping vitess fails on mysql #61

frederich opened this issue Jun 29, 2014 · 5 comments

Comments

@frederich
Copy link

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

@sougou
Copy link
Contributor

sougou commented Jun 29, 2014

Hi Jens,
Unforunately, Google MySQL doesn't build on Trusty yet. The team is aware of this. So, I'm optimistic that they'll fix it soon.
At the same time, we'll also be working to get Vitess to work with MariaDB, and possibly a newer version of MySQL.
We currently run on Precise. So, that should definitely work fro you also.

@msolo
Copy link
Contributor

msolo commented Jun 29, 2014

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 Jens,
Unforunately, Google MySQL doesn't build on Trusty yet. The team is aware of this. So, I'm optimistic that they'll fix it soon.
At the same time, we'll also be working to get Vitess to work with MariaDB, and possibly a newer version of MySQL.
We currently run on Precise. So, that should definitely work fro you also.


Reply to this email directly or view it on GitHub.

@frederich
Copy link
Author

Hi sougou, Precise is fine for me. Thanks.

@frederich
Copy link
Author

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.

@alainjobart
Copy link
Contributor

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
wrote:

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.


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

@enisoc enisoc closed this as completed Nov 18, 2014
JiekerTime pushed a commit to JiekerTime/vitess that referenced this issue Oct 27, 2023
ejortegau pushed a commit to ejortegau/vitess that referenced this issue Dec 15, 2023
…rpcs

`slack-vitess-r14.0.5`: Revert "delete RPCs that were deprecated in 13.0 (vitessio#10099)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants