problem using gcc-core for compile qemu
Marco Atzeri
marco.atzeri@gmail.com
Fri Jan 8 05:52:22 GMT 2021
On 07.01.2021 23:33, juan carlos rebate rodriguez via Cygwin wrote:
> El jue, 07-01-2021 a las 15:39 +0100, Marco Atzeri via Cygwin escribió:
>> If the upstream developers have not bothered to use a serious
>> configure system,, I doubt there is a easy solution.
>>
>> Questions:
>>
>> Are you trying to build for Cygwin or for Windows in general ?
>> why you can not use the Windows binaries ?
>
>
> I try to build for standard windows, for this reason I use gcc-core and
> not cygwin-gcc, if I can use normal windows binaries, what I cannot is
> use mingw because it is not able to find resources in the system while
> gcc does can, I can't use virtualbx because what I need is to emulate
> the aarch64 architecture, I don't want to use binaries compiled by
> others, one of the reasons is that those binaries don't include sd-card
> emulation support, but if those binaries are compiled by me I can
> include what I want, if I install this library through the cygwin
> package manager and then use gcc-core it is able to search for it, it
> is not my desire to get into the swamp and have to modify the
> configuration script, the An easier solution would be to try to trick
> mingw into looking for external libraries without having to modify
> their paths, since when editing them the compilation process slows down
> even more than it already is
Juan Carlos,
you are misunderstanding what gcc-core is.
gcc-core includes only the compiler that targets Cygwin itself.
To compile for Windows on Cygwin you need to use a cross-compiler.
The 64 bit one is in:
$ cygcheck -l mingw64-i686-gcc-core | grep usr/bin
/usr/bin/i686-w64-mingw32-cpp.exe
/usr/bin/i686-w64-mingw32-gcc.exe
/usr/bin/i686-w64-mingw32-gcc-10.exe
/usr/bin/i686-w64-mingw32-gcc-ar.exe
/usr/bin/i686-w64-mingw32-gcc-nm.exe
/usr/bin/i686-w64-mingw32-gcc-ranlib.exe
/usr/bin/i686-w64-mingw32-gcov.exe
/usr/bin/i686-w64-mingw32-gcov-dump.exe
/usr/bin/i686-w64-mingw32-gcov-tool.exe
/usr/bin/i686-w64-mingw32-lto-dump.exe
however there is another problem for building quemu
---------------------------------------------------
$ PKG_CONFIG_LIBDIR=/usr/x86_64-w64-mingw32/sys-root/mingw ./configure
--cc=/usr/bin/x86_64-w64-mingw32-gcc.exe
Using './build' as the directory for build output
ERROR: glib-2.48 gthread-2.0 is required to compile QEMU
----------------------------------------------------
and the cross gthread package is not present on Cygwin
$ cygcheck -cd |grep mingw64-x86
mingw64-x86_64-binutils 2.34-1
mingw64-x86_64-bzip2 1.0.6-4
mingw64-x86_64-gcc-core 10.2.0-1
mingw64-x86_64-gcc-g++ 10.2.0-1
mingw64-x86_64-gettext 0.19.8.1-2
mingw64-x86_64-glib2.0 2.54.3-1
mingw64-x86_64-glib2.0-networking 2.54.1-1
mingw64-x86_64-gmp 6.1.2-1
mingw64-x86_64-gnutls 3.5.18-1
mingw64-x86_64-headers 8.0.0-1
mingw64-x86_64-libffi 3.2.1-2
mingw64-x86_64-libgcrypt 1.8.2-1
mingw64-x86_64-libgpg-error 1.28-1
mingw64-x86_64-libidn2 2.0.4-1
mingw64-x86_64-libproxy 0.4.14-1
mingw64-x86_64-libtasn1 4.13-1
mingw64-x86_64-libunistring 0.9.6-1
mingw64-x86_64-nettle 3.4-1
mingw64-x86_64-p11-kit 0.23.10-1
mingw64-x86_64-pcre 8.44-1
mingw64-x86_64-runtime 8.0.0-1
mingw64-x86_64-win-iconv 0.0.6-2
mingw64-x86_64-windows-default-manifest 6.4-1
mingw64-x86_64-winpthreads 8.0.0-1
mingw64-x86_64-xz 5.2.3-1
mingw64-x86_64-zlib 1.2.11-1
I suggest you to try using MingW64 enviroment for compiling QEMU
http://mingw-w64.org/
Regards
Marco
More information about the Cygwin
mailing list