From: Henry N. <Hen...@Ar...> - 2006-10-05 16:45:04
|
Michelangelo wrote: > Dear all, following George P Boutwell advice about colinux kernel > recompiling I found a "gotcha" I was not aware of, gcc version has to be > <=3.3.x > I'm using gentoo on colinux, with gcc 3.4, same version as the > production servers. > So I'm wandering what's "the right thing"(tm) to do: > 1) - recompile the whole colinux daemon for win32 with gcc 3.4 (and a > mingw toolchain) then recompile the colinux kernel with gcc 3.4 > or This one would only work, if you _not_ change the GCC version, that are defined in colinux source. If you change the gcc or the binutil version, than the build can be broken. Newer binutils stops on some inline assembler, newer gcc warns about some coding style. I'm not know, why you need to recompile the daemons, if you have gcc 3.4.x ? Colinux 0.6.4 was compiled with a gcc 3.4.4, you can use every gcc 3.4.x to compile your one kernel, without recompiling the daemons, without cross builds. > 2) - simply install a gcc 3.3 on the gentoo colinux then recompile the > colinux kernel This would only work, if your coLinux daemons are compiled with gcc 3.3.x, this was coLinux 0.6.2 or older. If you not to wish to build the daemons, than check first the used version of gcc, where the daemons are build. Download the source of colinux, you want to use, unpack it. You find GCC_VERSION in the file bin/common.sh, these first two digits give you the gcc you should use to compile the kernel. > As a matter of fact I'd like to know if someone has some experience > on 1), if it is feasible and stable (do not know if there are some caveats) You should have more than 500MB free disk space and a internet connection. Than download the source of colinux and run scripts ./configure && make This would download some more sources and than build the cross environemt, daemons and the kernel. After it has finish, you can change the kernel config and start the script build-kernel.sh (or "make kernel") again. More about coLinux building you find in the source under doc/building, this is the file: http://www.henrynestler.com/colinux/source/0.7.1-doc/building.txt -- Henry Nestler |