From: Ken P. <ke...@gm...> - 2007-01-02 13:29:20
|
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? 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' {standard input}:1132: Error: suffix or operands invalid for `mov' {standard input}:1202: Error: suffix or operands invalid for `mov' {standard input}:1203: Error: suffix or operands invalid for `mov' {standard input}:1260: Error: suffix or operands invalid for `mov' {standard input}:1261: Error: suffix or operands invalid for `mov' {standard input}:1342: Error: suffix or operands invalid for `mov' {standard input}:1354: Error: suffix or operands invalid for `mov' make[1]: *** [arch/i386/kernel/process.o] Error 1 make: *** [arch/i386/kernel] Error 2 On 12/27/06, Henry Nestler <Hen...@ar...> wrote: > Ken Perl wrote: > > sorry, I met errors but I don't know what's my problems. I downloaded > > Linux Kernel 2.6.11(my current version is 2.6.11-co-0.6.4, so I select > > same version), downloaded coLinux0.6.4 source code. > > That's OK. > > > and gcc3.4.6. > > As binary? You can run "gcc --version" and it's say 3.4.6? > > Or as source? Then you need to build it. This is more difficould, and > you should better complete build the colinux from scratch via > "./configure --gcc-guest-build ...YourPaths... && make && make kernel" > > > ~/linux-2.6.11# patch -p1 < ../colinux/patch/linux > > > > ~/linux-2.6.11# cp ../colinux/conf/linux-config .config > > > > ~/linux-2.6.7# make oldconfig > > Perhaps? > cd ~/linux-2.6.11 > make oldconfig > > Second: Please check, that your gcc is working. > Create a small hello-world.c and compile this with your gcc from your > system (Your current gcc from your system. Must not be the gcc3.4.6.) > > > scripts/basic/fixdep.c:105:23: error: sys/types.h: No such file or directory > > scripts/basic/fixdep.c:106:22: error: sys/stat.h: No such file or directory > > scripts/basic/fixdep.c:107:22: error: sys/mman.h: No such file or directory > > ... > > Perhaps is mising one of the devel packets for gcc. I'm not a debian > crack. Perhaps a gcc-devel, glibc-devel? Ask google about "howto > install gcc under debian". > > Check, that you have the right versions for compiler and tools to build > a kernel. I'm not shure, Kernel 2.6 needs a gcc >= 3.x.x on your > system. Check this with "gcc --version". > > The mostly known missing is "ncurses-devel". But you have an other > problem before. > > An alternate: > If you have enouth free disk space (2GB), install Fedora Core 5 image > file from SourgeForge. There is gcc 3.4 default, and that was used to > build colinux. You must install gcc and binutils in the running Fedora > coLinux, the binaries exists as rpm. After you have build your kernel > and modules, you can copy kernel and modules into your target system (. > > -- > Henry Nestler > -- perl -e 'print unpack(u,"62V5N\"FME;G\!E<FQ`9VUA:6PN8V]M\"\@`` ")' |