[libvirt-users] Compiling Libvirt on Windows for Hyper V support

reza shahriari reza_shahriari at yahoo.ca
Tue Aug 20 17:03:40 UTC 2019


Hi,

I tried that out, I got a new error about pthreads in my config.log.

Could you take another look.

Thanks again,

Reza


> On Aug 20, 2019, at 12:36 PM, Daniel P. Berrangé <berrange at redhat.com> wrote:
> 
> On Tue, Aug 20, 2019 at 12:29:15PM -0400, reza shahriari wrote:
>> Hi,
>> 
>> I have attached my compressed config file.
>> 
>> Thanks,
>> 
>> Reza
>> 
>> 
>> 
>>> On Aug 20, 2019, at 12:03 PM, Daniel P. Berrangé <berrange at redhat.com> wrote:
>>> 
>>> Re-adding the mailing list CC - please don't drop it.
>>> 
>>> On Tue, Aug 20, 2019 at 11:54:34AM -0400, reza shahriari wrote:
>>>> Hi, 
>>>> 
>>>> I am using msys2. When I run `./configure` without any parameters and I still see missing pthreads impl.
>>>> 
>>>> I have installed mingw64 cross compiler toolchain. Here is the output of pacman I see when searching for pthreads (they are all installed).
>>>> 
>>>> mingw64/mingw-w64-x86_64-libwinpthread-git 7.0.0.5480.e14d23be-1 (mingw-w64-x86_64-toolchain) [installed]
>>>>   MinGW-w64 winpthreads library
>>>> mingw64/mingw-w64-x86_64-winpthreads-git 7.0.0.5480.e14d23be-1 (mingw-w64-x86_64-toolchain) [installed]
>>>>   MinGW-w64 winpthreads library
>>>> msys/mingw-w64-cross-winpthreads-git 7.0.0.5480.b627284b-1 (mingw-w64-cross-toolchain mingw-w64-cross) [installed]
>>>>   MinGW-w64 winpthreads library for cross-compiler
>>>> 
>>>> 
>>>> Also, is there any another way to enable hyper-v domains on Libvirt ?
>>> 
>>> The pthreads library is a mandatory part of libvirt, so we can't
>>> skip that.
>>> 
>>> Can you provide your "config.log" file - if it is larger than
>>> 200 KB, please compress it, or upload it somewhere
> 
> The log shows
> 
> configure:8796: checking for pthread.h
> configure:8796: gcc -c -g -O2  conftest.c >&5
> conftest.c:82:10: fatal error: pthread.h: No such file or directory
> #include <pthread.h>
>          ^~~~~~~~~~~
> compilation terminated.
> 
> 
> so it is not finding the winpthreads package you installed.
> 
> You might be ablke to set the  "CFLAGS" env variable to
> "-I/path/to/winpthreads/include" to get it to work. Might
> need LDFLAGS="-L/path/to/winpthreads/lib" too.
> 
> Regards,
> Daniel
> -- 
> |: https://berrange.com <https://berrange.com/>      -o-    https://www.flickr.com/photos/dberrange <https://www.flickr.com/photos/dberrange> :|
> |: https://libvirt.org <https://libvirt.org/>         -o-            https://fstop138.berrange.com <https://fstop138.berrange.com/> :|
> |: https://entangle-photo.org <https://entangle-photo.org/>    -o-    https://www.instagram.com/dberrange <https://www.instagram.com/dberrange> :|

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20190820/6a1ef803/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config (1).zip
Type: application/zip
Size: 104637 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20190820/6a1ef803/attachment.zip>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20190820/6a1ef803/attachment-0001.htm>


More information about the libvirt-users mailing list