Commit 6625518cd6 broke cross compiling?

Khem Raj raj.khem at
Fri Sep 4 22:23:07 UTC 2009

On Fri, Sep 4, 2009 at 1:07 PM, Rob Landley<rob at> wrote:
> Before the August 25 commit "default ?conf to native arch", I could do this:
> make KCONFIG_ALLCONFIG=miniconfig-uClibc.$ARCH allnoconfig &&
>  install hostutils
> The KCONFIG_ALLCONFIG file would specify the architecture it was building for,
> and CROSS= would specified the appropriate cross compiler prefix.  (This is how
> uCLibc has worked for many years now.
> 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.



More information about the uClibc mailing list