Error Cannot Run Test Program While Cross Compiling Mysql
Contents |
Discussion in 'Tomato Firmware' started by Aron P, Apr 21, 2015. Aron P New Member Member Hi I'm compiling tomato. I checked configure: error: cannot run test program while cross compiling glib out tomato-shibby branch and it errors while compiling mysql. configure: error: cannot run
Gnu Screen Cross Compile
test program while cross compiling See `config.log' for more details make[5]: *** [config.status] Error 1 make[5]: Leaving directory
Cross Compile Glib
`/home/aron/tomato/release/src/router/mysql' make[4]: *** [mysql] Error 2 make[4]: Leaving directory `/home/aron/tomato/release/src/router' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/aron/tomato/release/src-rt' make[2]: *** [bin] Error 2 make[2]: Leaving directory `/home/aron/tomato/release/src-rt' make[1]: *** [z] Error 2 make[1]: Leaving directory `/home/aron/tomato/release/src-rt' make: *** [r2z] Error 2 Aron P, Apr 21, 2015 #1 shibby20 Network Guru Member See `config.log' for more detailsClick to expand... well go to route/mysql/config.log and check what goes wrong. shibby20, Apr 21, 2015 #2 Aron P New Member Member The problem is that autoconf has configured to run the tests. But it cannot run the tests while cross compiling. So what needs to be changed in configure.in? Aron P, Apr 21, 2015 #3 shibby20 Network Guru Member You have 2 solutions: - Install the same version of autoconf which i used - Try run autoreconf under Mysql directory. shibby20, Apr 21, 2015 #4 Aron P New Member Member What version of autoconf have you used? Aron P, Apr 21, 2015 #5 AndreDVJ Addicted to LI Member autoreconf is funny, but looks like it works. I was able to compile an ARM build (r7000z) successfully. However I still need more tests. I had installed newer libtool from sources (2.4.6), so I'm still trying to figure out a way to get this built without much trouble... I ran autoreconf for the 1st time, it gives the following error: configure.in:23: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: /usr/bin/autoconf failed with exit status: 1Click to expand... 2nd time, it produces lots of output, and ends like this: autoreconf: automake failed with exit status: 1Click to ex
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can http://www.linksysinfo.org/index.php?threads/compilation-error-for-mysql.71247/ ask a question Anybody can answer The best answers are voted up and rise to the top Cannot run test program while cross compiling - cross compiling Firebird up vote 0 down vote favorite I've tried to compile firebird server for arm linux, with cross-compiler (it's choosen - it's working properly). When using: ./autogen.sh --host=arm-linux-gnu I get this error: checking for working sem_init()... configure: error: in `/compile/code/firebird/trunk': http://unix.stackexchange.com/questions/248088/cannot-run-test-program-while-cross-compiling-cross-compiling-firebird configure: error: cannot run test program while cross compiling I know I'm cross-compiling, but maybe Firebird developers dissalow this (but i've read Firebird is ready to compilation for another architectures). linux arm cross-compilation sql sqlserver share|improve this question asked Dec 8 '15 at 11:49 SÅ‚awomir Kozok 12 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote Configure determines the answer to certain questions by compiling and running programs on the fly ... which it can (usually) do when the build host is the same as the target host. When you are cross-compiling, (usually) your build machine can't run the binaries produced by the cross-compiler. To overcome this, locate where the test is in the configure script and if you are lucky, the configure script will allow for the caching of the result of the test ... you can use this to fool the configure script into thinking that it already knows the answer to the question, and therefore it will not try to compile and run the binary. For example, if you were trying to cross-compile openldap 2.3.11 (an old version, I know), you may need to pass in the environment the variable ac
CommunitiesAVR FreaksAtmel SMART ARM-based MCUsInternet of ThingsCapacitive TouchProjectsVendorsWiki You are hereHome » Communities http://www.avrfreaks.net/forum/error-adding-mysql » AVR Freaks » Forums » AVR Microcontrollers » AVR UC3 » error with adding MySQL Main menu mobile Home Communities Forums Projects Vendors http://grokbase.com/t/mysql/mysql/018at4d7pe/can-not-run-test-program-while-cross-compiling Wiki Search My summary Privacy Contact Site Use Terms Cookies Communities Forums Projects Vendors WIKI error with adding MySQL Log in or register to cannot run post comments Go To Last Post 6 posts / 0 new Author Message elemmire Level: New Member Joined: Wed. Nov 11, 2009 Posts: 1 View posts #1 Posted by elemmire: Thu. Nov 19, 2009 - 04:19 PM Fivestar widget 12345Total votes: 0 Greetings. Problem is such. I build cannot run test U-boot for AVR atngw100. It is necessary to add MySQL. Tried to add three versions (mysql-5.0.87; mysql-3.23.58; mysql-5.1.28 ). I configured and added all as earlier (not first experience in adding). At this time in the end of cross-compilation it writes an error. ========================= checking for restartable system calls... configure: error: cannot run test program while cross compiling See `config.log' for more details. make: *** [/home/el/buildroot-avr32-v2.3.0/build_avr32/mysql-5.1.28-rc/.configured] Error 1 =========================== checking "return type of sprintf"... configure: error: cannot run test program while cross compiling make: *** [/home/el/buildroot-avr32-v2.3.0/build_avr32/mysql-3.23.58/.configured] Error 1 =========================== checking "return type of sprintf"... configure: error: in `/home/el/buildroot-avr32-v2.3.0/build_avr32/mysql-5.0.87': configure: error: cannot run test program while cross compiling See `config.log' for more details. make: *** [/home/el/buildroot-avr32-v2.3.0/build_avr32/mysql-5.0.87/.configured] Error 1 =========================== I read another forums and they recommend me to reinstall or update compiler gcc. But this buildroot uses gcc-4.2.2 (version of buildroot is 2.3.0).
but have not come across a fix.checking return type of sprintf... configure: error: can not run test program while cross compilingHow-To-Repeat:CC=gcc CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" ./configure--prefix=/usr/local/mysql --with-low-memory --with-extra-charsets=complex --enable-assemblerFix:Submitter-Id: