Bug in GHC or cabal-install?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug in GHC or cabal-install?

Henk-Jan van Tuyl

L.S.,

I am trying the prerelease of GHC, version 8.2.0.20170507

I adapted wxHaskell to the new packages that come with the new GHC and it
compiles now, but only the first time. If I compile it a second time, even
if nothing has changed, the information from the custom-setup section of
the wxc.cabal file seems to be forgotten. This section looks like this:

custom-setup
   setup-depends:
     base,
     Cabal < 2,
     containers,
     bytestring,
     split,
     process,
     directory,
     filepath
(I am using cabal-install 1.24.0.2)

Output from the second time I try to install wxHaskell:

> cabal install --force-reinstalls --reinstall wxdirect wxc wxcore wx
[1 of 1] Compiling Main             (
X:\Temp\wxHaskell\wxcore\dist\setup\setup.hs,
X:\Temp\wxHaskell\wxcore\dist\setup\Main.o )
Linking X:\Temp\wxHaskell\wxcore\dist\setup\setup.exe ...
[1 of 1] Compiling Main             (
X:\Temp\wxHaskell\wxc\dist\setup\setup.hs,
X:\Temp\wxHaskell\wxc\dist\setup\Main.o )

X:\Temp\wxHaskell\wxc\dist\setup\setup.hs:505:61: error:
                       Variable not in scope: versionBranch :: Version ->
[a0]
                       |
505 |           full_ver = (concat . intersperse "." . map show .
versionBranch) ver
                       |
^^^^^^^^^^^^^

This error message indicates that the wrong version of Cabal (2.0) is used
to compile the wxcore setup.hs
It looks like a cabal-install bug, but this does not happen when I
use GHC 8.0.2; should I write a GHC bug ticket?

Regards,
Henk-Jan van Tuyl


--
Folding@home
What if you could share your unused computer power to help find a cure? In
just 5 minutes you can join the world's biggest networked computer and get
us closer sooner. Watch the video.
http://foldingathome.stanford.edu/


http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Bug in GHC or cabal-install?

Ivan Lazar Miljenovic
This is from a limitation/bug with Cabal-the-library, in that there
are typically no dependency checks for custom Setup.[l]hs
configurations.

wxc has such a custom one:
http://hackage.haskell.org/package/wxc-0.92.3.0/src/Setup.hs

versionBranch is from Data.Version in base, and it appears that the in
this GHC pre-release there's been a change in base that removed this
function.

On 4 June 2017 at 19:45, Henk-Jan van Tuyl <[hidden email]> wrote:

>
> L.S.,
>
> I am trying the prerelease of GHC, version 8.2.0.20170507
>
> I adapted wxHaskell to the new packages that come with the new GHC and it
> compiles now, but only the first time. If I compile it a second time, even
> if nothing has changed, the information from the custom-setup section of
> the wxc.cabal file seems to be forgotten. This section looks like this:
>
> custom-setup
>   setup-depends:
>     base,
>     Cabal < 2,
>     containers,
>     bytestring,
>     split,
>     process,
>     directory,
>     filepath
> (I am using cabal-install 1.24.0.2)
>
> Output from the second time I try to install wxHaskell:
>
>> cabal install --force-reinstalls --reinstall wxdirect wxc wxcore wx
>
> [1 of 1] Compiling Main             (
> X:\Temp\wxHaskell\wxcore\dist\setup\setup.hs,
> X:\Temp\wxHaskell\wxcore\dist\setup\Main.o )
> Linking X:\Temp\wxHaskell\wxcore\dist\setup\setup.exe ...
> [1 of 1] Compiling Main             (
> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs,
> X:\Temp\wxHaskell\wxc\dist\setup\Main.o )
>
> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs:505:61: error:
>                       Variable not in scope: versionBranch :: Version ->
> [a0]
>                       |
> 505 |           full_ver = (concat . intersperse "." . map show .
> versionBranch) ver
>                       |
> ^^^^^^^^^^^^^
>
> This error message indicates that the wrong version of Cabal (2.0) is used
> to compile the wxcore setup.hs
> It looks like a cabal-install bug, but this does not happen when I
> use GHC 8.0.2; should I write a GHC bug ticket?
>
> Regards,
> Henk-Jan van Tuyl
>
>
> --
> Folding@home
> What if you could share your unused computer power to help find a cure? In
> just 5 minutes you can join the world's biggest networked computer and get
> us closer sooner. Watch the video.
> http://foldingathome.stanford.edu/
>
>
> http://Van.Tuyl.eu/
> http://members.chello.nl/hjgtuyl/tourdemonad.html
> Haskell programming
> --
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.



--
Ivan Lazar Miljenovic
[hidden email]
http://IvanMiljenovic.wordpress.com
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Bug in GHC or cabal-install?

Ivan Lazar Miljenovic
I don't think it's a problem with Cabal, but the version of base going
by the error: versionBranch is from base, and that error message is
talking about compiling the setup.hs from wxc.

On 5 June 2017 at 12:03, Henk-Jan van Tuyl <[hidden email]> wrote:

>
> The strange thing is, that the right version of Cabal is picked, the first
> time wxc is compiled. But when invoking cabal-install the second time, the
> setup-depends section seems to be ignored (or at least the Cabal < 2 part).
> This does not happen with GHC 8.0.2
>
> (By the way, cabal-install tries to compile setup.hs again, even though
> nothing has changed.)
>
> Regards,
> Henk-Jan van Tuyl
>
>
>
> On Sun, 04 Jun 2017 13:39:17 +0200, Ivan Lazar Miljenovic
> <[hidden email]> wrote:
>
>> This is from a limitation/bug with Cabal-the-library, in that there
>> are typically no dependency checks for custom Setup.[l]hs
>> configurations.
>>
>> wxc has such a custom one:
>> http://hackage.haskell.org/package/wxc-0.92.3.0/src/Setup.hs
>>
>> versionBranch is from Data.Version in base, and it appears that the in
>> this GHC pre-release there's been a change in base that removed this
>> function.
>>
>> On 4 June 2017 at 19:45, Henk-Jan van Tuyl <[hidden email]> wrote:
>>>
>>>
>>> L.S.,
>>>
>>> I am trying the prerelease of GHC, version 8.2.0.20170507
>>>
>>> I adapted wxHaskell to the new packages that come with the new GHC and it
>>> compiles now, but only the first time. If I compile it a second time,
>>> even
>>> if nothing has changed, the information from the custom-setup section of
>>> the wxc.cabal file seems to be forgotten. This section looks like this:
>>>
>>> custom-setup
>>>   setup-depends:
>>>     base,
>>>     Cabal < 2,
>>>     containers,
>>>     bytestring,
>>>     split,
>>>     process,
>>>     directory,
>>>     filepath
>>> (I am using cabal-install 1.24.0.2)
>>>
>>> Output from the second time I try to install wxHaskell:
>>>
>>>> cabal install --force-reinstalls --reinstall wxdirect wxc wxcore wx
>>>
>>>
>>> [1 of 1] Compiling Main             (
>>> X:\Temp\wxHaskell\wxcore\dist\setup\setup.hs,
>>> X:\Temp\wxHaskell\wxcore\dist\setup\Main.o )
>>> Linking X:\Temp\wxHaskell\wxcore\dist\setup\setup.exe ...
>>> [1 of 1] Compiling Main             (
>>> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs,
>>> X:\Temp\wxHaskell\wxc\dist\setup\Main.o )
>>>
>>> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs:505:61: error:
>>>                       Variable not in scope: versionBranch :: Version ->
>>> [a0]
>>>                       |
>>> 505 |           full_ver = (concat . intersperse "." . map show .
>>> versionBranch) ver
>>>                       |
>>> ^^^^^^^^^^^^^
>>>
>>> This error message indicates that the wrong version of Cabal (2.0) is
>>> used
>>> to compile the wxcore setup.hs
>>> It looks like a cabal-install bug, but this does not happen when I
>>> use GHC 8.0.2; should I write a GHC bug ticket?
>>>
>>> Regards,
>>> Henk-Jan van Tuyl
>
>
>
> --
> Folding@home
> What if you could share your unused computer power to help find a cure? In
> just 5 minutes you can join the world's biggest networked computer and get
> us closer sooner. Watch the video.
> http://foldingathome.stanford.edu/
>
>
> http://Van.Tuyl.eu/
> http://members.chello.nl/hjgtuyl/tourdemonad.html
> Haskell programming
> --



--
Ivan Lazar Miljenovic
[hidden email]
http://IvanMiljenovic.wordpress.com
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Bug in GHC or cabal-install?

Ivan Lazar Miljenovic
On 6 June 2017 at 07:55, Henk-Jan van Tuyl <[hidden email]> wrote:

>
> wxc/setup.hs uses versionBranch from Cabal[0]; the function versionBranch is
> not in Cabal 2, that is why I added "Cabal < 2" to wxc.cabal. When
> installing wxc the first time, the right version of Cabal is picked, when
> "cabal install" is invoked a second time, GHC tries to compile wxc/setup.hs
> again, but with the wrong version of Cabal (note: the release candidate of
> GHC comes with Cabal 2)
>
> [0]
> https://hackage.haskell.org/package/Cabal-1.24.2.0/docs/Distribution-Make.html#v:versionBranch

If you look at the source for this module, you'll see that it isn't
defined in there; it's actually from Data.Version in base.

