Click to See Complete Forum and Search --> : compiling the kernel


transhour
05-06-2003, 08:36 PM
i was wondering if their is a way to compile the linux kernel in windows, if so, i would like to do it with the gcc 2 compiler, not the 3.

thanks,
michael

GaryJones32
05-06-2003, 11:38 PM
i just asked my Cygwin on windows 2000 what version gcc it was running and it said 2.95.3-6
i don't know about the one now though..
bottom line is i just don't think this will be possible though i might be wrong...
the cygwin version of the clibs is ported to windows
uses windows thread types and socket types and like that i think. (has to ultimately use windows types to run embeded in windows yes ??)
i might be wrong..
it may be possible to get all the ports you need to get it to compile but even then if it will run your linux system would be highly questionable i think.
Debian is set up so you can have both compilers 2 and 3 at the same time though i think once you install 3 the libs become the 3
ones...
I'm sure it is possible to compile using both gcc2 and the 2 libs on your system if you keep the libraries isolated (like keep the 2 ones in your home dir or something) and controll the linking with the flags in the makefile..
what exactly is your problem -- are you just getting errors when you try to compile an older kernel with gcc3 ????
(if so i bet someone has found a workaround)
is there some reason you can't use the latest kernel and go ahead and migrate to gcc3..??

transhour
05-07-2003, 04:41 AM
well i got these drivers for my network card, broadcom 4210, and the drivers i found, worked with an older version of redhat, like 6.2 i think. it said i could recompile them for the new version, but i am having trouble with doing that, when i use the 3 compiler, and then try to load the mod, it tells me that it was compiled with gcc 2, and that it wont work with the kernel since it was compiled using the 3. i have tried to force it to load, but it still wont work, was wondering if the make or gmake command was faulty and choosing gcc2 instead of gcc3
i really want to get these drivers to work, cause i am planing on dropping windows, and devoting all my computer resources to linux, and to help its development, i have been wanting to do this for a long time, but every time something goes wrong, like i can't find drivers, or i have to reload windows cause i can't get something to work or i find a new game, now i understand how to use the wine, so i want to give linux my full undivided attention ya kow.