reza shahriari
2019-Aug-19 19:52 UTC
[libvirt-users] Compiling Libvirt on Windows for Hyper V support
Hi, I am trying to compile Libvirt from the source code on windows using msys2 but keep hitting issues while running `./configure`. ….> checking whether C compiler handles -Wno-suggest-attribute=pure… yes > checking whether C compiler handles -Wno-suggest-attribute=const... yes > checking for how to force completely read-only GOT table… > checking for how to avoid indirect lib deps... -Wl,--no-copy-dt-needed-entries > checking for how to stop undefined symbols at link time… > checking sys/acl.h usability... no > checking sys/acl.h presence… no > checking for sys/acl.h… no > checking for aa_change_profile in -lapparmor… no > checking for pthread_mutexattr_init… no > checking for pthread.h... (cached) no > configure: error: A pthreads impl is required for building libvirt... Does anyone have any experience compiling Libvirt on a windows machine ? Specifically I am trying to enable hyper-v domain on Libvirt. Thanks, Reza Shahriari
Erik Skultety
2019-Aug-20 07:26 UTC
Re: [libvirt-users] Compiling Libvirt on Windows for Hyper V support
On Mon, Aug 19, 2019 at 03:52:51PM -0400, reza shahriari wrote:> Hi, > > I am trying to compile Libvirt from the source code on windows using msys2 but keep hitting issues while running `./configure`.So what arguments does msys2 pass to the configure script? Erik
reza shahriari
2019-Aug-20 15:17 UTC
Re: [libvirt-users] Compiling Libvirt on Windows for Hyper V support
I am passing in: ./configure \ --without-sasl \ --without-polkit \ --without-python \ --without-libxl \ --without-qemu \ --without-lxc \ --without-openvz \ --without-libvirtd (The ones on the website: https://libvirt.org/windows.html <https://libvirt.org/windows.html>)> On Aug 20, 2019, at 3:26 AM, Erik Skultety <eskultet@redhat.com> wrote: > > On Mon, Aug 19, 2019 at 03:52:51PM -0400, reza shahriari wrote: >> Hi, >> >> I am trying to compile Libvirt from the source code on windows using msys2 but keep hitting issues while running `./configure`. > > So what arguments does msys2 pass to the configure script? > > Erik
Daniel P. Berrangé
2019-Aug-20 15:42 UTC
Re: [libvirt-users] Compiling Libvirt on Windows for Hyper V support
On Mon, Aug 19, 2019 at 03:52:51PM -0400, reza shahriari wrote:> Hi, > > I am trying to compile Libvirt from the source code on windows using msys2 but keep hitting issues while running `./configure`. > > …. > > checking whether C compiler handles -Wno-suggest-attribute=pure… yes > > checking whether C compiler handles -Wno-suggest-attribute=const... yes > > checking for how to force completely read-only GOT table… > > checking for how to avoid indirect lib deps... -Wl,--no-copy-dt-needed-entries > > checking for how to stop undefined symbols at link time… > > checking sys/acl.h usability... no > > checking sys/acl.h presence… no > > checking for sys/acl.h… no > > checking for aa_change_profile in -lapparmor… no > > checking for pthread_mutexattr_init… no > > checking for pthread.h... (cached) no > > configure: error: A pthreads impl is required for building libvirt > ...As the error message says, you need to have a pthreads impl to build libvirt. This is not a standard part of Windows, but is provided by the mingw64 cross compiler toolchain. I'm unclear if its possible to get this into msys or not/ 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 :|
Daniel P. Berrangé
2019-Aug-20 16:03 UTC
Re: [libvirt-users] Compiling Libvirt on Windows for Hyper V support
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 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 16:29 UTC
Re: [libvirt-users] Compiling Libvirt on Windows for Hyper V support
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 > > > 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> :|
Apparently Analagous Threads
- Re: Compiling Libvirt on Windows for Hyper V support
- Re: Compiling Libvirt on Windows for Hyper V support
- Re: Compiling Libvirt on Windows for Hyper V support
- Re: Compiling Libvirt on Windows for Hyper V support
- Re: Compiling Libvirt on Windows for Hyper V support