Commit 6625518cd6 broke cross compiling?

Denys Vlasenko vda.linux at googlemail.com
Sat Sep 5 18:51:53 UTC 2009


On Saturday 05 September 2009 00:23, Khem Raj wrote:
> > Now whenever I'm _not_ building for my host system, it dies trying to build
> > x86-64 assembly source with the target toolchain.  For example, when building
> > for an armv4l target (see attached miniconfig file), it does:
> >
> >  AS lib/crt1.o
> > libc/sysdeps/linux/x86_64/crt1.S: Assembler messages:
> > libc/sysdeps/linux/x86_64/crt1.S:80: Error: bad instruction `xorl %ebp,%ebp'
> > libc/sysdeps/linux/x86_64/crt1.S:96: Error: bad instruction `movq %rdx,%r9'
> > libc/sysdeps/linux/x86_64/crt1.S:97: Error: bad instruction `popq %rsi'
> > libc/sysdeps/linux/x86_64/crt1.S:98: Error: bad instruction `movq %rsp,%rdx'
> > libc/sysdeps/linux/x86_64/crt1.S:101: Error: bad instruction `andq $~15,%rsp'
> > libc/sysdeps/linux/x86_64/crt1.S:103: Error: bad instruction `pushq %rax'
> > libc/sysdeps/linux/x86_64/crt1.S:107: Error: bad instruction `pushq %rsp'
> > libc/sysdeps/linux/x86_64/crt1.S:121: Error: bad instruction `movq $main,%rdi'
> > libc/sysdeps/linux/x86_64/crt1.S:124: Error: bad instruction `movq $_init,
> > %rcx'
> > libc/sysdeps/linux/x86_64/crt1.S:125: Error: bad instruction `movq $_fini,%r8'
> > libc/sysdeps/linux/x86_64/crt1.S:128: Error: bad instruction `call
> > __uClibc_main'
> > libc/sysdeps/linux/x86_64/crt1.S:131: Error: bad instruction `hlt'
> 
> use make ARCH=<your arch>
> specifying ARCH is needed now on makefile commandline.

Why? This information is available from .config file.
And it was working without before.
--
vda


More information about the uClibc mailing list