Re: 2.5.62: Cross-building broken

From: John Bradford (john@grabjohn.com)
Date: Tue Feb 18 2003 - 08:49:33 EST


> Cross-building ARM from HPPA:
>
> $ make config CROSS_COMPILE=/home/rmk/bin/arm-linux- ARCH=arm
> make: Entering directory `/home/rmk/v2.5/linux-rpc'
> make -f scripts/Makefile.build obj=scripts
> gcc -Wp,-MD,scripts/.empty.o.d -D__KERNEL__ -Iinclude -Wall
> -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common
> -mshort-load-bytes -msoft-float -Wa,-mno-fpu -Uarm -nostdinc -iwithprefix
> include -DKBUILD_BASENAME=empty -DKBUILD_MODNAME=empty -c -o
> scripts/empty.o scripts/empty.c
> make: Leaving directory `/home/rmk/v2.5/linux-rpc'
> cc1: Invalid option `short-load-bytes'
> make[1]: *** [scripts/empty.o] Error 1
> make: *** [scripts] Error 2
>
> We seem to be using the wrong compiler here, or the wrong CFLAGS.

Hmmm, cross compiling for Sparc works:

make config CROSS_COMPILE=/usr/local/bin/sparc-linux- ARCH=sparc
make -f scripts/Makefile.build obj=scripts
make -f scripts/Makefile.build obj=scripts/kconfig scripts/kconfig/conf
make[1]: `scripts/kconfig/conf' is up to date.
./scripts/kconfig/conf arch/sparc/Kconfig
#
# using defaults found in arch/sparc/defconfig
#
*
* Linux Kernel Configuration
*
*
* Code maturity level options
*
Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [Y/n/?]

John.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Feb 23 2003 - 22:00:21 EST