Build from bazaar source on Mac 10.7 (Lion) fails

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

Re: Build from bazaar source on Mac 10.7 (Lion) fails

am 03.09.2011 20:38:20 von Jan Steinman

> From: Derek Downey
>=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...
>=20
> My machine is:=20
>=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

Since you're on a Mac, have you considered using MacPorts? MySQL builds =
and installs flawlessly on 10.6.8 with "sudo port -f install mysql5" =
here. (Haven't tried it on 10.7 yet.)

http://www.macports.org/

----------------
I can remember when a good politician had to be 75 percent ability and =
25 percent actor, but I can well see the day when the reverse could be =
true. -- Harry S. Truman
:::: Jan Steinman, EcoReality Co-op ::::


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgcdmg-mysql-2@m.gmane.o rg

Re: Build from bazaar source on Mac 10.7 (Lion) fails

am 03.09.2011 21:22:37 von Derek Downey

MacPorts is nice, but I am wanting to start tinkering with the source =
code.

I was able to get it to build with the following steps on Lion:

$ 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
$ ./BUILD/compile-pentium64-debug-max --prefix=3D/usr/local/mysql5.5=20
$ sudo make install=20

I think my cmake step was missing a flag to specify x86_64 arch

Derek Downey

On Sep 3, 2011, at 2:38 PM, Jan Steinman wrote:

>> From: Derek Downey
>>=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...
>>=20
>> My machine is:=20
>>=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
> Since you're on a Mac, have you considered using MacPorts? MySQL =
builds and installs flawlessly on 10.6.8 with "sudo port -f install =
mysql5" here. (Haven't tried it on 10.7 yet.)
>=20
> http://www.macports.org/
>=20
> ----------------
> I can remember when a good politician had to be 75 percent ability and =
25 percent actor, but I can well see the day when the reverse could be =
true. -- Harry S. Truman
> :::: Jan Steinman, EcoReality Co-op ::::
>=20
>=20
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: =
http://lists.mysql.com/mysql?unsub=3Dderek@orange-pants.com
>=20


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgcdmg-mysql-2@m.gmane.o rg