>
>
>
> On Mon, 05 Jun 2017 04:58:05 +0200, Ivan Lazar Miljenovic
> <[hidden email]> wrote:
>
>> I don't think it's a problem with Cabal, but the version of base going
>> by the error: versionBranch is from base, and that error message is
>> talking about compiling the setup.hs from wxc.
>>
>> On 5 June 2017 at 12:03, Henk-Jan van Tuyl <[hidden email]> wrote:
>>>
>>>
>>> The strange thing is, that the right version of Cabal is picked, the
>>> first
>>> time wxc is compiled. But when invoking cabal-install the second time,
>>> the
>>> setup-depends section seems to be ignored (or at least the Cabal < 2
>>> part).
>>> This does not happen with GHC 8.0.2
>>>
>>> (By the way, cabal-install tries to compile setup.hs again, even though
>>> nothing has changed.)
>>>
>>> Regards,
>>> Henk-Jan van Tuyl
>>>
>>>
>>>
>>> On Sun, 04 Jun 2017 13:39:17 +0200, Ivan Lazar Miljenovic
>>> <[hidden email]> wrote:
>>>
>>>> This is from a limitation/bug with Cabal-the-library, in that there
>>>> are typically no dependency checks for custom Setup.[l]hs
>>>> configurations.
>>>>
>>>> wxc has such a custom one:
>>>> http://hackage.haskell.org/package/wxc-0.92.3.0/src/Setup.hs
>>>>
>>>> versionBranch is from Data.Version in base, and it appears that the in
>>>> this GHC pre-release there's been a change in base that removed this
>>>> function.
>>>>
>>>> On 4 June 2017 at 19:45, Henk-Jan van Tuyl <[hidden email]> wrote:
>>>>>
>>>>>
>>>>>
>>>>> L.S.,
>>>>>
>>>>> I am trying the prerelease of GHC, version 8.2.0.20170507
>>>>>
>>>>> I adapted wxHaskell to the new packages that come with the new GHC and
>>>>> it
>>>>> compiles now, but only the first time. If I compile it a second time,
>>>>> even
>>>>> if nothing has changed, the information from the custom-setup section
>>>>> of
>>>>> the wxc.cabal file seems to be forgotten. This section looks like this:
>>>>>
>>>>> custom-setup
>>>>>   setup-depends:
>>>>>     base,
>>>>>     Cabal < 2,
>>>>>     containers,
>>>>>     bytestring,
>>>>>     split,
>>>>>     process,
>>>>>     directory,
>>>>>     filepath
>>>>> (I am using cabal-install 1.24.0.2)
>>>>>
>>>>> Output from the second time I try to install wxHaskell:
>>>>>
>>>>>> cabal install --force-reinstalls --reinstall wxdirect wxc wxcore wx
>>>>>
>>>>>
>>>>>
>>>>> [1 of 1] Compiling Main             (
>>>>> X:\Temp\wxHaskell\wxcore\dist\setup\setup.hs,
>>>>> X:\Temp\wxHaskell\wxcore\dist\setup\Main.o )
>>>>> Linking X:\Temp\wxHaskell\wxcore\dist\setup\setup.exe ...
>>>>> [1 of 1] Compiling Main             (
>>>>> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs,
>>>>> X:\Temp\wxHaskell\wxc\dist\setup\Main.o )
>>>>>
>>>>> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs:505:61: error:
>>>>>                       Variable not in scope: versionBranch :: Version
>>>>> ->
>>>>> [a0]
>>>>>                       |
>>>>> 505 |           full_ver = (concat . intersperse "." . map show .
>>>>> versionBranch) ver
>>>>>                       |
>>>>> ^^^^^^^^^^^^^
>>>>>
>>>>> This error message indicates that the wrong version of Cabal (2.0) is
>>>>> used
>>>>> to compile the wxcore setup.hs
>>>>> It looks like a cabal-install bug, but this does not happen when I
>>>>> use GHC 8.0.2; should I write a GHC bug ticket?
>>>>>
>>>>> Regards,
>>>>> Henk-Jan van Tuyl
>
>
> --
> Folding@home
> What if you could share your unused computer power to help find a cure? In
> just 5 minutes you can join the world's biggest networked computer and get
> us closer sooner. Watch the video.
> http://foldingathome.stanford.edu/
>
>
> http://Van.Tuyl.eu/
> http://members.chello.nl/hjgtuyl/tourdemonad.html
> Haskell programming
> --



--
Ivan Lazar Miljenovic
[hidden email]
http://IvanMiljenovic.wordpress.com
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Bug in GHC or cabal-install?

Ivan Lazar Miljenovic
On 6 June 2017 at 08:33, Ivan Lazar Miljenovic
<[hidden email]> wrote:

> On 6 June 2017 at 07:55, Henk-Jan van Tuyl <[hidden email]> wrote:
>>
>> wxc/setup.hs uses versionBranch from Cabal[0]; the function versionBranch is
>> not in Cabal 2, that is why I added "Cabal < 2" to wxc.cabal. When
>> installing wxc the first time, the right version of Cabal is picked, when
>> "cabal install" is invoked a second time, GHC tries to compile wxc/setup.hs
>> again, but with the wrong version of Cabal (note: the release candidate of
>> GHC comes with Cabal 2)
>>
>> [0]
>> https://hackage.haskell.org/package/Cabal-1.24.2.0/docs/Distribution-Make.html#v:versionBranch
>
> If you look at the source for this module, you'll see that it isn't
> defined in there; it's actually from Data.Version in base.

You can see this more specifically here:
https://hackage.haskell.org/package/Cabal-1.24.2.0/docs/src/Distribution-Version.html

--
Ivan Lazar Miljenovic
[hidden email]
http://IvanMiljenovic.wordpress.com
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Bug in GHC or cabal-install?

Henk-Jan van Tuyl
In reply to this post by Ivan Lazar Miljenovic

You are right, versionBranch is from originally from base, but you are  
missing the point:
package wxc compiles perfectly the first time, but, without anything being  
changed, does not compile the second time. By the way, I am using a cabal  
sandbox and as I said earlier, I am using a GHC release candidate.

Regards,
Henk-Jan van Tuyl


On Tue, 06 Jun 2017 00:33:40 +0200, Ivan Lazar Miljenovic  
<[hidden email]> wrote:

> On 6 June 2017 at 07:55, Henk-Jan van Tuyl <[hidden email]> wrote:
>>
>> wxc/setup.hs uses versionBranch from Cabal[0]; the function  
>> versionBranch is
>> not in Cabal 2, that is why I added "Cabal < 2" to wxc.cabal. When
>> installing wxc the first time, the right version of Cabal is picked,  
>> when
>> "cabal install" is invoked a second time, GHC tries to compile  
>> wxc/setup.hs
>> again, but with the wrong version of Cabal (note: the release candidate  
>> of
>> GHC comes with Cabal 2)
>>
>> [0]
>> https://hackage.haskell.org/package/Cabal-1.24.2.0/docs/Distribution-Make.html#v:versionBranch
>
> If you look at the source for this module, you'll see that it isn't
> defined in there; it's actually from Data.Version in base.
>
>>
>>
>>
>> On Mon, 05 Jun 2017 04:58:05 +0200, Ivan Lazar Miljenovic
>> <[hidden email]> wrote:
>>
>>> I don't think it's a problem with Cabal, but the version of base going
>>> by the error: versionBranch is from base, and that error message is
>>> talking about compiling the setup.hs from wxc.
>>>
>>> On 5 June 2017 at 12:03, Henk-Jan van Tuyl <[hidden email]>  
>>> wrote:
>>>>
>>>>
>>>> The strange thing is, that the right version of Cabal is picked, the
>>>> first
>>>> time wxc is compiled. But when invoking cabal-install the second time,
>>>> the
>>>> setup-depends section seems to be ignored (or at least the Cabal < 2
>>>> part).
>>>> This does not happen with GHC 8.0.2
>>>>
>>>> (By the way, cabal-install tries to compile setup.hs again, even  
>>>> though
>>>> nothing has changed.)
>>>>
>>>> Regards,
>>>> Henk-Jan van Tuyl
>>>>
>>>>
>>>>
>>>> On Sun, 04 Jun 2017 13:39:17 +0200, Ivan Lazar Miljenovic
>>>> <[hidden email]> wrote:
>>>>
>>>>> This is from a limitation/bug with Cabal-the-library, in that there
>>>>> are typically no dependency checks for custom Setup.[l]hs
>>>>> configurations.
>>>>>
>>>>> wxc has such a custom one:
>>>>> http://hackage.haskell.org/package/wxc-0.92.3.0/src/Setup.hs
>>>>>
>>>>> versionBranch is from Data.Version in base, and it appears that the  
>>>>> in
>>>>> this GHC pre-release there's been a change in base that removed this
>>>>> function.
>>>>>
>>>>> On 4 June 2017 at 19:45, Henk-Jan van Tuyl <[hidden email]> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>> L.S.,
>>>>>>
>>>>>> I am trying the prerelease of GHC, version 8.2.0.20170507
>>>>>>
>>>>>> I adapted wxHaskell to the new packages that come with the new GHC  
>>>>>> and
>>>>>> it
>>>>>> compiles now, but only the first time. If I compile it a second  
>>>>>> time,
>>>>>> even
>>>>>> if nothing has changed, the information from the custom-setup  
>>>>>> section
>>>>>> of
>>>>>> the wxc.cabal file seems to be forgotten. This section looks like  
>>>>>> this:
>>>>>>
>>>>>> custom-setup
>>>>>>   setup-depends:
>>>>>>     base,
>>>>>>     Cabal < 2,
>>>>>>     containers,
>>>>>>     bytestring,
>>>>>>     split,
>>>>>>     process,
>>>>>>     directory,
>>>>>>     filepath
>>>>>> (I am using cabal-install 1.24.0.2)
>>>>>>
>>>>>> Output from the second time I try to install wxHaskell:
>>>>>>
>>>>>>> cabal install --force-reinstalls --reinstall wxdirect wxc wxcore wx
>>>>>>
>>>>>>
>>>>>>
>>>>>> [1 of 1] Compiling Main             (
>>>>>> X:\Temp\wxHaskell\wxcore\dist\setup\setup.hs,
>>>>>> X:\Temp\wxHaskell\wxcore\dist\setup\Main.o )
>>>>>> Linking X:\Temp\wxHaskell\wxcore\dist\setup\setup.exe ...
>>>>>> [1 of 1] Compiling Main             (
>>>>>> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs,
>>>>>> X:\Temp\wxHaskell\wxc\dist\setup\Main.o )
>>>>>>
>>>>>> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs:505:61: error:
>>>>>>                       Variable not in scope: versionBranch ::  
>>>>>> Version
>>>>>> ->
>>>>>> [a0]
>>>>>>                       |
>>>>>> 505 |           full_ver = (concat . intersperse "." . map show .
>>>>>> versionBranch) ver
>>>>>>                       |
>>>>>> ^^^^^^^^^^^^^
>>>>>>
>>>>>> This error message indicates that the wrong version of Cabal (2.0)  
>>>>>> is
>>>>>> used
>>>>>> to compile the wxcore setup.hs
>>>>>> It looks like a cabal-install bug, but this does not happen when I
>>>>>> use GHC 8.0.2; should I write a GHC bug ticket?
>>>>>>
>>>>>> Regards,
>>>>>> Henk-Jan van Tuyl


