Re: [Libvir] Cross-compiling to Windows

2008-04-17 Thread Richard W.M. Jones
On Thu, Apr 17, 2008 at 10:44:13AM +0900, Atsushi SAKAI wrote:
 It seems good idea!
 But I have a question.
 Is the testing script merged with Linux one by using Wine?

I don't know in detail how it would work.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [Libvir] Cross-compiling to Windows

2008-04-17 Thread Daniel Veillard
On Wed, Apr 16, 2008 at 11:24:10PM +0100, Richard W.M. Jones wrote:
 
 I was reading this rather timely blog posting about the Trouble With
 Windows:
 
 http://www.mega-nerd.com/erikd/Blog/CodeHacking/MinGWCross/cross_compiling.html
 
 He mentions that he's managed to set up an entire cross-compiler
 environment to do the compiles (actually, it's a package in Debian
 called mingw32 -- we don't have it in Fedora), and he's set up Wine so
 he can run tests too.
 
 Good idea for libvirt too?

  Well, depends what they are after. My experience with libxml2 and libxslt
is that there is a number of Windows, a number of compilers on/for Windows
and that usually compatibility is maintained only by compiling all elements
of the stack with the same compiler and the same flags ([EMAIL PROTECTED] list
has a long history of horror stories like crashes because libxml2 had a 
different /Mx compilation flag than other element of the application stack).
  If you want to distribute a binary like virsh that may be fine. For the
library reuse it's a whole different story, you will need libxml2 compiled
- probably with the same compiler - and other elements too. Libxml2 default
Win32 binary is buit with Microsoft compiler (well one of them) using the
most standard options, still people frequently need to recompile it.
  I guess the best is to ship as part of the distro the information about
how to rebuild the library with various compilers as the information is
avaible. Building binaries which would work on Win32 would be nice but
probably limited to virsh in practice, I would expect people linking with
libvirt on Windows to try to rebuild the application, but I may be wrong.
  Anything which can be added to help building on Windows is IMHO worth
keeping and adding to the documentation,

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard  | virtualization library  http://libvirt.org/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [Libvir] Cross-compiling to Windows

2008-04-17 Thread Richard W.M. Jones
On Thu, Apr 17, 2008 at 11:03:06AM -0400, Daniel Veillard wrote:
   Anything which can be added to help building on Windows is IMHO worth
 keeping and adding to the documentation,

I think where it could really help is by allowing us to test that the
Windows build still works.  At the moment, patches since January have
broken libvirt on Windows, and at the same time the Windows 2008
install I did last year has expired and I don't fancy downloading
another 3+GB to make it work again.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [Libvir] Cross-compiling to Windows

2008-04-17 Thread Daniel Veillard
On Wed, Apr 16, 2008 at 11:27:08PM +0100, Richard W.M. Jones wrote:
 On Wed, Apr 16, 2008 at 11:24:10PM +0100, Richard W.M. Jones wrote:
  He mentions that he's managed to set up an entire cross-compiler
  environment to do the compiles (actually, it's a package in Debian
  called mingw32 -- we don't have it in Fedora), and he's set up Wine so
  he can run tests too.
 
 Not tried them yet, but there are some Fedora packages of this cross
 compiler here:
 
   http://mirzam.it.vu.nl/mingw/

  Well I just tried but the packages don't rebuild on x86_64, it seems
they are not 64bits ready.
  But yes using the x-compile to check for portability regressions sounds
fine.

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard  | virtualization library  http://libvirt.org/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [Libvir] Cross-compiling to Windows

2008-04-17 Thread Richard W.M. Jones
On Thu, Apr 17, 2008 at 12:53:13PM -0400, Daniel Veillard wrote:
 On Wed, Apr 16, 2008 at 11:27:08PM +0100, Richard W.M. Jones wrote:
  On Wed, Apr 16, 2008 at 11:24:10PM +0100, Richard W.M. Jones wrote:
   He mentions that he's managed to set up an entire cross-compiler
   environment to do the compiles (actually, it's a package in Debian
   called mingw32 -- we don't have it in Fedora), and he's set up Wine so
   he can run tests too.
  
  Not tried them yet, but there are some Fedora packages of this cross
  compiler here:
  
http://mirzam.it.vu.nl/mingw/
 
   Well I just tried but the packages don't rebuild on x86_64, it seems
 they are not 64bits ready.
   But yes using the x-compile to check for portability regressions sounds
 fine.

Are you sure?  I built them fine over here (AMD x86-64).

I'm about half way through building libvirt using them.  Just working
my way through a maze of GnuTLS dependencies/problems.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [Libvir] Cross-compiling to Windows

2008-04-17 Thread Daniel Veillard
On Thu, Apr 17, 2008 at 05:55:36PM +0100, Richard W.M. Jones wrote:
 On Thu, Apr 17, 2008 at 12:53:13PM -0400, Daniel Veillard wrote:
  On Wed, Apr 16, 2008 at 11:27:08PM +0100, Richard W.M. Jones wrote:
   On Wed, Apr 16, 2008 at 11:24:10PM +0100, Richard W.M. Jones wrote:
He mentions that he's managed to set up an entire cross-compiler
environment to do the compiles (actually, it's a package in Debian
called mingw32 -- we don't have it in Fedora), and he's set up Wine so
he can run tests too.
   
   Not tried them yet, but there are some Fedora packages of this cross
   compiler here:
   
 http://mirzam.it.vu.nl/mingw/
  
Well I just tried but the packages don't rebuild on x86_64, it seems
  they are not 64bits ready.
But yes using the x-compile to check for portability regressions sounds
  fine.
 
 Are you sure?  I built them fine over here (AMD x86-64).

  while rebuilding the binutils ...

+ rm -f /var/tmp/mingw-binutils-root/usr/local/info/dir
+ cd ..
+ rm /var/tmp/mingw-binutils-root/usr/local/lib/libiberty.a
rm: cannot remove `/var/tmp/mingw-binutils-root/usr/local/lib/libiberty.a': No 
such file or directory

paphio:~ - ls /var/tmp/mingw-binutils-root/usr/local/
bin/  info/ lib64/
i386-mingw32/ lib/  man/  
paphio:~ - ls /var/tmp/mingw-binutils-root/usr/local/lib
lib/   lib64/ 
paphio:~ - ls /var/tmp/mingw-binutils-root/usr/local/lib64/libiberty.a 
paphio:~ - 


 I'm about half way through building libvirt using them.  Just working
 my way through a maze of GnuTLS dependencies/problems.

  ah, okay, good luck :-)
Feel free to upload stuff on ftp://libvirt.org/libvirt/win32 ... if needed
add a mingw subdir and put rpms or tarballs there.

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard  | virtualization library  http://libvirt.org/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [Libvir] Cross-compiling to Windows

2008-04-17 Thread Daniel Veillard
On Thu, Apr 17, 2008 at 08:20:58PM +0100, Richard W.M. Jones wrote:
 On Thu, Apr 17, 2008 at 02:50:26PM -0400, Daniel Veillard wrote:
  + rm /var/tmp/mingw-binutils-root/usr/local/lib/libiberty.a
  rm: cannot remove `/var/tmp/mingw-binutils-root/usr/local/lib/libiberty.a': 
  No such file or directory
 
 Ah yes, I had to comment out that line in the specfile.
 
 Not sure what the chances are of getting all of this into Fedora.  As
 you have probably seen there is a circular dependency in the SRPMs
 making them impossible to build without starting with a binary build
 environment.

  yeah, but gcc too has a circular dep in Fedora, you need to compile
the compiler at some point ! I guess an exception can be argued,
Anyway even if outside of fedora we can still use it !

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard  | virtualization library  http://libvirt.org/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


[Libvir] Cross-compiling to Windows

2008-04-16 Thread Richard W.M. Jones

I was reading this rather timely blog posting about the Trouble With
Windows:

http://www.mega-nerd.com/erikd/Blog/CodeHacking/MinGWCross/cross_compiling.html

He mentions that he's managed to set up an entire cross-compiler
environment to do the compiles (actually, it's a package in Debian
called mingw32 -- we don't have it in Fedora), and he's set up Wine so
he can run tests too.

Good idea for libvirt too?

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [Libvir] Cross-compiling to Windows

2008-04-16 Thread Richard W.M. Jones
On Wed, Apr 16, 2008 at 11:24:10PM +0100, Richard W.M. Jones wrote:
 He mentions that he's managed to set up an entire cross-compiler
 environment to do the compiles (actually, it's a package in Debian
 called mingw32 -- we don't have it in Fedora), and he's set up Wine so
 he can run tests too.

Not tried them yet, but there are some Fedora packages of this cross
compiler here:

  http://mirzam.it.vu.nl/mingw/

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [Libvir] Cross-compiling to Windows

2008-04-16 Thread Atsushi SAKAI
Hi, Rich

It seems good idea!
But I have a question.
Is the testing script merged with Linux one by using Wine?

Thanks
Atsushi SAKAI


Richard W.M. Jones [EMAIL PROTECTED] wrote:

 he's set up Wine so
 he can run tests too.
 
 Good idea for libvirt too?


--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list