Building GHC under Wine?

Hi, I feel sorry for Simon always repeatedly stuck with an unbuildable tree, and an idea crossed my mind: Can we build¹ GHC under Wine? If so, is it likely to catch the kind of problems that Simon is getting? If so, maybe it runs fast enough to be also tested by travis on every commit? (This mail is to find out if people have tried it before. If not, I’ll give it a quick shot.) Greetings, Joachim ¹ we surely can use it: http://www.haskell.org/haskellwiki/GHC_under_Wine -- Joachim “nomeata” Breitner mail@joachim-breitner.de • http://www.joachim-breitner.de/ Jabber: nomeata@joachim-breitner.de • GPG-Key: 0xF0FBF51F Debian Developer: nomeata@debian.org

I might be misremembering, but I believe someone (Ross Paterson?) used to do this a while ago. I can't think of any good reasons it *shouldn't* work. Cheers, Simon On 15/07/2014 23:55, Joachim Breitner wrote:
Hi,
I feel sorry for Simon always repeatedly stuck with an unbuildable tree, and an idea crossed my mind: Can we build¹ GHC under Wine? If so, is it likely to catch the kind of problems that Simon is getting? If so, maybe it runs fast enough to be also tested by travis on every commit?
(This mail is to find out if people have tried it before. If not, I’ll give it a quick shot.)
Greetings, Joachim
¹ we surely can use it: http://www.haskell.org/haskellwiki/GHC_under_Wine
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs

Hi, Am Freitag, den 18.07.2014, 08:38 +0100 schrieb Simon Marlow:
I might be misremembering, but I believe someone (Ross Paterson?) used to do this a while ago.
I can't think of any good reasons it *shouldn't* work.
Then, next question: Is it likely to find windows building failures, are are the failures usually of the kind that would not occur in a not-quite-a-real-windows environment? Greetings, Joachim -- Joachim “nomeata” Breitner mail@joachim-breitner.de • http://www.joachim-breitner.de/ Jabber: nomeata@joachim-breitner.de • GPG-Key: 0xF0FBF51F Debian Developer: nomeata@debian.org

On 18/07/2014 08:59, Joachim Breitner wrote:
Hi,
Am Freitag, den 18.07.2014, 08:38 +0100 schrieb Simon Marlow:
I might be misremembering, but I believe someone (Ross Paterson?) used to do this a while ago.
I can't think of any good reasons it *shouldn't* work.
Then, next question: Is it likely to find windows building failures, are are the failures usually of the kind that would not occur in a not-quite-a-real-windows environment?
As far as I know, yes it should look like a real Windows environment. However, now that I think about it, I suspect what I'm remembering is that someone used GHC under Wine to develop something else, rather than building GHC itself. Building GHC might be rather more difficult. Cheers, Simon

On 07/16/2014 12:55 AM, Joachim Breitner wrote:
Hi,
I feel sorry for Simon always repeatedly stuck with an unbuildable tree, and an idea crossed my mind: Can we build¹ GHC under Wine? If so, is it likely to catch the kind of problems that Simon is getting? If so, maybe it runs fast enough to be also tested by travis on every commit?
(This mail is to find out if people have tried it before. If not, I’ll give it a quick shot.)
Greetings, Joachim
¹ we surely can use it: http://www.haskell.org/haskellwiki/GHC_under_Wine
Perhaps this is a bit off-tangent but few months ago there were some commits landing to the nix package manager which allow you to run tests in a Windows VM. It was created to run tests for things like cross-compiled packages but it probably could be adapted. If you don't mind actually installing Windows (in a VM) and have nix already/plan on using it then that might be a more preferable workflow: create a nix expression that builds a validates GHC in the VM and spits out the result. It's just something I thought I should mention in case anyone was interested. -- Mateusz K.

Microsoft has free VMs for testing purposes. It expires after 90 days and
the only relevant limitation that i see is that it's not licensed for a
"live operating environment".
That might or might not exclude Travis, but scripting a test that
developers can run personally should be allowed.
https://www.modern.ie/en-us/virtualization-tools
Alexander
On Aug 8, 2014 5:14 AM, "Mateusz Kowalczyk"
On 07/16/2014 12:55 AM, Joachim Breitner wrote:
Hi,
I feel sorry for Simon always repeatedly stuck with an unbuildable tree, and an idea crossed my mind: Can we build¹ GHC under Wine? If so, is it likely to catch the kind of problems that Simon is getting? If so, maybe it runs fast enough to be also tested by travis on every commit?
(This mail is to find out if people have tried it before. If not, I’ll give it a quick shot.)
Greetings, Joachim
¹ we surely can use it: http://www.haskell.org/haskellwiki/GHC_under_Wine
Perhaps this is a bit off-tangent but few months ago there were some commits landing to the nix package manager which allow you to run tests in a Windows VM. It was created to run tests for things like cross-compiled packages but it probably could be adapted.
If you don't mind actually installing Windows (in a VM) and have nix already/plan on using it then that might be a more preferable workflow: create a nix expression that builds a validates GHC in the VM and spits out the result.
It's just something I thought I should mention in case anyone was interested.
-- Mateusz K. _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs

