[PATCH] Cross compile?
Lombard, David N
dnlombar at ichips.intel.com
Wed May 7 11:39:27 EDT 2008
On Wed, May 07, 2008 at 08:09:32AM -0700, Lombard, David N wrote:
> On Wed, May 07, 2008 at 08:42:22AM +1000, Jeremy Kerr wrote:
> > Hi David,
> >
> > > Well, note the patch *does* uses those values--it's just the
> > > assignment doesn't work.
> >
> > Let's fix the assignment then - it's been working fine here (build =
> > i386-linux, host = powerpc-linux, target = powerpc64-linux), so I'd
> > like to know what's breaking on your system.
More info:
Failure (original):
mkdir -p purgatory
uclibc-gcc --no-undefined -nostartfiles -nostdlib -nodefaultlibs -e purgatory_start -r -o purgatory/purgatory.ro purgatory/purgatory.o purgatory/printf.o purgatory/string.o purgatory/arch/i386/entry32-16.o purgatory/arch/i386/entry32-16-debug.o purgatory/arch/i386/entry32.o purgatory/arch/i386/setup-x86.o purgatory/arch/i386/stack.o purgatory/arch/i386/compat_x86_64.o purgatory/arch/i386/purgatory-x86.o purgatory/arch/i386/console-x86.o purgatory/arch/i386/vga.o purgatory/arch/i386/pic.o purgatory/arch/i386/crashdump_backup.o purgatory/sha256.o
uclibc-gcc -o bin/bin-to-hex util/bin-to-hex.c
mkdir -p kexec
bin/bin-to-hex purgatory < purgatory/purgatory.ro > kexec/purgatory.c
/bin/sh: bin/bin-to-hex: /lib/ld-uClibc.so.0: bad ELF interpreter: No such file or directory
make[1]: *** [kexec/purgatory.c] Error 126
Success (patched):
mkdir -p purgatory
uclibc-gcc --no-undefined -nostartfiles -nostdlib -nodefaultlibs -e purgatory_start -r -o purgatory/purgatory.ro purgatory/purgatory.o purgatory/printf.o purgatory/string.o purgatory/arch/i386/entry32-16.o purgatory/arch/i386/entry32-16-debug.o purgatory/arch/i386/entry32.o purgatory/arch/i386/setup-x86.o purgatory/arch/i386/stack.o purgatory/arch/i386/compat_x86_64.o purgatory/arch/i386/purgatory-x86.o purgatory/arch/i386/console-x86.o purgatory/arch/i386/vga.o purgatory/arch/i386/pic.o purgatory/arch/i386/crashdump_backup.o purgatory/sha256.o
host-gcc -O2 -Wall -o bin/bin-to-hex util/bin-to-hex.c
mkdir -p kexec
bin/bin-to-hex purgatory < purgatory/purgatory.ro > kexec/purgatory.c
uclibc-gcc -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/ -I./kexec/arch/i386/include -c -MD -o kexec/purgatory.o kexec/purgatory.c
Build distro is F7
Using purpose-built gcc-3.4.6 for both uclibc-gcc and host-gcc
Make is make-3.81-6.fc7
--
David N. Lombard, Intel, Irvine, CA
I do not speak for Intel Corporation; all comments are strictly my own.
More information about the kexec
mailing list