reza shahriari
2019-Aug-20 17:03 UTC
Re: [libvirt-users] Compiling Libvirt on Windows for Hyper V support
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@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@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> :|
Daniel P. Berrangé
2019-Aug-20 17:30 UTC
Re: [libvirt-users] Compiling Libvirt on Windows for Hyper V support
On Tue, Aug 20, 2019 at 01:03:40PM -0400, reza shahriari wrote:> Hi, > > I tried that out, I got a new error about pthreads in my config.log.It finds the header file now which is good, but it still fails to find the libpthread.dll file, which is what LDFLAGS should have addressed configure:15417: checking for pthread_kill in -lpthread configure:15442: gcc -o conftest.exe -I/c/msys64/mingw64/x86_64-w64-mingw32/include/ -L/c/msys64/mingw64/x86_64-w64-mingw32/lib/:/c/msys64/mingw64/bin/ conftest.c -lpthread >&5 c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: cannot find -lpthread | char pthread_kill (); Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
reza shahriari
2019-Aug-20 17:53 UTC
Re: [libvirt-users] Compiling Libvirt on Windows for Hyper V support
Thanks so much. I got it to go past pthreads. Now I am working on other dependencies> On Aug 20, 2019, at 1:30 PM, Daniel P. Berrangé <berrange@redhat.com> wrote: > > On Tue, Aug 20, 2019 at 01:03:40PM -0400, reza shahriari wrote: >> Hi, >> >> I tried that out, I got a new error about pthreads in my config.log. > > It finds the header file now which is good, but it still fails to > find the libpthread.dll file, which is what LDFLAGS should have > addressed > > configure:15417: checking for pthread_kill in -lpthread > configure:15442: gcc -o conftest.exe -I/c/msys64/mingw64/x86_64-w64-mingw32/include/ -L/c/msys64/mingw64/x86_64-w64-mingw32/lib/:/c/msys64/mingw64/bin/ conftest.c -lpthread >&5 > c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: cannot find -lpthread > | char pthread_kill (); > > > > Regards, > Daniel > -- > |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| > |: https://libvirt.org -o- https://fstop138.berrange.com :| > |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Apparently Analagous Threads
- Re: Compiling Libvirt on Windows for Hyper V support
- Re: Compiling Libvirt on Windows for Hyper V support
- Compiling Libvirt on Windows for Hyper V support
- Re: Compiling Libvirt on Windows for Hyper V support
- How do I set a compile flag _WIN32_WINNT=0x600 in Makevars.Win