- From: Jesper Larsen <jla_at_iotech.dk>
- Date: Wed, 05 Jul 2006 17:11:25 +0200
Hi
I am trying to cross-compile Comedi for a powerpc with linux 2.6.17.3,
but I am running into some problems.
I've tried with both latest CVS version and 0.7.70.
I run the following:
./configure
--with-linuxdir=/home/jla/Work/linux_platform/linux/linux-2.6.17.3/
--with-linuxconfig=/home/jla/Work/linux_platform/build/standard-ppc/kernel_config
--with-kernel-release=2.6.17.3 --with-machine=ppc --host=powerpc-linux
and get:
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... powerpc-unknown-linux-gnu
checking target system type... powerpc-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for powerpc-linux-strip... powerpc-linux-strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking for powerpc-linux-gcc... powerpc-linux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether powerpc-linux-gcc accepts -g... yes
checking for powerpc-linux-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of powerpc-linux-gcc... gcc3
checking for strip... /usr/bin/strip
checking for depmod... /sbin/depmod
configure: Using 2.6.17.3 as the uname -r value
configure: Using ppc as the uname -m value
checking for rpm... yes
checking if rpm can be used to query packages... yes
checking for Linux in
/home/jla/Work/linux_platform/linux/linux-2.6.17.3/... yes
checking
/home/jla/Work/linux_platform/build/standard-ppc/kernel_config... yes
checking Pre-FC2 Red Hat/Fedora kernel... not found
checking Linux config option CONFIG_M386... no
checking Linux config option CONFIG_M586... no
checking Linux config option CONFIG_M686... no
checking Linux config option CONFIG_MPENTIUMIII... no
checking Linux config option CONFIG_MK7... no
checking Linux config option CONFIG_SMP... no
checking Linux config option CONFIG_HIGHMEM64G... no
configure: Putting kernel modules under /lib/modules/2.6.17.3
configure: Putting kernel module development files under
/home/jla/Work/linux_platform/linux/linux-2.6.17.3/
checking Linux major/minor version... configure: error: cannot run test
program while cross compiling
Am I missing something here, or is there someway around this?
Thank you
--
Kind regards
Jesper Larsen
Received on 2006-07-05Z14:11:25