windows-10 - Windows 10 Bash shell - ""cc" either does not exist or does not work" when compiling Qemu - answerstu - answerstu.com answerstu

Windows 10 Bash shell - ""cc" either does not exist or does not work" when compiling Qemu

I'm trying to compile Qemu via the Windows 10 Bash shell with this command:

../configure --target-list=ppc_softmmu

However, I always get this error:

"cc" either does not exist or does not work

I've tried some of the methods I've found online but none worked. As a side note, I also get these errors:

../configure: 39: ../configure: cannot create config.log: Directory nonexistent
../configure: 40: ../configure: cannot create config.log: Directory nonexistent
../configure: 41: ../configure: cannot create config.log: Directory nonexistent
../configure: 42: ../configure: cannot create config.log: Directory nonexistent
../configure: 43: ../configure: cannot create config.log: Directory nonexistent
../configure: 61: ../configure: cannot create config.log: Directory nonexistent
../configure: 62: ../configure: cannot create config.log: Directory nonexistent
../configure: 61: ../configure: cannot create config.log: Directory nonexistent
../configure: 62: ../configure: cannot create config.log: Directory nonexistent
../configure: 61: ../configure: cannot create config.log: Directory nonexistent
../configure: 62: ../configure: cannot create config.log: Directory nonexistent
../configure: 61: ../configure: cannot create config.log: Directory nonexistent
../configure: 62: ../configure: cannot create config.log: Directory nonexistent
../configure: 61: ../configure: cannot create config.log: Directory nonexistent
../configure: 62: ../configure: cannot create config.log: Directory nonexistent
../configure: 61: ../configure: cannot create config.log: Directory nonexistent
../configure: 62: ../configure: cannot create config.log: Directory nonexistent
../configure: 61: ../configure: cannot create config.log: Directory nonexistent
../configure: 62: ../configure: cannot create config.log: Directory nonexistent
../configure: 61: ../configure: cannot create config.log: Directory nonexistent
../configure: 62: ../configure: cannot create config.log: Directory nonexistent
../configure: 61: ../configure: cannot create config.log: Directory nonexistent
../configure: 62: ../configure: cannot create config.log: Directory nonexistent
../configure: 61: ../configure: cannot create config.log: Directory nonexistent
../configure: 62: ../configure: cannot create config.log: Directory nonexistent
../configure: 61: ../configure: cannot create config.log: Directory nonexistent
../configure: 62: ../configure: cannot create config.log: Directory nonexistent
../configure: 61: ../configure: cannot create config.log: Directory nonexistent
../configure: 62: ../configure: cannot create config.log: Directory nonexistent
../configure: 61: ../configure: cannot create config.log: Directory nonexistent
../configure: 62: ../configure: cannot create config.log: Directory nonexistent
../configure: 61: ../configure: cannot create config.log: Directory nonexistent
../configure: 62: ../configure: cannot create config.log: Directory nonexistent
../configure: 61: ../configure: cannot create config.log: Directory nonexistent
../configure: 62: ../configure: cannot create config.log: Directory nonexistent
../configure: 61: ../configure: cannot create config.log: Directory nonexistent
../configure: 62: ../configure: cannot create config.log: Directory nonexistent

I've installed all packages the wiki recommends (http://qemu-project.org/Hosts/Linux#Fedora_Linux_.2F_Debian_GNU_Linux_.2F_Ubuntu_Linux_.2F_Linux_Mint)

Can someone help me?

1 Answer

  1. Fred- Reply

    2019-11-15

    The "Directory nonexistent" error indicates your current working directory doesn't exist anymore. The configure command tries to create its log file, config.log in your current working directory. You'd usually run the configure command while in its directory: ./configure.

    That being said, I didn't encounter any problems. I installed the Windows Subsystem for Linux and the following:

    • apt-get install build-essential (includes GCC, G++, Make and whatnot)
    • apt-get install git libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev
    • apt-get update && apt-get upgrade

    After that, I was able to run ./configure --target-list=ppc-softmmu and make -j3 (meaning up to three parallel jobs). It compiled successfully and I was able to run ./ppc-softmmu/qemu-system-ppc. The firmware (or whatever) was accessible over VNC.

Leave a Reply

Your email address will not be published. Required fields are marked *

You can use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>