Package: kernel-package
Version: 10.048
Severity: normal

I'm trying to build a kernel for ARM on an i386 host using
linux-source-2.6.16. It fails with the output below. Apparently the
host compiler gcc-3.4 is used, where I believe the arm-linux-gnu-gcc
should be used.

The cross-compiler itself is working correctly.

Here is the output:

$ make-kpkg --config=menuconfig --arch arm --cross-compile
arm-linux-gnu --append-to-version=-slug --revision=1 kernel_image
exec debian/rules  DEBIAN_REVISION=1  APPEND_TO_VERSION=-slug  KPKG_ARCH=arm 
CONFIG_TARGET=menuconfig  CROSS_COMPILE=arm-linux-gnu  kernel_image
dpkg-architecture: warning: Specified GNU system type arm-linux-gnu does not
match gcc system type i486-linux-gnu.
dpkg-architecture: warning: Specified GNU system type arm-linux-gnu does not
match gcc system type i486-linux-gnu.
dpkg-architecture: warning: Specified GNU system type arm-linux-gnu does not
match gcc system type i486-linux-gnu.
dpkg-architecture: warning: Specified GNU system type arm-linux-gnu does not
match gcc system type i486-linux-gnu.

====== making target CONFIG-common [new prereqs: testdir]======

====== making target CONFIG-common [new prereqs: stamp-conf]======
This is kernel package version 10.048.
====== making stamp-arch-conf because of  ======

====== making target CONFIG-arch [new prereqs: stamp-arch-conf]======
====== making conf.vars because of .config ======

====== making target CONFIG-arch [new prereqs: .config conf.vars]======
This is kernel package version 10.048.
====== making target CONFIG/linux-headers-2.6.16-slug [new prereqs:
CONFIG-arch]======

====== making target CONFIG/linux-image-2.6.16-slug [new prereqs:
CONFIG-arch]======

====== making target CONFIG/linux-uml-2.6.16-slug [new prereqs:
CONFIG-arch]======
====== making target CONFIG/linux-xen0-2.6.16-slug [new prereqs:
CONFIG-arch]======

====== making target CONFIG/linux-xenu-2.6.16-slug [new prereqs:
CONFIG-arch]======

====== making stamp-configure-arch because of  ======
====== making target configure-arch [new prereqs:
stamp-configure-arch]======
====== making stamp-indep-conf because of  ======

====== making target CONFIG-indep [new prereqs: stamp-indep-conf]======
====== making target debian/stamp-kernel-conf [new prereqs: .config
Makefile]======
/usr/bin/make EXTRAVERSION=-slug  CROSS_COMPILE=arm-linux-gnu- ARCH=arm \
                menuconfig
make[1]: Entering directory `/mnt/src/kernel/linux-source-2.6.16'
scripts/kconfig/mconf arch/arm/Kconfig
#
# using defaults found in .config
#


*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.

make[1]: Leaving directory `/mnt/src/kernel/linux-source-2.6.16'
/usr/bin/make EXTRAVERSION=-slug  CROSS_COMPILE=arm-linux-gnu- ARCH=arm
prepare
make[1]: Entering directory `/mnt/src/kernel/linux-source-2.6.16'
  CHK     include/linux/version.h
  SPLIT   include/linux/autoconf.h -> include/config/*
  SYMLINK include/asm-arm/arch -> include/asm-arm/arch-ixp4xx
make[2]: `include/asm-arm/mach-types.h' is up to date.
  CC      arch/arm/kernel/asm-offsets.s
cc1: error: invalid option `little-endian'
cc1: error: invalid option `apcs'
cc1: error: invalid option `no-sched-prolog'
cc1: error: invalid option `abi=apcs-gnu'
arch/arm/kernel/asm-offsets.c:1: error: bad value (armv4) for -march= switch
arch/arm/kernel/asm-offsets.c:1: error: bad value (strongarm110) for -mtune=
switch
make[2]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make[1]: *** [prepare0] Error 2
make[1]: Leaving directory `/mnt/src/kernel/linux-source-2.6.16'
make: *** [debian/stamp-kernel-conf] Error 2


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-686
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)

Versions of packages kernel-package depends on:
ii  dpkg                          1.13.19    package maintenance system for Deb
ii  dpkg-dev                      1.13.19    package building tools for Debian
ii  file                          4.17-1     Determines file type using "magic"
ii  gcc [c-compiler]              4:4.0.3-4  The GNU C compiler
ii  gcc-3.4 [c-compiler]          3.4.6-1    The GNU C compiler
ii  gcc-4.0 [c-compiler]          4.0.3-3    The GNU C compiler
ii  gcc-4.1 [c-compiler]          4.1.0-4    The GNU C compiler
ii  gettext                       0.14.5-4   GNU Internationalization utilities
ii  make                          3.81-2     The GNU version of the "make" util
ii  perl                          5.8.8-4    Larry Wall's Practical Extraction 
ii  po-debconf                    1.0.2      manage translated Debconf template

Versions of packages kernel-package recommends:
ii  bzip2                         1.0.3-2    high-quality block-sorting file co
ii  libc6-dev [libc-dev]          2.3.6-13   GNU C Library: Development Librari

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to