From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28026 invoked by alias); 29 Mar 2008 07:04:42 -0000 Received: (qmail 27999 invoked by uid 22791); 29 Mar 2008 07:04:40 -0000 X-Spam-Status: No, hits=0.0 required=5.0 tests=BAYES_50,SPF_PASS X-Spam-Check-By: sourceware.org Received: from dxa00.wellsfargo.com (HELO dxa00.wellsfargo.com) (151.151.65.115) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 29 Mar 2008 07:04:22 +0000 Received: from mxv01.wellsfargo.com (mxv01.wellsfargo.com [10.91.194.145]) by dxa00.wellsfargo.com (Switch-3.1.11/Switch-3.1.11) with ESMTP id m2T74Ka8012077 for ; Sat, 29 Mar 2008 00:04:20 -0700 Received: from MSGSPSIADSM04.ent.wfb.bank.corp (msgspsiadsm04.wellsfargo.com [10.30.15.245]) by mxv01.wellsfargo.com (Switch-3.1.11/Switch-3.1.11) with ESMTP id m2T74JL7024645 for ; Sat, 29 Mar 2008 02:04:19 -0500 Received: from MSGSWBMNMSP46.ent.wfb.bank.corp ([10.88.230.2]) by MSGSPSIADSM04.ent.wfb.bank.corp with Microsoft SMTPSVC(5.0.2195.6713); Sat, 29 Mar 2008 02:04:19 -0500 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6619.12 Subject: Question about cross-compile builds failing Date: Sat, 29 Mar 2008 07:04:00 -0000 Message-ID: <1E7A4807A136DF45AD33DB341D93C3BD56B018@msgswbmnmsp46.wellsfargo.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Question about cross-compile builds failing Thread-Index: AciRaxlbgSkHw958TbuLPznsbsXjoQ== From: To: X-OriginalArrivalTime: 29 Mar 2008 07:04:19.0564 (UTC) FILETIME=[1BE5EAC0:01C8916B] X-WFMX: 0 Mailing-List: contact ecos-maintainers-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-maintainers-owner@ecos.sourceware.org X-SW-Source: 2008-03/txt/msg00006.txt.bz2 I've got a system that I am doing builds on so that I can get an PXA-255 based system up and running. It's x86_64. My cross-compiler works, and I have booted ARM kernels that it has built. I'm using the ARM-tree maintained by Russell King. Since this isn't a native system, and not the same tree as the running kernel the headers do not live /usr/include/. The build seems to require this no matter what I set at the configure level. Here's what the configure/make shows. Am I doing something wrong or was it designed this way? I've also tried undoing the defines for the USB since I really don't need it, but that didn't work for me either. chandleg@constellation:/usr/src/tmp/build$ ../ecos/configure --host=3D$TARGET --target=3D$TARGET --build=3D$MACHTYPE --prefix=3D/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/arm- unknown-linux-gnu/ creating cache ./config.cache checking host system type... arm-unknown-linux-gnu checking for a BSD compatible install... /usr/bin/ginstall -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking whether to enable maintainer-specific portions of Makefiles... no checking that a separate build tree is being used... yes updating cache ./config.cache creating ./config.status creating Makefile configuring in packages/devs/watchdog/synth/current/host running /bin/sh ../../../../../../../ecos/packages/devs/watchdog/synth/current/host/conf igure --host=3Darm-unknown-linux-gnu --target=3Darm-unknown-linux-gnu --build=3Di486-slackware-linux-gnu --prefix=3D/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/arm- unknown-linux-gnu/ --cache-file=3D../../../../../.././config.cache --srcdir=3D../../../../../../../ecos/packages/devs/watchdog/synth/current/ host loading cache ../../../../../.././config.cache checking that a separate build tree is being used... yes checking host system type... arm-unknown-linux-gnu checking for a BSD compatible install... (cached) /usr/bin/ginstall -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... (cached) yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking whether to enable maintainer-specific portions of Makefiles... no creating ./config.status creating Makefile configuring in packages/hal/synth/arch/current/host running /bin/sh ../../../../../../../ecos/packages/hal/synth/arch/current/host/configure --host=3Darm-unknown-linux-gnu --target=3Darm-unknown-linux-gnu --build=3Di486-slackware-linux-gnu --prefix=3D/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/arm- unknown-linux-gnu/ --cache-file=3D../../../../../.././config.cache --srcdir=3D../../../../../../../ecos/packages/hal/synth/arch/current/host loading cache ../../../../../.././config.cache checking that a separate build tree is being used... yes checking host system type... arm-unknown-linux-gnu checking for a BSD compatible install... (cached) /usr/bin/ginstall -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... (cached) yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking whether to enable maintainer-specific portions of Makefiles... no creating ./config.status creating Makefile configuring in packages/io/usb/slave/current/host running /bin/sh ../../../../../../../ecos/packages/io/usb/slave/current/host/configure --host=3Darm-unknown-linux-gnu --target=3Darm-unknown-linux-gnu --build=3Di486-slackware-linux-gnu --prefix=3D/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/arm- unknown-linux-gnu/ --cache-file=3D../../../../../.././config.cache --srcdir=3D../../../../../../../ecos/packages/io/usb/slave/current/host loading cache ../../../../../.././config.cache checking that a separate build tree is being used... yes checking host system type... arm-unknown-linux-gnu checking for a BSD compatible install... (cached) /usr/bin/ginstall -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... (cached) yes checking for working aclocal-1.4... missing checking for working autoconf... found checking for working automake-1.4... missing checking for working autoheader... found checking for working makeinfo... found checking whether to enable maintainer-specific portions of Makefiles... no checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether c++ accepts -g... yes checking whether ln -s works... yes checking for object suffix... o checking for Cygwin environment... no checking for mingw32 environment... no checking for executable suffix... no checking for Visual C++... no checking the default compiler flags... done checking for Tcl installation... -I/usr/include -L/usr/lib -ltcl8.4${TCL_DBGX} checking how to run the C preprocessor... gcc -E checking for linux/usb.h... yes checking for linux/usbdevice_fs.h... yes updating cache ../../../../../.././config.cache creating ./config.status creating Makefile creating config.h configuring in packages/services/profile/gprof/current/host running /bin/sh ../../../../../../../ecos/packages/services/profile/gprof/current/host/c onfigure --host=3Darm-unknown-linux-gnu --target=3Darm-unknown-linux-gnu --build=3Di486-slackware-linux-gnu --prefix=3D/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/arm- unknown-linux-gnu/ --cache-file=3D../../../../../.././config.cache --srcdir=3D../../../../../../../ecos/packages/services/profile/gprof/curre nt/host configure: loading cache ../../../../../.././config.cache checking that a separate build tree is being used... yes checking build system type... i486-slackware-linux-gnu checking host system type... arm-unknown-linux-gnu checking for a BSD-compatible install... (cached) /usr/bin/ginstall -c checking whether build environment is sane... yes checking whether make sets $(MAKE)... (cached) yes checking for working aclocal-1.4... missing checking for working autoconf... found checking for working automake-1.4... missing checking for working autoheader... found checking for working makeinfo... found checking whether to enable maintainer-specific portions of Makefiles... no updating cache ../../../../../.././config.cache configure: creating ./config.status config.status: creating Makefile configuring in packages/devs/eth/synth/ecosynth/current/host running /bin/sh ../../../../../../../../ecos/packages/devs/eth/synth/ecosynth/current/ho st/configure --host=3Darm-unknown-linux-gnu --target=3Darm-unknown-linux-gnu --build=3Di486-slackware-linux-gnu --prefix=3D/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/arm- unknown-linux-gnu/ --cache-file=3D../../../../../../.././config.cache --srcdir=3D../../../../../../../../ecos/packages/devs/eth/synth/ecosynth/c urrent/host loading cache ../../../../../../.././config.cache checking that a separate build tree is being used... yes checking host system type... arm-unknown-linux-gnu checking for a BSD compatible install... (cached) /usr/bin/ginstall -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... (cached) yes checking for working aclocal-1.4... missing checking for working autoconf... found checking for working automake-1.4... missing checking for working autoheader... found checking for working makeinfo... found checking whether to enable maintainer-specific portions of Makefiles... no configure: warning: Synthetic target ethernet support is only available on x86 Linux hosts configure: warning: The synthetic ethernet support cannot be built on this platform. updating cache ../../../../../../.././config.cache creating ./config.status creating Makefile chandleg@constellation:/usr/src/tmp/build$ make Making all in packages/devs/watchdog/synth/current/host make[1]: Entering directory `/usr/src/tmp/build/packages/devs/watchdog/synth/current/host' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/src/tmp/build/packages/devs/watchdog/synth/current/host' Making all in packages/hal/synth/arch/current/host make[1]: Entering directory `/usr/src/tmp/build/packages/hal/synth/arch/current/host' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/src/tmp/build/packages/hal/synth/arch/current/host' Making all in packages/io/usb/slave/current/host make[1]: Entering directory `/usr/src/tmp/build/packages/io/usb/slave/current/host' gcc -DHAVE_CONFIG_H -I. -I../../../../../../../ecos/packages/io/usb/slave/current/host -I.=20=20=20 -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -O0 -DUSBHOST_VERSION=3D\"0.1\" -DPKGVERSION=3D\"current\" -DUSBAUXDIR=3D\"/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu /arm-unknown-linux-gnu//libexec/ecos/io/usb/slave/current\" -c ../../../../../../../ecos/packages/io/usb/slave/current/host/usbhost.c In file included from /usr/include/linux/usb.h:4, from ../../../../../../../ecos/packages/io/usb/slave/current/host/usbhost.c:8 7: /usr/include/linux/mod_devicetable.h:18: error: expected specifier-qualifier-list before '__u32' /usr/include/linux/mod_devicetable.h:31: error: expected specifier-qualifier-list before '__u32' /usr/include/linux/mod_devicetable.h:100: error: expected specifier-qualifier-list before '__u16' /usr/include/linux/mod_devicetable.h:136: error: expected specifier-qualifier-list before '__u16' /usr/include/linux/mod_devicetable.h:153: error: expected specifier-qualifier-list before '__u16' /usr/include/linux/mod_devicetable.h:166: error: expected specifier-qualifier-list before '__u8' /usr/include/linux/mod_devicetable.h:174: error: expected specifier-qualifier-list before '__u8' /usr/include/linux/mod_devicetable.h:179: error: expected specifier-qualifier-list before '__u8' /usr/include/linux/mod_devicetable.h:190: error: expected specifier-qualifier-list before '__u8' /usr/include/linux/mod_devicetable.h:207: error: expected specifier-qualifier-list before 'kernel_ulong_t' /usr/include/linux/mod_devicetable.h:220: error: expected specifier-qualifier-list before '__u16' /usr/include/linux/mod_devicetable.h:267: error: expected specifier-qualifier-list before '__u16' /usr/include/linux/mod_devicetable.h:299: error: expected specifier-qualifier-list before 'kernel_ulong_t' /usr/include/linux/mod_devicetable.h:326: error: expected specifier-qualifier-list before 'kernel_ulong_t' /usr/include/linux/mod_devicetable.h:332: error: expected specifier-qualifier-list before '__u8' ../../../../../../../ecos/packages/io/usb/slave/current/host/usbhost.c: In function 'run_test_bulk_out': ../../../../../../../ecos/packages/io/usb/slave/current/host/usbhost.c:6 52: warning: format '%s' expects type 'char *', but argument 6 has type 'int' ../../../../../../../ecos/packages/io/usb/slave/current/host/usbhost.c:6 52: warning: format '%s' expects type 'char *', but argument 6 has type 'int' ../../../../../../../ecos/packages/io/usb/slave/current/host/usbhost.c: In function 'run_test_bulk_in': ../../../../../../../ecos/packages/io/usb/slave/current/host/usbhost.c:7 41: warning: format '%s' expects type 'char *', but argument 6 has type 'int' ../../../../../../../ecos/packages/io/usb/slave/current/host/usbhost.c:7 41: warning: format '%s' expects type 'char *', but argument 6 has type 'int' ../../../../../../../ecos/packages/io/usb/slave/current/host/usbhost.c: In function 'run_test_control_in': ../../../../../../../ecos/packages/io/usb/slave/current/host/usbhost.c:8 63: warning: format '%s' expects type 'char *', but argument 5 has type 'int' ../../../../../../../ecos/packages/io/usb/slave/current/host/usbhost.c:8 63: warning: format '%s' expects type 'char *', but argument 5 has type 'int' make[1]: *** [usbhost.o] Error 1 make[1]: Leaving directory `/usr/src/tmp/build/packages/io/usb/slave/current/host' make: *** [all-recursive] Error 1