Error Cannot Check For File Existence When Cross Compiling
User account creation filtered due to spam. Bug26046 - checking for files doesn't work while cross-compiling Summary: checking for files doesn't work while cross-compiling Status: UNCONFIRMED Alias: None Product: classpath Classification: Unclassified Component: classpath (show other bugs) Version: 0.20 Importance: P3 normal Target Milestone: --- Assignee: Not yet assigned to anyone URL: Keywords: Depends on: Blocks: Reported: 2006-01-31 12:14 UTC by Holger Schurig Modified: 2010-10-20 15:15 UTC (History) CC List: 3 users (show) bug-classpath lucchesi.esteban robilad See Also: Host: Target: Build: Known to work: Known to fail: Last reconfirmed: Attachments Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description Holger Schurig 2006-01-31 12:14:20 UTC checking for pkg-config... /usr/src/sdk3000/tmp/staging/i686-linux/bin/pkg-config checking for QtCore QtGui >= 4.1.0... yes checking QT_CFLAGS... -DQT_SHARED -I/usr/src/sdk3000/tmp/staging/arm-linux/include -I/usr/src/sdk3000/tmp/staging/arm-linux/include/QtCore -I/usr/src/sdk3000/tmp/staging/arm-linux/include/QtGui checking QT_LIBS... -L/opt/QtPalmtop/lib -L/usr/src/sdk3000/tmp/staging/arm-linux/lib -L/usr/src/sdk3000/tmp/work/qtopia-core-4.1.0+20060131-r1/qtopia-core-opensource-src-4.1.1-snapshot-20060131/lib -lQtGui -lQtCore -lpng -ljpeg -lz -lm -lpthread -ldl checking for /usr/src/sdk3000/tmp/staging/arm-linux/include/QtGui/QWidget... configure: error: cannot check for file existence when cross compiling Comment 1 Mark Wielaard 2006-01-31 12:42:43 UTC Dalibor could you take a look at this? You have been doing some cross-compiling for kaffe recently. I don't know if pkg-config actually supports cross-compiling to be honest. Comment 2 lucchesi.esteban 2010-10-15 23:00:15 UTC From configure.ac: if test "x$HAVE_QT4" = "xyes"; then dnl Check needed because in some cases the QtGui includedir dnl doesn't contain the subsystem dir. QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui` EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt" AC_CHECK_FILE([$QT_INCLUDE_DIR/QWidget], AC_MSG_NOTICE([No extra QT_INCLUDE_DIR needed]), AC_CHECK_FILE([$EXTRA_QT_INCLUDE_DIR/QWidget], QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR", AC_MSG_WARN([QWidget not found]))) AC_CHECK_PROG(MOC, [moc], [moc]) AC_CHECK_PROG(MOC, [moc-qt4], [moc-qt4]) fi But from Autoconf: Before using these macros, ask yourself whether a run-time test might not be a better solution. Be aware that, like most Autoconf macros, they tes
[ thread ] [ subject ] [ author ] These errors make sense. If your crosscompiling any test that involves running a binary on your local host should fail because your compiling for a different platform. The same can be said for "real" lib path checks. The path checks don't make sense on your local host only on the target host. Having said that these errors do serve to remind the compiler (the person not the software) that some of the tests were not run. So the compiler (the person not the software) needs to either check these by hand and/or hardcode known information into the Makefile that matches https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26046 the target system (Yes to RSA if you know you have rsa support on the target....) -----Original Message----- From: Johan Adolfsson [mailto:johan.adolfsson at axis.com] Sent: Monday, December 18, 2000 6:23 AM To: openssh-unix-dev at mindrot.org Subject: cross compiling configure errors Hi all! I want to cross compile openssh to our own CPU and our embedded Linux platform, however I get at least the following errors when running configure: checking whether snprintf https://lists.mindrot.org/pipermail/openssh-unix-dev/2000-December/003565.html correctly terminates long strings... configure: error: can not run test program while cross compiling checking whether getpgrp takes no argument... configure: error: cannot check getpgrp if cross compiling checking for OpenSSL directory... configure: error: can not run test program while cross compiling checking for RSA support... configure: error: can not run test program while cross compiling I'm not really familiar with configure/autoconf etc. and wonder if there are any better solution then adding "if test "$cross_compiling" = no; then fi" around the failing tests? I feel that there must be more people doing cross compiling out there? I can't find anything in the FAQ or in the mail archives. When running autoconf I get: configure.in:337: warning: AC_TRY_RUN called without default to allow cross compiling configure.in:446: warning: AC_TRY_RUN called without default to allow cross compiling configure.in:492: warning: AC_TRY_RUN called without default to allow cross compiling configure.in:955: warning: Cannot check for file existence when cross compiling configure.in:962: warning: Cannot check for file existence when cross compiling configure.in:985: warning: Cannot check for file existence when cross compiling which seems to indicate that it should handle cross compiling, at least for the 3 first messages. Any hints? /Johan Previous message: cross compiling configure errors Next message: OpenSSHd: PATHs in configuration files Messages sorted by: [
Thu, 12 Jun 2008 08:44:23 +0200 Hi to all, I'm trying to cross-compile Apache for http://www.spinics.net/lists/arm/msg14710.html the arm Davinci DM355 (Texas Instruments, I have Linux Montavista on it and Ubuntu on my computer), but I have the following problem: I use this command: CC="arm_v5t_le-gcc" CXX="arm_v5t_le-g++" \ ./configure --build=i686-linux \ --host=arm-linux \ --target=arm-linux error cannot \ --prefix=/home/marta/workdir/filesys/apache2.8 and got the next error: checking for /dev/zero... configure: error: cannot check for file existence when cross compiling configure failed for srclib/apr I tried with this: ac_cv_file_dev_zero=no, also with "yes", I found both on the error cannot check internet but neither of them worked. Can anyone please help me with this? Thanks in advance. Regards, Marta ------------------------------------------------------------------- List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php Follow-Ups: Re: Problem cross-compiling Apache From: Matthias Kaehlcke Prev by Date: Re: Looking for memory leak detector with ARM EABI stack trace support Next by Date: Re: Problem cross-compiling Apache Previous by thread: How all the secondary cores boot in MPCore Next by thread: Re: Problem cross-compiling Apache Index(es): Date Thread [IndexofArchives] [LinuxARM] [LinuxARMMSM] [LinuxARMKernel] [FedoraARM] [LinuxARMMSM] [LinuxOMAP] [LinuxMIPS] [ECOS] [AsteriskInternetPBX] [LinuxAPI]