Re: Mysql 5.0.41 Cross Compiler capable from source?
Hi John, all ! John Penman (jopenman) wrote: Hello all, I am trying to build mysql-5.0.41 under a cross compiling environment. Below is the beginning of the configure: [[...]] Reviewing this code leads me to believe that there is no support for cross compiling, or I am missing something. [[...]] We are aware of problems in cross-compilation. The main issue is that some files are generated during the build process from running tools which are included in the sources, this means that these tools must be compiled/linked to run *locally* on the build host and not in the target environment. To do this, the Makefiles need to differ between such tools (to run on the build host) and other programs (cross-built for the final target). A further restriction is that some of these generated files include binary information, so the tool running in build environment must use the same byte sex (little- or big-endian) as the target host. By now, attacking these issues has moved up the priority list sufficiently that we are working on it - but there is no estimation yet at which date (or with which version) it will be solved. Any help with this would be greatly appreciated. Sorry, we don't have a solution yet. Regards, Jörg -- Joerg Bruehe, Senior Production Engineer MySQL AB, www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Mysql 5.0.41 Cross Compiler capable from source?
Hello all, I am trying to build mysql-5.0.41 under a cross compiling environment. Below is the beginning of the configure: -bash-2.05b$ ./configure --host=arm-none-linux-gnueabi --prefix=/view/mysql --with-mysqld-ldflags=-all-static configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking build system type... i686-pc-linux-gnu checking host system type... arm-none-linux-gnueabi checking target system type... arm-none-linux-gnueabi All outward appearances show that building from the source supports cross compiling. But as it goes through the configure it abruptly ends. In reviewing the script I found the following code: ... if test $cross_compiling = yes; then { { echo $as_me:$LINENO: error: cannot run test program while cross compiling See \`config.log' for more details. 5 echo $as_me: error: cannot run test program while cross compiling See \`config.log' for more details. 2;} { (exit 1); exit 1; }; } else cat conftest.$ac_ext _ACEOF ... By default the $cross_compiling flag gets sets to true if the --host parameter is used. Reviewing this code leads me to believe that there is no support for cross compiling, or I am missing something. There are 15 locations in the script with code similar to the above. Any help with this would be greatly appreciated.