Pages

Monday, 13 June 2011

Building QEmu on Cygwin; the magic trick!

I have just spent some hours to fund out why me and my colleague was unable to build qemu-0.14 on Cygwin. We did everything right and still we was stuck with the magic error from configure:


$./configure
ERROR: "gcc" either does not exist or does not work


Searching for problems with configure and gcc as keywords gives a lot of noise but eventually we found a solution. During installation we installed both gcc-3 and gcc-4 with gcc-4 as default. Switching over to gcc-3 made the trick. It can easily be done using options to configure:


$./configure --cc="gcc-3 -mno-cygwin" --host-cc=gcc-3

Br
Erik



No comments:

Post a Comment