On 08/08/2014 07:21 AM, Alexander Kjeldaas wrote:
Microsoft has free VMs for testing purposes. It expires after 90 days and the only relevant limitation that i see is that it's not licensed for a "live operating environment".
That might or might not exclude Travis, but scripting a test that developers can run personally should be allowed.
https://www.modern.ie/en-us/virtualization-tools
Alexander
This seems to be a VM dedicated for running Internet Explorer, is it actually a fully-featured environment? The site doesn't show much info.
On Aug 8, 2014 5:14 AM, "Mateusz Kowalczyk"
wrote: On 07/16/2014 12:55 AM, Joachim Breitner wrote:
Hi,
I feel sorry for Simon always repeatedly stuck with an unbuildable tree, and an idea crossed my mind: Can we build¹ GHC under Wine? If so, is it likely to catch the kind of problems that Simon is getting? If so, maybe it runs fast enough to be also tested by travis on every commit?
(This mail is to find out if people have tried it before. If not, I’ll give it a quick shot.)
Greetings, Joachim
¹ we surely can use it: http://www.haskell.org/haskellwiki/GHC_under_Wine
Perhaps this is a bit off-tangent but few months ago there were some commits landing to the nix package manager which allow you to run tests in a Windows VM. It was created to run tests for things like cross-compiled packages but it probably could be adapted.
If you don't mind actually installing Windows (in a VM) and have nix already/plan on using it then that might be a more preferable workflow: create a nix expression that builds a validates GHC in the VM and spits out the result.
It's just something I thought I should mention in case anyone was interested.
-- Mateusz K. _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
-- Mateusz K.

Yes it's a regular Windows installation, it just comes with an "IEUser"
account preinstalled. I've been using it to test GHCJS on Windows (but not
for automatic builds yet, just manual test runs).
luite
On Fri, Aug 8, 2014 at 7:27 AM, Mateusz Kowalczyk
On 08/08/2014 07:21 AM, Alexander Kjeldaas wrote:
Microsoft has free VMs for testing purposes. It expires after 90 days and the only relevant limitation that i see is that it's not licensed for a "live operating environment".
That might or might not exclude Travis, but scripting a test that developers can run personally should be allowed.
https://www.modern.ie/en-us/virtualization-tools
Alexander
This seems to be a VM dedicated for running Internet Explorer, is it actually a fully-featured environment? The site doesn't show much info.
On Aug 8, 2014 5:14 AM, "Mateusz Kowalczyk"
wrote: Hi,
I feel sorry for Simon always repeatedly stuck with an unbuildable
On 07/16/2014 12:55 AM, Joachim Breitner wrote: tree,
and an idea crossed my mind: Can we build¹ GHC under Wine? If so, is it likely to catch the kind of problems that Simon is getting? If so, maybe it runs fast enough to be also tested by travis on every commit?
(This mail is to find out if people have tried it before. If not, I’ll give it a quick shot.)
Greetings, Joachim
¹ we surely can use it: http://www.haskell.org/haskellwiki/GHC_under_Wine
Perhaps this is a bit off-tangent but few months ago there were some commits landing to the nix package manager which allow you to run tests in a Windows VM. It was created to run tests for things like cross-compiled packages but it probably could be adapted.
If you don't mind actually installing Windows (in a VM) and have nix already/plan on using it then that might be a more preferable workflow: create a nix expression that builds a validates GHC in the VM and spits out the result.
It's just something I thought I should mention in case anyone was interested.
-- Mateusz K. _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
-- Mateusz K. _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs

On Aug 8, 2014 7:27 AM, "Mateusz Kowalczyk"
On 08/08/2014 07:21 AM, Alexander Kjeldaas wrote:
Microsoft has free VMs for testing purposes. It expires after 90 days
and
the only relevant limitation that i see is that it's not licensed for a "live operating environment".
That might or might not exclude Travis, but scripting a test that developers can run personally should be allowed.
https://www.modern.ie/en-us/virtualization-tools
Alexander
This seems to be a VM dedicated for running Internet Explorer, is it actually a fully-featured environment? The site doesn't show much info.
I don't know as I haven't used it. However, developing for any browser these days can include native code, GPGPU etc, so I don't expect it to be severely crippled. Alexander
On Aug 8, 2014 5:14 AM, "Mateusz Kowalczyk"
On 07/16/2014 12:55 AM, Joachim Breitner wrote:
Hi,
I feel sorry for Simon always repeatedly stuck with an unbuildable
wrote: tree,
and an idea crossed my mind: Can we build¹ GHC under Wine? If so, is it likely to catch the kind of problems that Simon is getting? If so, maybe it runs fast enough to be also tested by travis on every commit?
(This mail is to find out if people have tried it before. If not, I’ll give it a quick shot.)
Greetings, Joachim
¹ we surely can use it: http://www.haskell.org/haskellwiki/GHC_under_Wine
Perhaps this is a bit off-tangent but few months ago there were some commits landing to the nix package manager which allow you to run tests in a Windows VM. It was created to run tests for things like cross-compiled packages but it probably could be adapted.
If you don't mind actually installing Windows (in a VM) and have nix already/plan on using it then that might be a more preferable workflow: create a nix expression that builds a validates GHC in the VM and spits out the result.
It's just something I thought I should mention in case anyone was interested.
-- Mateusz K. _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
-- Mateusz K. _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
participants (5)
-
Alexander Kjeldaas
-
Joachim Breitner
-
Luite Stegeman
-
Mateusz Kowalczyk
-
Simon Marlow