Comments - 64bit compile of MariaDB 10.0.21 for Solaris 10 (sparc)

8 years, 6 months ago Vladislav Vaintroub
This comment has the status of 'removed' and can only be seen by you.

I guess you had configured the build for 32 bits, but somehow got your settings changed to 64 bit builds, with some manual work I guess .

please check the definition of SIZEOF_LONG , SIZEOF_VOIDP , SIZEOF_CHARP , SIZEOF_SIZE_T constants in my_config.h . They should be 8 in your case. My advice would be to dump the BUILD scripts entirely, and just do pure cmake, and a build from scratch, and do not build in the source directory. The whole procedure could look similar to the below

cd /path/to/mariadb10_source mkdir bld cd bld export CFLAGS=-m64 export CXXFLAGS=-m64 export CC=/path/to/gcc4 export CXX=/path/to/g++4 cmake .. make

  1. run 'make package' , if you need tar.gz

Thats it, this will create an optimized build, you might not really want -DBUILD_CONFIG=mysql_release

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.