From: Henry N. <Hen...@Ar...> - 2007-01-03 23:08:15
|
Ken Perl wrote: > the output of gcc --version is > > $ gcc-3.4 --version > gcc-3.4 (GCC) 3.4.6 (Debian 3.4.6-4) > Copyright (C) 2006 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE > > is this version ok? Yes, it is. > I installed libc6-dev then the previous error is gone, but new error > looks like this, do you know what's the problem? > > ~/linux-2.6.11$ make > CHK include/linux/version.h > SPLIT include/linux/autoconf.h -> include/config/* > make[1]: `arch/i386/kernel/asm-offsets.s' is up to date. > CHK include/linux/compile.h > CHK usr/initramfs_list > CC arch/i386/kernel/process.o > {standard input}: Assembler messages: > {standard input}:923: Error: suffix or operands invalid for `mov' > {standard input}:924: Error: suffix or operands invalid for `mov' > {standard input}:1131: Error: suffix or operands invalid for `mov' The problem is your version of binutils. What is your version? check it with "as --version". CoLinux kernel can compile with the version, you find in bin/build-common.sh near the "BINUTILS_VERSION=". Check it. In coLinux Source exists some assembler macros with typing "movl %ss", they must type as "mov %ss". The old patch for that was: ============================================================ --- src/colinux/arch/i386/passage.c f8c42e2dd5b0a431b1ac6617ae22e49962d20a3f +++ src/colinux/arch/i386/passage.c 2c25da6cea866e574c0e79552800e29282d3c32f @@ -174,7 +174,7 @@ \ /* save and switch from old esp */ \ " movl %esp, "CO_ARCH_STATE_STACK_ESP"(%ebp)" "\n" \ - " movl %ss, "CO_ARCH_STATE_STACK_SS"(%ebp)" "\n" \ + " mov %ss, "CO_ARCH_STATE_STACK_SS"(%ebp)" "\n" \ \ /* save flags */ \ " movl (%esp), %eax" "\n" \ ================================== I asked Google for "colinux Error: suffix or operands invalid for" and Googles good answer was: http://www.archivesat.com/colinux_users/thread429421.htm ;-) -- Henry Nestler |