- From: Dave Flogeras <dflogeras_at_akoostix.com>
- Date: Mon, 30 Oct 2006 14:09:07 -0400
Hello all,
I am trying to cross-compile for the Arcom Viper board (ARM PXA255). I have
its kernel properly build in my home directory.
I have successfully cross-compiled comedlib by simply
using ./configure --host=arm-linux then make. So far so good.
I run into trouble trying to build the comedi drivers:
I am configuring using the following
./configure --host=arm-linux --with-linuxdir=/home/dflogeras/linux-source-2.6.11.11-arcom2
When I run make, it dies, and it looks as though it is compiling with just
plain old 'gcc'.
(Based on a post in the ML, I have tried exporting CC, CXX, LD, AR, CPP to all
point to correct arm-linux variants of the toolchain but with the same
result.)
Here are the outputs of configure, and the failed run of make
Any help is greatly appreciated!
Dave
============================== configure ===========================
[dflogeras_at_diane
comedi-0.7.73]$ ./configure --with-linuxdir=/home/dflogeras/linux-source-2.6.11.11-arcom2 --host=arm-linux
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... arm-unknown-linux-gnu
checking target system type... arm-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 arm-linux-strip... arm-linux-strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking for arm-linux-gcc... arm-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 arm-linux-gcc accepts -g... yes
checking for arm-linux-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of arm-linux-gcc... gcc3
checking for arm-linux-strip... /opt/arcom/bin/arm-linux-strip
checking for depmod... /sbin/depmod
configure: Using 2.6.12-1.1381_FC3 as the uname -r value
configure: Using i686 as the uname -m value
checking for rpm... yes
checking if rpm can be used to query packages... yes
checking for Linux in /home/dflogeras/linux-source-2.6.11.11-arcom2... yes
checking /home/dflogeras/linux-source-2.6.11.11-arcom2/.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.12-1.1381_FC3
configure: Putting kernel module development files
under /home/dflogeras/linux-source-2.6.11.11-arcom2
checking Linux major/minor version... 2.6
checking for Linux
CFLAGS... -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os -fno-omit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -I/home/dflogeras/linux-source-2.6.11.11-arcom2/include/asm-i386/mach-default -Wdeclaration-after-statement -D__KERNEL__ -I/home/dflogeras/linux-source-2.6.11.11-arcom2/include -DMODULE
checking for
modpost... /home/dflogeras/linux-source-2.6.11.11-arcom2/scripts/mod/modpost
checking for arm-linux-strip... (cached) /opt/arcom/bin/arm-linux-strip
checking for depmod... (cached) /sbin/depmod
configure: creating modtool
checking Linux config option CONFIG_RTHAL... no
checking Linux config option CONFIG_ADEOS... no
checking Linux config option CONFIG_IPIPE... no
checking Linux config option CONFIG_RTLINUX... no
checking for egrep... grep -E
checking /home/dflogeras/linux-source-2.6.11.11-arcom2 for probe in
pcmcia_driver struct... no
configure: PCMCIA support disabled
checking Linux config option CONFIG_USB... module
checking for Kbuild support
in /home/dflogeras/linux-source-2.6.11.11-arcom2... yes
checking Linux config option CONFIG_ISA... yes
checking Linux config option CONFIG_PCI... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating comedi/Makefile
config.status: creating comedi/drivers/Makefile
config.status: creating comedi/drivers/addi-data/Makefile
config.status: creating comedi/kcomedilib/Makefile
config.status: creating config.h
config.status: executing depfiles commands
================================== make ================================
[dflogeras_at_diane comedi-0.7.73]$ make
make all-recursive
make[1]: Entering directory `/home/dflogeras/t/comedi-0.7.73'
Making all in comedi
make[2]: Entering directory `/home/dflogeras/t/comedi-0.7.73/comedi'
Making all in .
make[3]: Entering directory `/home/dflogeras/t/comedi-0.7.73/comedi'
echo > comedi_kbuild.inc
echo CONFIG_COMEDI_USB_MODULES=m >> comedi_kbuild.inc
make -I/home/dflogeras/t/comedi-0.7.73/comedi -C /home/dflogeras/linux-source-2.6.11.11-arcom2
M=/home/dflogeras/t/comedi-0.7.73/comedi
CC="gcc -I/home/dflogeras/t/comedi-0.7.73/comedi/../ \
-I/home/dflogeras/t/comedi-0.7.73/comedi/../include " V=1 modules
make[4]: Entering directory `/home/dflogeras/linux-source-2.6.11.11-arcom2'
mkdir -p /home/dflogeras/t/comedi-0.7.73/comedi/.tmp_versions
make -f scripts/Makefile.build obj=/home/dflogeras/t/comedi-0.7.73/comedi
gcc -I/home/dflogeras/t/comedi-0.7.73/comedi/../ -I/home/dflogeras/t/comedi-0.7.73/comedi/../include -Wp,-MD,/home/dflogeras/t/comedi-0.7.73/comedi/.comedi_fops.o.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/3.4.2/include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os -fno-omit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -DMODULE -DKBUILD_BASENAME=comedi_fops -DKBUILD_MODNAME=comedi -c -o /home/dflogeras/t/comedi-0.7.73/comedi/comedi_fops.o /home/dflogeras/t/comedi-0.7.73/comedi/comedi_fops.c
/home/dflogeras/t/comedi-0.7.73/comedi/comedi_fops.c: In function
`do_chaninfo_ioctl':
/home/dflogeras/t/comedi-0.7.73/comedi/comedi_fops.c:452: error: invalid
register name `r2' for register variable
/home/dflogeras/t/comedi-0.7.73/comedi/comedi_fops.c:452: error: invalid
register name `r0' for register variable
/home/dflogeras/t/comedi-0.7.73/comedi/comedi_fops.c:452: error: invalid
register name `r0' for register variable
/home/dflogeras/t/comedi-0.7.73/comedi/comedi_fops.c:452: error: unknown
register name `lr' in `asm'
/home/dflogeras/t/comedi-0.7.73/comedi/comedi_fops.c:452: error: unknown
register name `ip' in `asm'
/home/dflogeras/t/comedi-0.7.73/comedi/comedi_fops.c:452: error: unknown
register name `lr' in `asm'
/home/dflogeras/t/comedi-0.7.73/comedi/comedi_fops.c:452: error: unknown
register name `ip' in `asm'
/home/dflogeras/t/comedi-0.7.73/comedi/comedi_fops.c:452: error: unknown
register name `lr' in `asm'
/home/dflogeras/t/comedi-0.7.73/comedi/comedi_fops.c:452: error: unknown
register name `ip' in `asm'
/home/dflogeras/t/comedi-0.7.73/comedi/comedi_fops.c:452: error: unknown
register name `lr' in `asm'
/home/dflogeras/t/comedi-0.7.73/comedi/comedi_fops.c:452: error: unknown
register name `ip' in `asm'
{standard input}: Assembler messages:
{standard input}:281: Error: suffix or operands invalid for `add'
{standard input}:281: Error: no such instruction: `sbcccs %ebx,%ebx,%eax'
{standard input}:281: Error: no such instruction: `movcc %eax,'
{standard input}:319: Error: suffix or operands invalid for `add'
{standard input}:319: Error: no such instruction: `sbcccs %edx,%edx,%eax'
{standard input}:319: Error: no such instruction: `movcc %eax,'
{standard input}:396: Error: suffix or operands invalid for `add'
{standard input}:396: Error: no such instruction: `sbcccs %ebx,%ebx,%eax'
{standard input}:396: Error: no such instruction: `movcc %eax,'
{standard input}:515: Error: suffix or operands invalid for `add'
{standard input}:515: Error: no such instruction: `sbcccs %ebx,%ebx,%eax'
{standard input}:515: Error: no such instruction: `movcc %eax,'
{standard input}:596: Error: suffix or operands invalid for `add'
{standard input}:596: Error: no such instruction: `sbcccs %ebx,%ebx,%eax'
{standard input}:596: Error: no such instruction: `movcc %eax,'
{standard input}:735: Error: suffix or operands invalid for `add'
{standard input}:735: Error: no such instruction: `sbcccs %edx,%edx,%eax'
{standard input}:735: Error: no such instruction: `movcc %eax,'
make[5]: *** [/home/dflogeras/t/comedi-0.7.73/comedi/comedi_fops.o] Error 1
make[4]: *** [_module_/home/dflogeras/t/comedi-0.7.73/comedi] Error 2
make[4]: Leaving directory `/home/dflogeras/linux-source-2.6.11.11-arcom2'
make[3]: *** [all-local] Error 2
make[3]: Leaving directory `/home/dflogeras/t/comedi-0.7.73/comedi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/dflogeras/t/comedi-0.7.73/comedi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dflogeras/t/comedi-0.7.73'
make: *** [all] Error 2
Received on 2006-10-30Z18:09:07