--
Folding@home
What if you could share your unused computer power to help find a cure? In  
just 5 minutes you can join the world's biggest networked computer and get  
us closer sooner. Watch the video.
http://foldingathome.stanford.edu/


http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Bug in GHC or cabal-install?

Ivan Lazar Miljenovic
On 6 June 2017 at 21:13, Henk-Jan van Tuyl <[hidden email]> wrote:
>
> You are right, versionBranch is from originally from base, but you are
> missing the point:
> package wxc compiles perfectly the first time, but, without anything being
> changed, does not compile the second time. By the way, I am using a cabal
> sandbox and as I said earlier, I am using a GHC release candidate.

And in that release candidate, does the version of base have
versionBranch in it?

My guess is that a new version of Cabal is being used the second time,
which is compiled against the base that comes with that RC which is
missing versionBranch.

(But since I don't have any GHC RC's I can't check it myself.)

>
> Regards,
> Henk-Jan van Tuyl
>
>
>
> On Tue, 06 Jun 2017 00:33:40 +0200, Ivan Lazar Miljenovic
> <[hidden email]> wrote:
>
>> On 6 June 2017 at 07:55, Henk-Jan van Tuyl <[hidden email]> wrote:
>>>
>>>
>>> wxc/setup.hs uses versionBranch from Cabal[0]; the function versionBranch
>>> is
>>> not in Cabal 2, that is why I added "Cabal < 2" to wxc.cabal. When
>>> installing wxc the first time, the right version of Cabal is picked, when
>>> "cabal install" is invoked a second time, GHC tries to compile
>>> wxc/setup.hs
>>> again, but with the wrong version of Cabal (note: the release candidate
>>> of
>>> GHC comes with Cabal 2)
>>>
>>> [0]
>>>
>>> https://hackage.haskell.org/package/Cabal-1.24.2.0/docs/Distribution-Make.html#v:versionBranch
>>
>>
>> If you look at the source for this module, you'll see that it isn't
>> defined in there; it's actually from Data.Version in base.
>>
>>>
>>>
>>>
>>> On Mon, 05 Jun 2017 04:58:05 +0200, Ivan Lazar Miljenovic
>>> <[hidden email]> wrote:
>>>
>>>> I don't think it's a problem with Cabal, but the version of base going
>>>> by the error: versionBranch is from base, and that error message is
>>>> talking about compiling the setup.hs from wxc.
>>>>
>>>> On 5 June 2017 at 12:03, Henk-Jan van Tuyl <[hidden email]>
>>>> wrote:
>>>>>
>>>>>
>>>>>
>>>>> The strange thing is, that the right version of Cabal is picked, the
>>>>> first
>>>>> time wxc is compiled. But when invoking cabal-install the second time,
>>>>> the
>>>>> setup-depends section seems to be ignored (or at least the Cabal < 2
>>>>> part).
>>>>> This does not happen with GHC 8.0.2
>>>>>
>>>>> (By the way, cabal-install tries to compile setup.hs again, even though
>>>>> nothing has changed.)
>>>>>
>>>>> Regards,
>>>>> Henk-Jan van Tuyl
>>>>>
>>>>>
>>>>>
>>>>> On Sun, 04 Jun 2017 13:39:17 +0200, Ivan Lazar Miljenovic
>>>>> <[hidden email]> wrote:
>>>>>
>>>>>> This is from a limitation/bug with Cabal-the-library, in that there
>>>>>> are typically no dependency checks for custom Setup.[l]hs
>>>>>> configurations.
>>>>>>
>>>>>> wxc has such a custom one:
>>>>>> http://hackage.haskell.org/package/wxc-0.92.3.0/src/Setup.hs
>>>>>>
>>>>>> versionBranch is from Data.Version in base, and it appears that the in
>>>>>> this GHC pre-release there's been a change in base that removed this
>>>>>> function.
>>>>>>
>>>>>> On 4 June 2017 at 19:45, Henk-Jan van Tuyl <[hidden email]> wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> L.S.,
>>>>>>>
>>>>>>> I am trying the prerelease of GHC, version 8.2.0.20170507
>>>>>>>
>>>>>>> I adapted wxHaskell to the new packages that come with the new GHC
>>>>>>> and
>>>>>>> it
>>>>>>> compiles now, but only the first time. If I compile it a second time,
>>>>>>> even
>>>>>>> if nothing has changed, the information from the custom-setup section
>>>>>>> of
>>>>>>> the wxc.cabal file seems to be forgotten. This section looks like
>>>>>>> this:
>>>>>>>
>>>>>>> custom-setup
>>>>>>>   setup-depends:
>>>>>>>     base,
>>>>>>>     Cabal < 2,
>>>>>>>     containers,
>>>>>>>     bytestring,
>>>>>>>     split,
>>>>>>>     process,
>>>>>>>     directory,
>>>>>>>     filepath
>>>>>>> (I am using cabal-install 1.24.0.2)
>>>>>>>
>>>>>>> Output from the second time I try to install wxHaskell:
>>>>>>>
>>>>>>>> cabal install --force-reinstalls --reinstall wxdirect wxc wxcore wx
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> [1 of 1] Compiling Main             (
>>>>>>> X:\Temp\wxHaskell\wxcore\dist\setup\setup.hs,
>>>>>>> X:\Temp\wxHaskell\wxcore\dist\setup\Main.o )
>>>>>>> Linking X:\Temp\wxHaskell\wxcore\dist\setup\setup.exe ...
>>>>>>> [1 of 1] Compiling Main             (
>>>>>>> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs,
>>>>>>> X:\Temp\wxHaskell\wxc\dist\setup\Main.o )
>>>>>>>
>>>>>>> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs:505:61: error:
>>>>>>>                       Variable not in scope: versionBranch :: Version
>>>>>>> ->
>>>>>>> [a0]
>>>>>>>                       |
>>>>>>> 505 |           full_ver = (concat . intersperse "." . map show .
>>>>>>> versionBranch) ver
>>>>>>>                       |
>>>>>>> ^^^^^^^^^^^^^
>>>>>>>
>>>>>>> This error message indicates that the wrong version of Cabal (2.0) is
>>>>>>> used
>>>>>>> to compile the wxcore setup.hs
>>>>>>> It looks like a cabal-install bug, but this does not happen when I
>>>>>>> use GHC 8.0.2; should I write a GHC bug ticket?
>>>>>>>
>>>>>>> Regards,
>>>>>>> Henk-Jan van Tuyl
>
>
>
> --
> Folding@home
> What if you could share your unused computer power to help find a cure? In
> just 5 minutes you can join the world's biggest networked computer and get
> us closer sooner. Watch the video.
> http://foldingathome.stanford.edu/
>
>
> http://Van.Tuyl.eu/
> http://members.chello.nl/hjgtuyl/tourdemonad.html
> Haskell programming
> --



--
Ivan Lazar Miljenovic
[hidden email]
http://IvanMiljenovic.wordpress.com
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Bug in GHC or cabal-install?

Ivan Lazar Miljenovic
On 6 June 2017 at 23:27, Henk-Jan van Tuyl <[hidden email]> wrote:
>
> versionBranch is still in base, but it is not compatible with Cabal 2.

You mean it isn't re-exported by Cabal-2?

Then maybe wxc's Setup.hs needs to explicitly import Data.Version from
base rather than relying upon the re-export.

>
> Regards,
> Henk-Jan van Tuyl
>
>
>
>
> On Tue, 06 Jun 2017 14:32:45 +0200, Ivan Lazar Miljenovic
> <[hidden email]> wrote:
>
>> On 6 June 2017 at 21:13, Henk-Jan van Tuyl <[hidden email]> wrote:
>>>
>>>
>>> You are right, versionBranch is from originally from base, but you are
>>> missing the point:
>>> package wxc compiles perfectly the first time, but, without anything
>>> being
>>> changed, does not compile the second time. By the way, I am using a cabal
>>> sandbox and as I said earlier, I am using a GHC release candidate.
>>
>>
>> And in that release candidate, does the version of base have
>> versionBranch in it?
>>
>> My guess is that a new version of Cabal is being used the second time,
>> which is compiled against the base that comes with that RC which is
>> missing versionBranch.
>>
>> (But since I don't have any GHC RC's I can't check it myself.)
>>
>
>
>
>>>
>>> Regards,
>>> Henk-Jan van Tuyl
>>>
>>>
>>>
>>> On Tue, 06 Jun 2017 00:33:40 +0200, Ivan Lazar Miljenovic
>>> <[hidden email]> wrote:
>>>
>>>> On 6 June 2017 at 07:55, Henk-Jan van Tuyl <[hidden email]>
>>>> wrote:
>>>>>
>>>>>
>>>>>
>>>>> wxc/setup.hs uses versionBranch from Cabal[0]; the function
>>>>> versionBranch
>>>>> is
>>>>> not in Cabal 2, that is why I added "Cabal < 2" to wxc.cabal. When
>>>>> installing wxc the first time, the right version of Cabal is picked,
>>>>> when
>>>>> "cabal install" is invoked a second time, GHC tries to compile
>>>>> wxc/setup.hs
>>>>> again, but with the wrong version of Cabal (note: the release candidate
>>>>> of
>>>>> GHC comes with Cabal 2)
>>>>>
>>>>> [0]
>>>>>
>>>>>
>>>>> https://hackage.haskell.org/package/Cabal-1.24.2.0/docs/Distribution-Make.html#v:versionBranch
>>>>
>>>>
>>>>
>>>> If you look at the source for this module, you'll see that it isn't
>>>> defined in there; it's actually from Data.Version in base.
>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Mon, 05 Jun 2017 04:58:05 +0200, Ivan Lazar Miljenovic
>>>>> <[hidden email]> wrote:
>>>>>
>>>>>> I don't think it's a problem with Cabal, but the version of base going
>>>>>> by the error: versionBranch is from base, and that error message is
>>>>>> talking about compiling the setup.hs from wxc.
>>>>>>
>>>>>> On 5 June 2017 at 12:03, Henk-Jan van Tuyl <[hidden email]>
>>>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> The strange thing is, that the right version of Cabal is picked, the
>>>>>>> first
>>>>>>> time wxc is compiled. But when invoking cabal-install the second
>>>>>>> time,
>>>>>>> the
>>>>>>> setup-depends section seems to be ignored (or at least the Cabal < 2
>>>>>>> part).
>>>>>>> This does not happen with GHC 8.0.2
>>>>>>>
>>>>>>> (By the way, cabal-install tries to compile setup.hs again, even
>>>>>>> though
>>>>>>> nothing has changed.)
>>>>>>>
>>>>>>> Regards,
>>>>>>> Henk-Jan van Tuyl
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Sun, 04 Jun 2017 13:39:17 +0200, Ivan Lazar Miljenovic
>>>>>>> <[hidden email]> wrote:
>>>>>>>
>>>>>>>> This is from a limitation/bug with Cabal-the-library, in that there
>>>>>>>> are typically no dependency checks for custom Setup.[l]hs
>>>>>>>> configurations.
>>>>>>>>
>>>>>>>> wxc has such a custom one:
>>>>>>>> http://hackage.haskell.org/package/wxc-0.92.3.0/src/Setup.hs
>>>>>>>>
>>>>>>>> versionBranch is from Data.Version in base, and it appears that the
>>>>>>>> in
>>>>>>>> this GHC pre-release there's been a change in base that removed this
>>>>>>>> function.
>>>>>>>>
>>>>>>>> On 4 June 2017 at 19:45, Henk-Jan van Tuyl <[hidden email]>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> L.S.,
>>>>>>>>>
>>>>>>>>> I am trying the prerelease of GHC, version 8.2.0.20170507
>>>>>>>>>
>>>>>>>>> I adapted wxHaskell to the new packages that come with the new GHC
>>>>>>>>> and
>>>>>>>>> it
>>>>>>>>> compiles now, but only the first time. If I compile it a second
>>>>>>>>> time,
>>>>>>>>> even
>>>>>>>>> if nothing has changed, the information from the custom-setup
>>>>>>>>> section
>>>>>>>>> of
>>>>>>>>> the wxc.cabal file seems to be forgotten. This section looks like
>>>>>>>>> this:
>>>>>>>>>
>>>>>>>>> custom-setup
>>>>>>>>>   setup-depends:
>>>>>>>>>     base,
>>>>>>>>>     Cabal < 2,
>>>>>>>>>     containers,
>>>>>>>>>     bytestring,
>>>>>>>>>     split,
>>>>>>>>>     process,
>>>>>>>>>     directory,
>>>>>>>>>     filepath
>>>>>>>>> (I am using cabal-install 1.24.0.2)
>>>>>>>>>
>>>>>>>>> Output from the second time I try to install wxHaskell:
>>>>>>>>>
>>>>>>>>>> cabal install --force-reinstalls --reinstall wxdirect wxc wxcore
>>>>>>>>>> wx
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> [1 of 1] Compiling Main             (
>>>>>>>>> X:\Temp\wxHaskell\wxcore\dist\setup\setup.hs,
>>>>>>>>> X:\Temp\wxHaskell\wxcore\dist\setup\Main.o )
>>>>>>>>> Linking X:\Temp\wxHaskell\wxcore\dist\setup\setup.exe ...
>>>>>>>>> [1 of 1] Compiling Main             (
>>>>>>>>> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs,
>>>>>>>>> X:\Temp\wxHaskell\wxc\dist\setup\Main.o )
>>>>>>>>>
>>>>>>>>> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs:505:61: error:
>>>>>>>>>                       Variable not in scope: versionBranch ::
>>>>>>>>> Version
>>>>>>>>> ->
>>>>>>>>> [a0]
>>>>>>>>>                       |
>>>>>>>>> 505 |           full_ver = (concat . intersperse "." . map show .
>>>>>>>>> versionBranch) ver
>>>>>>>>>                       |
>>>>>>>>> ^^^^^^^^^^^^^
>>>>>>>>>
>>>>>>>>> This error message indicates that the wrong version of Cabal (2.0)
>>>>>>>>> is
>>>>>>>>> used
>>>>>>>>> to compile the wxcore setup.hs
>>>>>>>>> It looks like a cabal-install bug, but this does not happen when I
>>>>>>>>> use GHC 8.0.2; should I write a GHC bug ticket?
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> Henk-Jan van Tuyl
>
>
> --
> Folding@home
> What if you could share your unused computer power to help find a cure? In
> just 5 minutes you can join the world's biggest networked computer and get
> us closer sooner. Watch the video.
> http://foldingathome.stanford.edu/
>
>
> http://Van.Tuyl.eu/
> http://members.chello.nl/hjgtuyl/tourdemonad.html
> Haskell programming
> --



--
Ivan Lazar Miljenovic
[hidden email]
http://IvanMiljenovic.wordpress.com
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Bug in GHC or cabal-install?

Edward Z. Yang
In reply to this post by Henk-Jan van Tuyl
This sounds like a Cabal bug to me. A few things to try:

- Can you post a -v3 log of the second cabal install force
  reinstall somewhere?  It sounds like we are incorrectly
  attempting to use the wrong version of Cabal to build the
  Setup script, and a -v3 log would help confirm.

- Are you on Ubuntu?  If you could install and test a cabal-install-head
  binary from https://launchpad.net/~hvr/+archive/ubuntu/ghc
  that would be helpful to find out if we've fixed this bug
  already.

- If you want to file a bug, please do so in the Cabal
  bug tracker https://github.com/haskell/cabal/issues
  Thanks!

Cheers,
Edward

Excerpts from Henk-Jan van Tuyl's message of 2017-06-04 11:45:58 +0200:

>
> L.S.,
>
> I am trying the prerelease of GHC, version 8.2.0.20170507
>
> I adapted wxHaskell to the new packages that come with the new GHC and it
> compiles now, but only the first time. If I compile it a second time, even
> if nothing has changed, the information from the custom-setup section of
> the wxc.cabal file seems to be forgotten. This section looks like this:
>
> custom-setup
>    setup-depends:
>      base,
>      Cabal < 2,
>      containers,
>      bytestring,
>      split,
>      process,
>      directory,
>      filepath
> (I am using cabal-install 1.24.0.2)
>
> Output from the second time I try to install wxHaskell:
>
> > cabal install --force-reinstalls --reinstall wxdirect wxc wxcore wx
> [1 of 1] Compiling Main             (
> X:\Temp\wxHaskell\wxcore\dist\setup\setup.hs,
> X:\Temp\wxHaskell\wxcore\dist\setup\Main.o )
> Linking X:\Temp\wxHaskell\wxcore\dist\setup\setup.exe ...
> [1 of 1] Compiling Main             (
> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs,
> X:\Temp\wxHaskell\wxc\dist\setup\Main.o )
>
> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs:505:61: error:
>                        Variable not in scope: versionBranch :: Version ->
> [a0]
>                        |
> 505 |           full_ver = (concat . intersperse "." . map show .
> versionBranch) ver
>                        |
> ^^^^^^^^^^^^^
>
> This error message indicates that the wrong version of Cabal (2.0) is used
> to compile the wxcore setup.hs
> It looks like a cabal-install bug, but this does not happen when I
> use GHC 8.0.2; should I write a GHC bug ticket?
>
> Regards,
> Henk-Jan van Tuyl
>
>
> --
> Folding@home
> What if you could share your unused computer power to help find a cure? In
> just 5 minutes you can join the world's biggest networked computer and get
> us closer sooner. Watch the video.
> http://foldingathome.stanford.edu/
>
>
> http://Van.Tuyl.eu/
> http://members.chello.nl/hjgtuyl/tourdemonad.html
> Haskell programming
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Bug in GHC or cabal-install?

Henk-Jan van Tuyl

I have attached the -v3 log.

Regards,
Henk-Jan van Tuyl


On Wed, 07 Jun 2017 13:56:12 +0200, Edward Z. Yang <[hidden email]> wrote:

> This sounds like a Cabal bug to me. A few things to try:
>
> - Can you post a -v3 log of the second cabal install force
>   reinstall somewhere?  It sounds like we are incorrectly
>   attempting to use the wrong version of Cabal to build the
>   Setup script, and a -v3 log would help confirm.
>
> - Are you on Ubuntu?  If you could install and test a cabal-install-head
>   binary from https://launchpad.net/~hvr/+archive/ubuntu/ghc
>   that would be helpful to find out if we've fixed this bug
>   already.
>
> - If you want to file a bug, please do so in the Cabal
>   bug tracker https://github.com/haskell/cabal/issues
>   Thanks!
>
> Cheers,
> Edward
>
> Excerpts from Henk-Jan van Tuyl's message of 2017-06-04 11:45:58 +0200:
>>
>> L.S.,
>>
>> I am trying the prerelease of GHC, version 8.2.0.20170507
>>
>> I adapted wxHaskell to the new packages that come with the new GHC and  
>> it
>> compiles now, but only the first time. If I compile it a second time,  
>> even
>> if nothing has changed, the information from the custom-setup section of
>> the wxc.cabal file seems to be forgotten. This section looks like this:
>>
>> custom-setup
>>    setup-depends:
>>      base,
>>      Cabal < 2,
>>      containers,
>>      bytestring,
>>      split,
>>      process,
>>      directory,
>>      filepath
>> (I am using cabal-install 1.24.0.2)
>>
>> Output from the second time I try to install wxHaskell:
>>
>> > cabal install --force-reinstalls --reinstall wxdirect wxc wxcore wx
>> [1 of 1] Compiling Main             (
>> X:\Temp\wxHaskell\wxcore\dist\setup\setup.hs,
>> X:\Temp\wxHaskell\wxcore\dist\setup\Main.o )
>> Linking X:\Temp\wxHaskell\wxcore\dist\setup\setup.exe ...
>> [1 of 1] Compiling Main             (
>> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs,
>> X:\Temp\wxHaskell\wxc\dist\setup\Main.o )
>>
>> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs:505:61: error:
>>                        Variable not in scope: versionBranch :: Version  
>> ->
>> [a0]
>>                        |
>> 505 |           full_ver = (concat . intersperse "." . map show .
>> versionBranch) ver
>>                        |
>> ^^^^^^^^^^^^^
>>
>> This error message indicates that the wrong version of Cabal (2.0) is  
>> used
>> to compile the wxcore setup.hs
>> It looks like a cabal-install bug, but this does not happen when I
>> use GHC 8.0.2; should I write a GHC bug ticket?
>>
>> Regards,
>> Henk-Jan van Tuyl

--
Folding@home
What if you could share your unused computer power to help find a cure? In
just 5 minutes you can join the world's biggest networked computer and get
us closer sooner. Watch the video.
http://foldingathome.stanford.edu/


http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.

CabalInstall-v3.txt (23K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Bug in GHC or cabal-install?

Edward Z. Yang
Thanks Henk, I know what the problem is.  I've filed
a bug here.  https://github.com/haskell/cabal/issues/4561

In the meantime, you should try giving new-build a try.
I believe it does not suffer from this problem.
http://cabal.readthedocs.io/en/latest/nix-local-build-overview.html

Edward

Excerpts from Henk-Jan van Tuyl's message of 2017-06-09 22:52:47 +0200:

>
> I have attached the -v3 log.
>
> Regards,
> Henk-Jan van Tuyl
>
> On Wed, 07 Jun 2017 13:56:12 +0200, Edward Z. Yang <[hidden email]> wrote:
>
> > This sounds like a Cabal bug to me. A few things to try:
> >
> > - Can you post a -v3 log of the second cabal install force
> >   reinstall somewhere?  It sounds like we are incorrectly
> >   attempting to use the wrong version of Cabal to build the
> >   Setup script, and a -v3 log would help confirm.
> >
> > - Are you on Ubuntu?  If you could install and test a cabal-install-head
> >   binary from https://launchpad.net/~hvr/+archive/ubuntu/ghc
> >   that would be helpful to find out if we've fixed this bug
> >   already.
> >
> > - If you want to file a bug, please do so in the Cabal
> >   bug tracker https://github.com/haskell/cabal/issues
> >   Thanks!
> >
> > Cheers,
> > Edward
> >
> > Excerpts from Henk-Jan van Tuyl's message of 2017-06-04 11:45:58 +0200:
> >>
> >> L.S.,
> >>
> >> I am trying the prerelease of GHC, version 8.2.0.20170507
> >>
> >> I adapted wxHaskell to the new packages that come with the new GHC and  
> >> it
> >> compiles now, but only the first time. If I compile it a second time,  
> >> even
> >> if nothing has changed, the information from the custom-setup section of
> >> the wxc.cabal file seems to be forgotten. This section looks like this:
> >>
> >> custom-setup
> >>    setup-depends:
> >>      base,
> >>      Cabal < 2,
> >>      containers,
> >>      bytestring,
> >>      split,
> >>      process,
> >>      directory,
> >>      filepath
> >> (I am using cabal-install 1.24.0.2)
> >>
> >> Output from the second time I try to install wxHaskell:
> >>
> >> > cabal install --force-reinstalls --reinstall wxdirect wxc wxcore wx
> >> [1 of 1] Compiling Main             (
> >> X:\Temp\wxHaskell\wxcore\dist\setup\setup.hs,
> >> X:\Temp\wxHaskell\wxcore\dist\setup\Main.o )
> >> Linking X:\Temp\wxHaskell\wxcore\dist\setup\setup.exe ...
> >> [1 of 1] Compiling Main             (
> >> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs,
> >> X:\Temp\wxHaskell\wxc\dist\setup\Main.o )
> >>
> >> X:\Temp\wxHaskell\wxc\dist\setup\setup.hs:505:61: error:
> >>                        Variable not in scope: versionBranch :: Version  
> >> ->
> >> [a0]
> >>                        |
> >> 505 |           full_ver = (concat . intersperse "." . map show .
> >> versionBranch) ver
> >>                        |
> >> ^^^^^^^^^^^^^
> >>
> >> This error message indicates that the wrong version of Cabal (2.0) is  
> >> used
> >> to compile the wxcore setup.hs
> >> It looks like a cabal-install bug, but this does not happen when I
> >> use GHC 8.0.2; should I write a GHC bug ticket?
> >>
> >> Regards,
> >> Henk-Jan van Tuyl
>
>
> 2017-06-07 17:03:12,27
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507> Call cbl install -v3 --force-reinstalls --reinstall wxdirect wxc wxcore wx
>  *
>  *** You are now in a sandbox ***
>  *
> Command: cabal install -v3 --force-reinstalls --reinstall wxdirect wxc wxcore wx
> Using a sandbox located at
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\.cabal-sandbox
> Searching for ghc in path.
> Found ghc at C:\Progs\Haskell\ghc-8.2.0.20170507\bin\ghc.exe
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["--numeric-version"])
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin\ghc.exe is version 8.2.0.20170507
> looking for tool ghc-pkg near compiler in
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin
> candidate locations:
> ["C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc-pkg.exe"]
> found ghc-pkg in C:\Progs\Haskell\ghc-8.2.0.20170507\bin\ghc-pkg.exe
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc-pkg.exe",["--version"])
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin\ghc-pkg.exe is version
> 8.2.0.20170507
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["--supported-languages"])
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["--info"])
> Searching for alex in path.
> Found alex at C:\Users\X\AppData\Roaming\cabal\bin\alex.exe
> ("C:\\Users\\-\\AppData\\Roaming\\cabal\\bin\\alex.exe",["--version"])
> C:\Users\X\AppData\Roaming\cabal\bin\alex.exe is version 3.2.1
> Searching for ar.exe in path.
> Found ar.exe at C:\Progs\Haskell\ghc-8.2.0.20170507\mingw\bin\ar.exe
> Searching for c2hs in path.
> Found c2hs at C:\Progs\Haskell\c2hs.exe
> ("C:\\Progs\\Haskell\\c2hs.exe",["--numeric-version"])
> C:\Progs\Haskell\c2hs.exe is version 0.17.2
> Searching for cpphs in path.
> Found cpphs at C:\Users\X\AppData\Roaming\cabal\bin\cpphs.exe
> ("C:\\Users\\-\\AppData\\Roaming\\cabal\\bin\\cpphs.exe",["--version"])
> C:\Users\X\AppData\Roaming\cabal\bin\cpphs.exe is version 1.20.5
> Searching for gcc.exe in path.
> Found gcc.exe at C:\Progs\Haskell\ghc-8.2.0.20170507\mingw\bin\gcc.exe
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\bin\\gcc.exe",["-dumpversion"])
> C:\Progs\Haskell\ghc-8.2.0.20170507\mingw\bin\gcc.exe is version 6.2.0
> Searching for ghcjs in path.
> Cannot find ghcjs on the path
> Searching for ghcjs-pkg in path.
> Cannot find ghcjs-pkg on the path
> Searching for greencard in path.
> Cannot find greencard on the path
> looking for tool haddock near compiler in
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin
> candidate locations:
> ["C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\haddock.exe"]
> found haddock in C:\Progs\Haskell\ghc-8.2.0.20170507\bin\haddock.exe
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\haddock.exe",["--version"])
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin\haddock.exe is version 2.18.0
> Searching for happy in path.
> Found happy at C:\Users\X\AppData\Roaming\cabal\bin\happy.exe
> ("C:\\Users\\-\\AppData\\Roaming\\cabal\\bin\\happy.exe",["--version"])
> C:\Users\X\AppData\Roaming\cabal\bin\happy.exe is version 1.19.5
> Searching for hmake in path.
> Cannot find hmake on the path
> Searching for hpc in path.
> Found hpc at C:\Progs\Haskell\ghc-8.2.0.20170507\bin\hpc.exe
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\hpc.exe",["version"])
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin\hpc.exe is version 0.67
> looking for tool hsc2hs near compiler in
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin
> candidate locations:
> ["C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\hsc2hs.exe"]
> found hsc2hs in C:\Progs\Haskell\ghc-8.2.0.20170507\bin\hsc2hs.exe
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\hsc2hs.exe",["--version"])
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin\hsc2hs.exe is version 0.68.2
> Searching for HsColour in path.
> Found HsColour at C:\Users\X\AppData\Roaming\cabal\bin\HsColour.exe
> ("C:\\Users\\-\\AppData\\Roaming\\cabal\\bin\\HsColour.exe",["-version"])
> C:\Users\X\AppData\Roaming\cabal\bin\HsColour.exe is version 1.24
> Searching for jhc in path.
> Cannot find jhc on the path
> Searching for ld.exe in path.
> Found ld.exe at C:\Progs\Haskell\ghc-8.2.0.20170507\mingw\bin\ld.exe
> Environment: [("","ExitCode=00000000"),("ALLUSERSPROFILE","C:\\ProgramData"),("APPDATA","C:\\Users\\-\\AppData\\Roaming"),("COMMONPROGRAMFILES","C:\\Program Files\\Common Files"),("COMMONPROGRAMFILES(X86)","C:\\Program Files (x86)\\Common Files"),("COMMONPROGRAMW6432","C:\\Program Files\\Common Files"),("COMPUTERNAME","ALQUANTOR"),("COMSPEC","C:\\Windows\\system32\\cmd.exe"),("CPLUS_INCLUDE_PATH","C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\include\\c++\\6.2.0\\;C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\x86_64-w64-mingw32\\include"),("C_INCLUDE_PATH","C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\x86_64-w64-mingw32\\include"),("FP_NO_HOST_CHECK","NO"),("GHCVERSION","8.2.0.20170507"),("GHC_DIR","C:\\Progs\\Haskell\\ghc-8.2.0.20170507"),("GHC_VERSION","8.2.0.20170507"),("HASKELL_COMPILER_DIR","C:\\Progs\\Haskell\\ghc-8.2.0.20170507"),("HOME","C:\\Users\\-"),("HOMEDRIVE","C:"),("HOMEPATH","\\Users\\-"),("JAVA_HOME","C:\\Progs\\Java\\jdk1.8.0_25"),("LIBDIR","C:\\Libs"),("LIBRARY_PATH","C:\\Progs\\wxWidgets\\3.0.3-GCC6.2.0-64bit\\lib\\gcc_dll;C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\lib\\"),("LOCALAPPDATA","C:\\Users\\-\\AppData\\Local"),("LOGONSERVER","\\\\ALQUANTOR"),("NUMBER_OF_PROCESSORS","8"),("OS","Windows_NT"),("PACKAGE","wx"),("PACKAGES","wxdirect wxc wxcore wx"),("PATH","wxdirect\\dist\\build\\wxdirect;C:\\Progs\\Haskell;C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin;C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\bin;C:\\Program Files\\Haskell\\bin;C:\\Windows\\system32;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Progs\\Python27\\;C:\\bin\\;C:\\bin\\bin;C:\\Progs\\7-Zip;C:\\Progs\\THE;C:\\Progs\\upx391w;C:\\Progs\\GNU\\GnuPG;C:\\Progs\\Geany\\1.30.1\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Windows Live\\Shared;C:\\Progs\\GNU\\GnuPG\\pub;C:\\Progs\\rexx.org\\Regina;C:\\Progs\\THE;C:\\Progs\\WinMerge;C:\\Progs\\Windows Kits\\8.1\\Wi!
 ndows Pe
rformance Toolkit\\;C:\\Progs\\SlikSvn\\bin;C:\\Progs\\GitExtensions\\;C:\\Progs\\Stack;C:\\Progs\\MSYS2\\msys64;C:\\Progs\\MSYS2\\msys64\\mingw64\\bin;C:\\Users\\-\\AppData\\Roaming\\cabal\\bin;C:\\Progs\\FAHClient;C:\\Progs\\IrfanView;C:\\Progs\\Graphviz2.38\\bin;C:\\Progs\\Git\\bin;C:\\Progs\\DependencyWalker;C:\\Users\\-\\AppData\\Roaming\\cabal\\bin"),("PATHEXT",".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC"),("PROCESSOR_ARCHITECTURE","AMD64"),("PROCESSOR_IDENTIFIER","Intel64 Family 6 Model 60 Stepping 3, GenuineIntel"),("PROCESSOR_LEVEL","6"),("PROCESSOR_REVISION","3c03"),("PROGRAMDATA","C:\\ProgramData"),("PROGRAMFILES","C:\\Program Files"),("PROGRAMFILES(X86)","C:\\Program Files (x86)"),("PROGRAMW6432","C:\\Program Files"),("PROMPT","$D $T $_$P$G$S"),("PSMODULEPATH","C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\"),("PUBLIC","C:\\Users\\Public"),("REGINA_LANG","en"),("REGINA_LANG_DIR","C:\\Progs\\rexx.org\\Regina"),("RESMURF","If Exist dist Rd /s/q dist"),("SESSIONNAME","Console"),("SMURF","cabal install -v3 --force-reinstalls --reinstall wxdirect wxc wxcore wx"),("STACK_ROOT","C:\\Users\\-\\Documents\\StackRoot"),("SYSTEMDRIVE","C:"),("SYSTEMROOT","C:\\Windows"),("TC_VERSION","3.0.3-GCC6.2.0-64bit-8.2.0.20170507"),("TEMP","C:\\Users\\-\\AppData\\Local\\Temp"),("THE_HELP_FILE","C:\\Progs\\THE\\THE_Help.txt"),("THE_HOME_DIR","C:\\Progs\\THE"),("THE_MACRO_PATH","C:\\Progs\\THE\\extras"),("TMP","C:\\Users\\-\\AppData\\Local\\Temp"),("UNREGISTER","cabal exec ghc-pkg unregister"),("USERDOMAIN","Alquantor"),("USERDOMAIN_ROAMINGPROFILE","Alquantor"),("USERNAME","User"),("USERPROFILE","C:\\Users\\-"),("VBOX_MSI_INSTALL_PATH","C:\\Progs\\Oracle\\VirtualBox\\"),("WINDIR","C:\\Windows"),("WXCFG","gcc_dll\\mswu"),("WXCONFIGURATION","Achelanne"),("WXCONFIGVER","0.1"),("WXHASKELL_TEMP_DIR","wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507"),("WXWIDGETS_VERSION","3.0.3-GCC6.2.0-64bit"),("WXWIDGETS_VERSION_NO_BITNESS","3.0.3-GCC6.2.0"),("WXWIN","C:\\Progs\\wxWidgets\\3.0.3-GCC6.2.0-64bit")]

> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["-hide-all-packages","-c","C:\\Users\\-\\AppData\\Local\\Temp\\4118467.c","-o","C:\\Users\\-\\AppData\\Local\\Temp\\633426500.o"])
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\bin\\ld.exe",["-x","-r","C:\\Users\\-\\AppData\\Local\\Temp\\633426500.o","-o","C:\\Users\\-\\AppData\\Local\\Temp\\1916915724.o"])
> Searching for lhc in path.
> Cannot find lhc on the path
> Searching for lhc-pkg in path.
> Cannot find lhc-pkg on the path
> Searching for pkg-config in path.
> Found pkg-config at C:\bin\pkg-config.exe
> ("C:\\bin\\pkg-config.exe",["--version"])
> C:\bin\pkg-config.exe is version 0.28
> Searching for strip in path.
> Found strip at C:\Progs\Haskell\ghc-8.2.0.20170507\mingw\bin\strip.exe
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\bin\\strip.exe",["--version"])
> C:\Progs\Haskell\ghc-8.2.0.20170507\mingw\bin\strip.exe is version 2.27
> Searching for tar in path.
> Cannot find tar on the path
> Searching for uhc in path.
> Cannot find uhc on the path
> The package database already exists:
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\.cabal-sandbox\x86_64-windows-ghc-8.2.0.20170507-packages.conf.d
> Reading installed packages...
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc-pkg.exe",["dump","--package-db=X:\\Temp\\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\\.cabal-sandbox\\x86_64-windows-ghc-8.2.0.20170507-packages.conf.d","-v0"])
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["--print-libdir"])
> Checking whether the dependency is modified:
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wx
> Using internal setup method with build-type Simple and args:
> ["sdist","--verbose=3","--list-sources=C:\\Users\\-\\AppData\\Local\\Temp\\cabal-list-sources.-1020\\cabal-sdist-list-sources"]
> List of package sources written to file
> 'C:\Users\X\AppData\Local\Temp\cabal-list-sources.-1020\cabal-sdist-list-sources'
> Dependency has a modified source file:
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wx\src\Graphics\UI\WX\Draw.hs
> Checking whether the dependency is modified:
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxcore
> Using external setup method with build-type Custom
> Using explicit dependencies: False
> creating
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxcore\dist\setup
> Using Cabal library version 2.0.0.0
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxcore\dist\setup\setup.exe
> sdist --verbose=3
> --list-sources=C:\Users\X\AppData\Local\Temp\cabal-list-sources.-1020\cabal-sdist-list-sources
> List of package sources written to file
> 'C:\Users\X\AppData\Local\Temp\cabal-list-sources.-1020\cabal-sdist-list-sources'
> Dependency has a modified source file:
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxcore\src/haskell\Graphics\UI\WXCore.hs
> Checking whether the dependency is modified:
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxc
> Using external setup method with build-type Custom
> Using explicit dependencies: False
> creating X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxc\dist\setup
> Searching for ghc in path.
> Found ghc at C:\Progs\Haskell\ghc-8.2.0.20170507\bin\ghc.exe
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["--numeric-version"])
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin\ghc.exe is version 8.2.0.20170507
> looking for tool ghc-pkg near compiler in
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin
> candidate locations:
> ["C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc-pkg.exe"]
> found ghc-pkg in C:\Progs\Haskell\ghc-8.2.0.20170507\bin\ghc-pkg.exe
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc-pkg.exe",["--version"])
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin\ghc-pkg.exe is version
> 8.2.0.20170507
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["--supported-languages"])
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["--info"])
> Reading installed packages...
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc-pkg.exe",["dump","--global","-v0"])
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc-pkg.exe",["dump","--user","-v0"])
> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["--print-libdir"])
> Using Cabal library version 2.0.0.0
> Setup executable needs to be updated, compiling...
> Environment: [("","ExitCode=00000000"),("ALLUSERSPROFILE","C:\\ProgramData"),("APPDATA","C:\\Users\\-\\AppData\\Roaming"),("COMMONPROGRAMFILES","C:\\Program Files\\Common Files"),("COMMONPROGRAMFILES(X86)","C:\\Program Files (x86)\\Common Files"),("COMMONPROGRAMW6432","C:\\Program Files\\Common Files"),("COMPUTERNAME","ALQUANTOR"),("COMSPEC","C:\\Windows\\system32\\cmd.exe"),("CPLUS_INCLUDE_PATH","C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\include\\c++\\6.2.0\\;C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\x86_64-w64-mingw32\\include"),("C_INCLUDE_PATH","C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\x86_64-w64-mingw32\\include"),("FP_NO_HOST_CHECK","NO"),("GHCVERSION","8.2.0.20170507"),("GHC_DIR","C:\\Progs\\Haskell\\ghc-8.2.0.20170507"),("GHC_VERSION","8.2.0.20170507"),("HASKELL_COMPILER_DIR","C:\\Progs\\Haskell\\ghc-8.2.0.20170507"),("HOME","C:\\Users\\-"),("HOMEDRIVE","C:"),("HOMEPATH","\\Users\\-"),("JAVA_HOME","C:\\Progs\\Java\\jdk1.8.0_25"),("LIBDIR","C:\\Libs"),("LIBRARY_PATH","C:\\Progs\\wxWidgets\\3.0.3-GCC6.2.0-64bit\\lib\\gcc_dll;C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\lib\\"),("LOCALAPPDATA","C:\\Users\\-\\AppData\\Local"),("LOGONSERVER","\\\\ALQUANTOR"),("NUMBER_OF_PROCESSORS","8"),("OS","Windows_NT"),("PACKAGE","wx"),("PACKAGES","wxdirect wxc wxcore wx"),("PATH","wxdirect\\dist\\build\\wxdirect;C:\\Progs\\Haskell;C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin;C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\mingw\\bin;C:\\Program Files\\Haskell\\bin;C:\\Windows\\system32;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Progs\\Python27\\;C:\\bin\\;C:\\bin\\bin;C:\\Progs\\7-Zip;C:\\Progs\\THE;C:\\Progs\\upx391w;C:\\Progs\\GNU\\GnuPG;C:\\Progs\\Geany\\1.30.1\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Windows Live\\Shared;C:\\Progs\\GNU\\GnuPG\\pub;C:\\Progs\\rexx.org\\Regina;C:\\Progs\\THE;C:\\Progs\\WinMerge;C:\\Progs\\Windows Kits\\8.1\\Wi!
 ndows Pe
rformance Toolkit\\;C:\\Progs\\SlikSvn\\bin;C:\\Progs\\GitExtensions\\;C:\\Progs\\Stack;C:\\Progs\\MSYS2\\msys64;C:\\Progs\\MSYS2\\msys64\\mingw64\\bin;C:\\Users\\-\\AppData\\Roaming\\cabal\\bin;C:\\Progs\\FAHClient;C:\\Progs\\IrfanView;C:\\Progs\\Graphviz2.38\\bin;C:\\Progs\\Git\\bin;C:\\Progs\\DependencyWalker"),("PATHEXT",".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC"),("PROCESSOR_ARCHITECTURE","AMD64"),("PROCESSOR_IDENTIFIER","Intel64 Family 6 Model 60 Stepping 3, GenuineIntel"),("PROCESSOR_LEVEL","6"),("PROCESSOR_REVISION","3c03"),("PROGRAMDATA","C:\\ProgramData"),("PROGRAMFILES","C:\\Program Files"),("PROGRAMFILES(X86)","C:\\Program Files (x86)"),("PROGRAMW6432","C:\\Program Files"),("PROMPT","$D $T $_$P$G$S"),("PSMODULEPATH","C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\"),("PUBLIC","C:\\Users\\Public"),("REGINA_LANG","en"),("REGINA_LANG_DIR","C:\\Progs\\rexx.org\\Regina"),("RESMURF","If Exist dist Rd /s/q dist"),("SESSIONNAME","Console"),("SMURF","cabal install -v3 --force-reinstalls --reinstall wxdirect wxc wxcore wx"),("STACK_ROOT","C:\\Users\\-\\Documents\\StackRoot"),("SYSTEMDRIVE","C:"),("SYSTEMROOT","C:\\Windows"),("TC_VERSION","3.0.3-GCC6.2.0-64bit-8.2.0.20170507"),("TEMP","C:\\Users\\-\\AppData\\Local\\Temp"),("THE_HELP_FILE","C:\\Progs\\THE\\THE_Help.txt"),("THE_HOME_DIR","C:\\Progs\\THE"),("THE_MACRO_PATH","C:\\Progs\\THE\\extras"),("TMP","C:\\Users\\-\\AppData\\Local\\Temp"),("UNREGISTER","cabal exec ghc-pkg unregister"),("USERDOMAIN","Alquantor"),("USERDOMAIN_ROAMINGPROFILE","Alquantor"),("USERNAME","User"),("USERPROFILE","C:\\Users\\-"),("VBOX_MSI_INSTALL_PATH","C:\\Progs\\Oracle\\VirtualBox\\"),("WINDIR","C:\\Windows"),("WXCFG","gcc_dll\\mswu"),("WXCONFIGURATION","Achelanne"),("WXCONFIGVER","0.1"),("WXHASKELL_TEMP_DIR","wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507"),("WXWIDGETS_VERSION","3.0.3-GCC6.2.0-64bit"),("WXWIDGETS_VERSION_NO_BITNESS","3.0.3-GCC6.2.0"),("WXWIN","C:\\Progs\\wxWidgets\\3.0.3-GCC6.2.0-64bit")]

> ("C:\\Progs\\Haskell\\ghc-8.2.0.20170507\\bin\\ghc.exe",["--make","-v","-odir","X:\\Temp\\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\\wxc\\dist\\setup","-hidir","X:\\Temp\\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\\wxc\\dist\\setup","-i","-iX:\\Temp\\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\\wxc","-package-id","Cabal-2.0.0.0","X:\\Temp\\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\\wxc\\dist\\setup\\setup.hs","-o","X:\\Temp\\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\\wxc\\dist\\setup\\setup.exe","-threaded"])
> Glasgow Haskell Compiler, Version 8.2.0.20170507, stage 2 booted by GHC version 8.0.2
> Using binary package database: C:\Progs\Haskell\ghc-8.2.0.20170507\lib\package.conf.d\package.cache
> Using binary package database: C:\Users\X\AppData\Roaming\ghc\x86_64-mingw32-8.2.0.20170507\package.conf.d\package.cache
> package flags [-package-id Cabal-2.0.0.0{unit Cabal-2.0.0.0 True ([])}]
> loading package database C:\Progs\Haskell\ghc-8.2.0.20170507\lib\package.conf.d
> loading package database C:\Users\X\AppData\Roaming\ghc\x86_64-mingw32-8.2.0.20170507\package.conf.d
> wired-in package ghc-prim mapped to ghc-prim-0.5.0.0
> wired-in package integer-gmp mapped to integer-gmp-1.0.0.1
> wired-in package base mapped to base-4.10.0.0
> wired-in package rts mapped to rts
> wired-in package template-haskell mapped to template-haskell-2.12.0.0
> wired-in package ghc mapped to ghc-8.2.0.20170507
> wired-in package dph-seq not found.
> wired-in package dph-par not found.
> package flags [-package-id Cabal-2.0.0.0{unit Cabal-2.0.0.0 True ([])}]
> loading package database C:\Progs\Haskell\ghc-8.2.0.20170507\lib\package.conf.d
> loading package database C:\Users\X\AppData\Roaming\ghc\x86_64-mingw32-8.2.0.20170507\package.conf.d
> wired-in package ghc-prim mapped to ghc-prim-0.5.0.0
> wired-in package integer-gmp mapped to integer-gmp-1.0.0.1
> wired-in package base mapped to base-4.10.0.0
> wired-in package rts mapped to rts-1.0
> wired-in package template-haskell mapped to template-haskell-2.12.0.0
> wired-in package ghc mapped to ghc-8.2.0.20170507
> wired-in package dph-seq not found.
> wired-in package dph-par not found.
> *** Chasing dependencies:
> Chasing modules from: *X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxc\dist\setup\setup.hs
> Created temporary directory: C:\Users\X\AppData\Local\Temp\ghc3688_0
> *** C pre-processor:
> "C:\Progs\Haskell\ghc-8.2.0.20170507\lib/../mingw/bin/gcc.exe" "-E" "-undef" "-traditional" "-I" "C:\Progs\Haskell\ghc-8.2.0.20170507\lib\process-1.6.0.0\include" "-I" "C:\Progs\Haskell\ghc-8.2.0.20170507\lib\directory-1.3.0.2\include" "-I" "C:\Progs\Haskell\ghc-8.2.0.20170507\lib\time-1.8.0.1\include" "-I" "C:\Progs\Haskell\ghc-8.2.0.20170507\lib\Win32-2.5.4.1\include" "-I" "C:\Progs\Haskell\ghc-8.2.0.20170507\lib\bytestring-0.10.8.2\include" "-I" "C:\Progs\Haskell\ghc-8.2.0.20170507\lib\base-4.10.0.0\include" "-I" "C:\Progs\Haskell\ghc-8.2.0.20170507\lib\integer-gmp-1.0.0.1\include" "-I" "C:\Progs\Haskell\ghc-8.2.0.20170507\lib/include" "-include" "C:\Progs\Haskell\ghc-8.2.0.20170507\lib/include\ghcversion.h" "-Dmingw32_BUILD_OS" "-Dx86_64_BUILD_ARCH" "-Dmingw32_HOST_OS" "-Dx86_64_HOST_ARCH" "-D__GLASGOW_HASKELL_TH__" "-D__SSE__" "-D__SSE2__" "-includeC:\Users\X\AppData\Local\Temp\ghc3688_0\ghc_2.h" "-x" "assembler-with-cpp" "X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxc\dist\setup\setup.hs" "-o" "C:\Users\X\AppData\Local\Temp\ghc3688_0\ghc_1.hscpp"
> !!! Chasing dependencies: finished in 31.25 milliseconds, allocated 9.007 megabytes
> Stable obj: []
> Stable BCO: []
> Ready for upsweep
>   [NONREC
>       ModSummary {
>          ms_hs_date = 2017-06-07 00:19:41.7814384 UTC
>          ms_mod = Main,
>          ms_textual_imps = [(Nothing, Prelude), (Nothing, System.Process),
>                             (Nothing, System.Process), (Nothing, System.IO.Unsafe),
>                             (Nothing, System.IO.Error), (Nothing, System.IO),
>                             (Nothing, System.FilePath), (Nothing, System.Exit),
>                             (Nothing, System.Environment), (Nothing, System.Directory),
>                             (Nothing, Distribution.Version), (Nothing, Distribution.Verbosity),
>                             (Nothing, Distribution.System),
>                             (Nothing, Distribution.Simple.Utils),
>                             (Nothing, Distribution.Simple.Setup),
>                             (Nothing, Distribution.Simple.Program.Types),
>                             (Nothing, Distribution.Simple.Program),
>                             (Nothing, Distribution.Simple.PackageIndex),
>                             (Nothing, Distribution.Simple.LocalBuildInfo),
>                             (Nothing, Distribution.Simple.InstallDirs),
>                             (Nothing, Distribution.Simple), (Nothing, Distribution.Make),
>                             (Nothing, Distribution.PackageDescription),
>                             (Nothing, Distribution.Compat.Exception), (Nothing, Data.Map),
>                             (Nothing, Data.Maybe), (Nothing, Data.List.Split),
>                             (Nothing, Data.List), (Nothing, Data.Functor),
>                             (Nothing, Data.Char), (Nothing, Data.ByteString.Lazy),
>                             (Nothing, Control.Monad), (Nothing, Control.Exception)]
>          ms_srcimps = []
>       }]
> *** Deleting temp files:
> Deleting: C:\Users\X\AppData\Local\Temp\ghc3688_0\ghc_2.h
> compile: input file C:\Users\X\AppData\Local\Temp\ghc3688_0\ghc_1.hscpp
> *** Checking old interface for Main (use -ddump-hi-diffs for more details):
> [1 of 1] Compiling Main             ( X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxc\dist\setup\setup.hs, X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxc\dist\setup\Main.o )
> *** Parser [Main]:
> !!! Parser [Main]: finished in 15.63 milliseconds, allocated 17.654 megabytes
> *** Renamer/typechecker [Main]:
> !!! Renamer/typechecker [Main]: finished in 125.00 milliseconds, allocated 50.259 megabytes
>
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507\wxc\dist\setup\setup.hs:15:27: error:
>     Module `Distribution.Make' does not export `versionBranch'
>    |
> 15 | import Distribution.Make (versionBranch)
>    |                           ^^^^^^^^^^^^^
> Upsweep partially successful.
> *** Deleting temp files:
> Deleting: C:\Users\X\AppData\Local\Temp\ghc3688_0\ghc_1.hscpp
> link(batch): upsweep (partially) failed OR
>    Main.main not exported; not linking.
> *** Deleting temp files:
> Deleting:
> *** Deleting temp dirs:
> Deleting: C:\Users\X\AppData\Local\Temp\ghc3688_0
> C:\Progs\Haskell\ghc-8.2.0.20170507\bin\ghc.exe returned ExitFailure 1
>
> 2017-06-07 17:03:22,32
> X:\Temp\wxHaskell-3.0.3-GCC6.2.0-64bit-8.2.0.20170507>
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Bug in GHC or cabal-install?

Henk-Jan van Tuyl

cabal new-build works fine, although I now have the problem how to set
LIBRARY_PATH to the location of the wxc.dll that is generated during the
build of one package and needed for the build of another package.

Regards,
Henk-Jan van Tuyl

On Sat, 10 Jun 2017 03:13:11 +0200, Edward Z. Yang <[hidden email]> wrote:

> Thanks Henk, I know what the problem is.  I've filed
> a bug here.  https://github.com/haskell/cabal/issues/4561
>
> In the meantime, you should try giving new-build a try.
> I believe it does not suffer from this problem.
> http://cabal.readthedocs.io/en/latest/nix-local-build-overview.html
>
> Edward




--
Folding@home
What if you could share your unused computer power to help find a cure? In
just 5 minutes you can join the world's biggest networked computer and get
us closer sooner. Watch the video.
http://foldingathome.stanford.edu/


http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Bug in GHC or cabal-install?

Edward Z. Yang
Yeah, my suggestion is to add that other package to the project
(or, vice versa, add wxc and co to the new-build of that package.)

Edward

Excerpts from Henk-Jan van Tuyl's message of 2017-06-11 22:06:00 +0200:

>
> cabal new-build works fine, although I now have the problem how to set
> LIBRARY_PATH to the location of the wxc.dll that is generated during the
> build of one package and needed for the build of another package.
>
> Regards,
> Henk-Jan van Tuyl
>
> On Sat, 10 Jun 2017 03:13:11 +0200, Edward Z. Yang <[hidden email]> wrote:
>
> > Thanks Henk, I know what the problem is.  I've filed
> > a bug here.  https://github.com/haskell/cabal/issues/4561
> >
> > In the meantime, you should try giving new-build a try.
> > I believe it does not suffer from this problem.
> > http://cabal.readthedocs.io/en/latest/nix-local-build-overview.html
> >
> > Edward
>
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.