From: Enrico W. <we...@me...> - 2010-09-24 11:36:42
|
* Tagangout, Abderrahim <Abd...@me...> schrieb: > Hi Alex, > this is the output that i become when i try: > "./autogen.sh --build=i686 --host=avr32-linux --target=avr32-linux" > "..... You should use a sysroot'ed crosscompiler. Crosstool-NG [1] can create it for you. For the package build process (setting up sysroot's, handling dependencies, etc) you can use Briegel [2]. > ..... > checking if POSIX threads are available... configure: error: in `/home/abdo/Firebird-2.1.3.18185-0': > configure: error: cannot run test program while cross compiling > See `config.log' for more details." The configure.ac macros are misdesigned. It's the AC_TRY_RUN autoconf macro, which is conceptionally unusable for crosscompiling, since it's based on the dubious assumption that the building system is equal to the actual target system. (no, the optional fallback handling of AC_TRY_RUN is _NOT_ a solution, just an ugly, incomplete and not generically usable workaround). Solution: find the AC_TRY_RUN calls, find out what they actually should guess and replace them by better solutions that do NOT require running any binary code (built w/ the target toolchain), and does NOT try to guess anything from the building system. BTW: several years ago, I already tried to crosscompile fb, but this would have required fundamental changes in the build process, as it essentially required a running fb instance for building. (yeah, imaging that insanity ;-o). Didn't check if this still is the case yet. cu -- ---------------------------------------------------------------------- Enrico Weigelt, metux IT service -- http://www.metux.de/ phone: +49 36207 519931 email: we...@me... mobile: +49 151 27565287 icq: 210169427 skype: nekrad666 ---------------------------------------------------------------------- Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme ---------------------------------------------------------------------- |