This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Linux kernel compilation for x86 on Cygwin
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Wed, 01 Aug 2007 08:41:31 -0700
- Subject: Re: Linux kernel compilation for x86 on Cygwin
- References: <46B051D2.1070500@gmail.com>
- Reply-to: cygwin at cygwin dot com
Claudio Scordino wrote:
> I'm trying to compile the Linux kernel using the gcc toolchain of cygwin.
> This time, I'm trying to compile the kernel for the host machine (x86).
You *are* building a cross compiler, right? Because the native Cygwin
gcc will not be usable for building anything linux. Just because gcc on
Cygwin and gcc on Linux both happen to generate code that runs on the
x86 does not mean they are in any way the same platform, so you
absolutely cannot use the Cygwin gcc to build a Linux kernel. But you
can use the Cygwin gcc to build a Linux-targeted Cygwin-hosted
cross-gcc, and then use that to build the Linux kernel.
Brian
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/