Build from bazaar source on Mac 10.7 (Lion) fails

--Apple-Mail=_3A17CFB2-CD44-42B6-A35B-6BAF1DD1665A
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii

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-developmen t-tree.html =
and =
http://dev.mysql.com/doc/refman/5.5/en/installing-source-dis tribution.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=3D/usr/local/mysql-5.5 =
-DMYSQL_TCP_PORT=3D3310 -DMYSQL_UNIX_ADDR=3D/tmp/mysql-devel.sock
$ make VERBOSE=3D1

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=3D1
/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.d=
ir/DependInfo.cmake --color=3D
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".
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".
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. =

--Apple-Mail=_3A17CFB2-CD44-42B6-A35B-6BAF1DD1665A--
Derek Downey [ Fr, 02 September 2011 23:32 ] [ ID #2063897 ]

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

> From: Derek Downey <derek [at] orange-pants.com>
>
> 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...
>
> 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

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 [at] m.gmane.o rg
Jan Steinman [ Sa, 03 September 2011 20:38 ] [ ID #2063930 ]

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

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
$ cd mysql-repo/
$ bzr init-repo .
$ bzr branch lp:mysql-server/5.5 5.5
$ cd 5.5
$ ./BUILD/compile-pentium64-debug-max --prefix=3D/usr/local/mysql5.5
$ sudo make install

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 <derek [at] orange-pants.com>
>>
>> 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...
>>
>> 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
>
> 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=3Dderek [at] orange-pants.com
>


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgcdmg-mysql-2 [at] m.gmane.o rg
Derek Downey [ Sa, 03 September 2011 21:22 ] [ ID #2063931 ]
Datenbanken » gmane.comp.db.mysql.general » Build from bazaar source on Mac 10.7 (Lion) fails

Vorheriges Thema: Re: Seconds Behind the master 0 but in reality it's over 10 minutesor hours..
Nächstes Thema: select ... into local outfile ... ???