List:General Discussion« Previous MessageNext Message »
From:Derek Downey Date:September 2 2011 9:32pm
Subject:Build from bazaar source on Mac 10.7 (Lion) fails
View as plain text  
Hello, 

I am trying to setup a development machine to start delving into some of the internal code
of the MySQL DB. I'm off to a great start, since I can't even get it to build properly.
I'm sure I'm missing an important step, but am following the instructions from
http://dev.mysql.com/doc/refman/5.5/en/installing-development-tree.html and
http://dev.mysql.com/doc/refman/5.5/en/installing-source-distribution.html 

Below are my steps, but I do have another instance of mysql running that I use for work
development. So I was trying to set this one up as on a different port. 

$ mkdir mysql-repo 
$ cd mysql-repo/ 
$ bzr init-repo . 
$ bzr branch lp:mysql-server/5.5 5.5 
$ cd 5.5 
$ cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql-5.5 -DMYSQL_TCP_PORT=3310
-DMYSQL_UNIX_ADDR=/tmp/mysql-devel.sock 
$ make VERBOSE=1 

The Make step fails at 95%, here's the last few lines: 

[ 95%] Building C object unittest/mysys/CMakeFiles/lf-t.dir/lf-t.c.o 
cd /Users/derekd/devel/mysql-repo/5.5/unittest/mysys && /usr/bin/gcc
-DHAVE_CONFIG_H -Wall -O2 -g -DDBUG_OFF -I/Users/derekd/devel/mysql-repo/5.5/include
-I/Users/derekd/devel/mysql-repo/5.5/sql -I/Users/derekd/devel/mysql-repo/5.5/regex
-I/Users/derekd/devel/mysql-repo/5.5/extra/yassl/include
-I/Users/derekd/devel/mysql-repo/5.5/unittest/mytap -o CMakeFiles/lf-t.dir/lf-t.c.o -c
/Users/derekd/devel/mysql-repo/5.5/unittest/mysys/lf-t.c 
Linking C executable lf-t 
cd /Users/derekd/devel/mysql-repo/5.5/unittest/mysys && "/Applications/CMake
2.8-5.app/Contents/bin/cmake" -E cmake_link_script CMakeFiles/lf-t.dir/link.txt
--verbose=1 
/usr/bin/gcc -Wall -O2 -g -DDBUG_OFF -Wl,-search_paths_first
-Wl,-headerpad_max_install_names CMakeFiles/lf-t.dir/lf-t.c.o -o lf-t -lpthread
../mytap/libmytap.a ../../mysys/libmysys.a ../../strings/libstrings.a
../../dbug/libdbug.a ../../mysys/libmysys.a ../../dbug/libdbug.a
../../strings/libstrings.a -lz -lpthread 
"/Applications/CMake 2.8-5.app/Contents/bin/cmake" -E cmake_progress_report
/Users/derekd/devel/mysql-repo/5.5/CMakeFiles 
[ 95%] Built target lf-t 
make -f unittest/mysys/CMakeFiles/my_atomic-t.dir/build.make
unittest/mysys/CMakeFiles/my_atomic-t.dir/depend 
cd /Users/derekd/devel/mysql-repo/5.5 && "/Applications/CMake
2.8-5.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles"
/Users/derekd/devel/mysql-repo/5.5 /Users/derekd/devel/mysql-repo/5.5/unittest/mysys
/Users/derekd/devel/mysql-repo/5.5 /Users/derekd/devel/mysql-repo/5.5/unittest/mysys
/Users/derekd/devel/mysql-repo/5.5/unittest/mysys/CMakeFiles/my_atomic-t.dir/DependInfo.cmake
--color= 
Dependee
"/Users/derekd/devel/mysql-repo/5.5/unittest/mysys/CMakeFiles/my_atomic-t.dir/DependInfo.cmake"
is newer than depender
"/Users/derekd/devel/mysql-repo/5.5/unittest/mysys/CMakeFiles/my_atomic-t.dir/depend.internal".

Dependee
"/Users/derekd/devel/mysql-repo/5.5/unittest/mysys/CMakeFiles/CMakeDirectoryInformation.cmake"
is newer than depender
"/Users/derekd/devel/mysql-repo/5.5/unittest/mysys/CMakeFiles/my_atomic-t.dir/depend.internal".

Scanning dependencies of target my_atomic-t 
make -f unittest/mysys/CMakeFiles/my_atomic-t.dir/build.make
unittest/mysys/CMakeFiles/my_atomic-t.dir/build 
"/Applications/CMake 2.8-5.app/Contents/bin/cmake" -E cmake_progress_report
/Users/derekd/devel/mysql-repo/5.5/CMakeFiles 
[ 95%] Building C object unittest/mysys/CMakeFiles/my_atomic-t.dir/my_atomic-t.c.o 
cd /Users/derekd/devel/mysql-repo/5.5/unittest/mysys && /usr/bin/gcc
-DHAVE_CONFIG_H -Wall -O2 -g -DDBUG_OFF -I/Users/derekd/devel/mysql-repo/5.5/include
-I/Users/derekd/devel/mysql-repo/5.5/sql -I/Users/derekd/devel/mysql-repo/5.5/regex
-I/Users/derekd/devel/mysql-repo/5.5/extra/yassl/include
-I/Users/derekd/devel/mysql-repo/5.5/unittest/mytap -o
CMakeFiles/my_atomic-t.dir/my_atomic-t.c.o -c
/Users/derekd/devel/mysql-repo/5.5/unittest/mysys/my_atomic-t.c 
/var/folders/1q/0bfhzdp923vf_856z7dzsncm0000gn/T//ccROezHa.s:596:suffix or operands
invalid for `add' 
make[2]: *** [unittest/mysys/CMakeFiles/my_atomic-t.dir/my_atomic-t.c.o] Error 1 
make[1]: *** [unittest/mysys/CMakeFiles/my_atomic-t.dir/all] Error 2 
make: *** [all] Error 2 


My machine is: 

$ uname -a 
Darwin DDMac 11.1.0 Darwin Kernel Version 11.1.0: Tue Jul 26 16:07:11 PDT 2011;
root:xnu-1699.22.81~1/RELEASE_X86_64 x86_64 


Thanks for any help.

P.S. I have posted this on the Builds/Binary Forums, so I apologize for the duplicate
content. 
Thread
Build from bazaar source on Mac 10.7 (Lion) failsDerek Downey2 Sep
Re: Build from bazaar source on Mac 10.7 (Lion) failsJan Steinman3 Sep
  • Re: Build from bazaar source on Mac 10.7 (Lion) failsDerek Downey3 Sep