Build from bazaar source on Mac 10.7 (Lion) fails
am 02.09.2011 23:32:06 von Derek Downey--Apple-Mail=_3A17CFB2-CD44-42B6-A35B-6BAF1DD1665A
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii
Hello,=20
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-developmen t-tree.html =
and =
http://dev.mysql.com/doc/refman/5.5/en/installing-source-dis tribution.html=
=20
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.=20
$ mkdir mysql-repo=20
$ cd mysql-repo/=20
$ bzr init-repo .=20
$ bzr branch lp:mysql-server/5.5 5.5=20
$ cd 5.5=20
$ cmake . -DCMAKE_INSTALL_PREFIX=3D/usr/local/mysql-5.5 =
-DMYSQL_TCP_PORT=3D3310 -DMYSQL_UNIX_ADDR=3D/tmp/mysql-devel.sock=20
$ make VERBOSE=3D1=20
The Make step fails at 95%, here's the last few lines:=20
[ 95%] Building C object unittest/mysys/CMakeFiles/lf-t.dir/lf-t.c.o=20
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=20
Linking C executable lf-t=20
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=3D1=20
/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=20
"/Applications/CMake 2.8-5.app/Contents/bin/cmake" -E =
cmake_progress_report /Users/derekd/devel/mysql-repo/5.5/CMakeFiles=20
[ 95%] Built target lf-t=20
make -f unittest/mysys/CMakeFiles/my_atomic-t.dir/build.make =
unittest/mysys/CMakeFiles/my_atomic-t.dir/depend=20
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.d=
ir/DependInfo.cmake --color=
Dependee =
"/Users/derekd/devel/mysql-repo/5.5/unittest/mysys/CMakeFile s/my_atomic-t.=
dir/DependInfo.cmake" is newer than depender =
"/Users/derekd/devel/mysql-repo/5.5/unittest/mysys/CMakeFile s/my_atomic-t.=
dir/depend.internal".=20
Dependee =
"/Users/derekd/devel/mysql-repo/5.5/unittest/mysys/CMakeFile s/CMakeDirecto=
ryInformation.cmake" is newer than depender =
"/Users/derekd/devel/mysql-repo/5.5/unittest/mysys/CMakeFile s/my_atomic-t.=
dir/depend.internal".=20
Scanning dependencies of target my_atomic-t=20
make -f unittest/mysys/CMakeFiles/my_atomic-t.dir/build.make =
unittest/mysys/CMakeFiles/my_atomic-t.dir/build=20
"/Applications/CMake 2.8-5.app/Contents/bin/cmake" -E =
cmake_progress_report /Users/derekd/devel/mysql-repo/5.5/CMakeFiles=20
[ 95%] Building C object =
unittest/mysys/CMakeFiles/my_atomic-t.dir/my_atomic-t.c.o=20
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=20
/var/folders/1q/0bfhzdp923vf_856z7dzsncm0000gn/T//ccROezHa.s :596:suffix =
or operands invalid for `add'=20
make[2]: *** [unittest/mysys/CMakeFiles/my_atomic-t.dir/my_atomic-t.c.o] =
Error 1=20
make[1]: *** [unittest/mysys/CMakeFiles/my_atomic-t.dir/all] Error 2=20
make: *** [all] Error 2=20
My machine is:=20
$ uname -a=20
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=20
Thanks for any help.
P.S. I have posted this on the Builds/Binary Forums, so I apologize for =
the duplicate content.=20=
--Apple-Mail=_3A17CFB2-CD44-42B6-A35B-6BAF1DD1665A--