[PLUG] Compiling Linux on Cygwin

Abhijit Bhopatkar bain at devslashzero.com
Thu Aug 27 08:57:24 IST 2009


On Sunday 23 Aug 2009 11:25:11 pm Abhijit Dhopate wrote:
> Hi All,
> I am trying to compile linux-source-2.6.31 and create a compact image
> using Cygwin. I have configured and created .config file but during I
> am getting error message "Error: not ELF".

You need to be lot more descriptive than that for us to be able to help you.
Please read "How to ask questions" by ESR, (google the link please)

> As this is my first post, I did not attached a screen shot of error.
> Can any of you tried this before.

Screen-shots are very cumbersome to work with. (You can't search in them) and 
too large for a mailing list (this list has attachments disabled for obvious 
reasons). A text log/error dump will suffice. 

> Please guide to solve the error.
> Thanks in advance.
No :p

Last point as already have neen suggested in separate reply. There can not be 
more relevant reason than this to start using linux instead.

Of Course you are going to have your own reasons for trying this out. But 
there are several technical problems you will have to solve before you can 
achieve this
1. The cygwin toolchain is configured to compile for win32 
2. Linux (kernel) heaviliy depends on specific GCC extensions and features. I 
am sure cygwin gcc has never been tried with in stalk kernel.

So you will have to first understand all the *ahem* options gcc gives you and 
compare them on cygwin and native linux. With that you might get some place 
where you can start compiling stuff in the kernel.
Last but not least you will most definitely have to recompile cygwin toolchain 
to produce elf's rather than win32

Hope this scared you enough.
Any specific reasons why you are doing this? Looks mostly pointless.

> _________________________________
> Abhijit Dhopate

BAIN




More information about the Plug-mail mailing list