From: Henry N. <Hen...@Ar...> - 2006-12-27 01:00:53
|
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 |