Are you compiling trunk ?

Make sure this patch is in your build:
https://dev.openwrt.org/browser/trunk/target/linux/uml/patches-2.6.34/002-gcc4_unfortify_source.patch

I had problem before with UML and 64bit machines (I was not using
trunk), when I backported this patch everything went ok

Saverio



2010/12/4 Robert Wuttke <flash...@gmx.de>:
> Hi,
>
> I am trying to build OpenWrt as User Mode Linux on a 64bit machine.
> The build fails with the following message:
>
> Do you have any suggestions on how to proceed? On a 32bit machine, the
> build is successful.
>
> i486-openwrt-linux-uclibc-gcc -c libc/sysdeps/linux/x86_64/crt1.S -o
> lib/crt1.o -include ./include/libc-symbols.h -Wall -Wstrict-prototypes
> -fno-strict-aliasing -O2 -pipe -march=i486 -funit-at-a-time -fhonour-
> copts -fno-stack-protector -fno-builtin -nostdinc -I./include -I.
> -I./libc/sysdeps/linux/x86_64 -fno-asm -DUCLIBC_INTERNAL -Os
> -funit-at-a-time -fno-tree-loop-optimize -fno-tree-dominator-opts
> -fno-strength-re duce
> -I./libpthread/linuxthreads.old/sysdeps/unix/sysv/linux/x86_64
> -I./libpthread/linuxthreads.old/sysdeps/x86_64
> -I./libpthread/linuxthreads.old/sysdeps/unix/sysv/linux
> -I./libpthread/linuxthreads.old/sysdep s/pthread
> -I./libpthread/linuxthreads.old -I./libpthread
> -I/home/builder/backfire/uml/build_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.30.1/linux-dev/usr/include/
> -I/home/builder/backfire/uml/staging_dir/toolchai
> n-i386_gcc-4.1.2_uClibc-0.9.30.1/usr/lib/gcc/i486-openwrt-linux-uclibc/4.1.2//include-fixed
> -I/home/builder/backfire/uml/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.30.1/usr/lib/gcc/i486-openwrt-linux-ucli
> bc/4.1.2/include -DNDEBUG -MT lib/crt1.o -MD -MP -MF lib/.crt1.o.dep
> -D__ASSEMBLER__ -Wa,--noexecstack -DL_crt1
> libc/sysdeps/linux/x86_64/crt1.S: Assembler messages:
> libc/sysdeps/linux/x86_64/crt1.S:96: Error: bad register name `%rdx'
> libc/sysdeps/linux/x86_64/crt1.S:97: Error: bad register name `%rsi'
> libc/sysdeps/linux/x86_64/crt1.S:98: Error: bad register name `%rsp'
> libc/sysdeps/linux/x86_64/crt1.S:101: Error: bad register name `%rsp'
> libc/sysdeps/linux/x86_64/crt1.S:103: Error: bad register name `%rax'
> libc/sysdeps/linux/x86_64/crt1.S:107: Error: bad register name `%rsp'
> libc/sysdeps/linux/x86_64/crt1.S:121: Error: bad register name `%rdi'
> libc/sysdeps/linux/x86_64/crt1.S:124: Error: bad register name `%rcx'
> libc/sysdeps/linux/x86_64/crt1.S:125: Error: bad register name `%r8'
> make[4]: *** [lib/crt1.o] Error 1
>
>
> --
>
> Robert
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to