RE: Can't build on Windows

2015-10-27 Thread Simon Peyton Jones
· I was using “sh validate”.  Incidentally, does that still use 
validate.mk, are-validating.mk etc? Or is all that gone now, in which case if I 
want to modify the validate settings what do I do?



· 32 vs 64 bit?  How do I find out? I’m on a 64-bit processor, but for 
all I know I’m building GHC with 32 bit stuff.  How would I tell?



· `git submodule update’ appeared not to do anything



· I’m on a9c93b as well, same as you


I’ll try ‘make maintainer-clean’.

Am I using LLVM?  I don’t know.  I’m just saying ‘sh validate’.  How would I 
install LLVM?  The Windows preparation page is silent on that.  
https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Windows

Incidentally, the stage2 compiler can build statically-linked binaries; it’s 
just
ghc-stage2 –interactive
that immediately fails with the error below.

How could I investigate the actual error more directly?  Trying random things 
around the side is good, but so is directly investigating the cause, if only I 
knew how.

Thanks!

Simon


From: Thomas Miedema [mailto:thomasmied...@gmail.com]
Sent: 27 October 2015 00:55
To: Simon Peyton Jones
Cc: ghc-devs@haskell.org
Subject: Re: Can't build on Windows

I can not reproduce this on 64bit Windows, 
a9c93bdd8b027d6de09a3eada7721e7fd2d3e050 builds succesfully with flavour devel2.

* Which build flavour are you using? Any other 
mk/build.mk<https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fbuild.mk=01%7c01%7csimonpj%40064d.mgd.microsoft.com%7cc86c89f598f14d618fe808d2de692fc8%7c72f988bf86f141af91ab2d7cd011db47%7c1=p1UQjXj6nQgS8jCzrn2iYDTXQfMWxDWu7zEyn6wTUsM%3d>
 settings?
* 32bit or 64bit?
* Output of `git status` (i.e. did you 'git submodule update'? In case that 
fixes it, I suggest you use git 
pullall<https://ghc.haskell.org/trac/ghc/wiki/WorkingConventions/Git/Submodules#gitpullall>
 for all your pulling needs)
* Try `make maintainer-clean`.
* In case you use llvm, note that HEAD needs llvm-3.7 now.



On Mon, Oct 26, 2015 at 10:19 PM, Simon Peyton Jones 
<simo...@microsoft.com<mailto:simo...@microsoft.com>> wrote:
Gurgah.   GHC is broken on my windows laptop.  See below.  Anyone have any 
ideas?  Frustrating.
Oddly the symbol is defined in the .exe

bash$ nm inplace/bin/ghc-stage2.exe | grep stg_upd_frame

02c248e0 T _stg_upd_frame_info
This is admittedly on a branch that I have modified; but I have only modified 
stuff in the front end, nothing in the RTS etc.  I suppose I will try to build 
a unmodified HEAD too.
can anyone help?  Thanks!
Simon


bash$ c:/code/HEAD/inplace/bin/ghc-stage2 --interactive

GHCi, version 7.11.20151026: 
http://www.haskell.org/ghc/<https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.haskell.org%2fghc%2f=01%7c01%7csimonpj%40064d.mgd.microsoft.com%7cc86c89f598f14d618fe808d2de692fc8%7c72f988bf86f141af91ab2d7cd011db47%7c1=v%2f5XCuTyAUEs11BFcXCM06TDhVNTgQLJnD%2bomo7Vy6I%3d>
  :? for help

ghc-stage2.exe: unable to load package `ghc-prim-0.4.0.0'

ghc-stage2.exe: 
C:\code\HEAD\libraries\ghc-prim\dist-install\build\HSghc-prim-0.4.0.0.o: 
unknown symbol `_stg_upd_frame_info'

HEAD $

___
ghc-devs mailing list
ghc-devs@haskell.org<mailto:ghc-devs@haskell.org>
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs<https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fmail.haskell.org%2fcgi-bin%2fmailman%2flistinfo%2fghc-devs=01%7c01%7csimonpj%40064d.mgd.microsoft.com%7cc86c89f598f14d618fe808d2de692fc8%7c72f988bf86f141af91ab2d7cd011db47%7c1=ZyT7wn%2bUEkWsOGr5FnmWQuVFURddW6mvdjPyMKzm%2b5Q%3d>

___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Can't build on Windows

2015-10-26 Thread Simon Peyton Jones
Gurgah.   GHC is broken on my windows laptop.  See below.  Anyone have any 
ideas?  Frustrating.
Oddly the symbol is defined in the .exe

bash$ nm inplace/bin/ghc-stage2.exe | grep stg_upd_frame

02c248e0 T _stg_upd_frame_info
This is admittedly on a branch that I have modified; but I have only modified 
stuff in the front end, nothing in the RTS etc.  I suppose I will try to build 
a unmodified HEAD too.
can anyone help?  Thanks!
Simon


bash$ c:/code/HEAD/inplace/bin/ghc-stage2 --interactive

GHCi, version 7.11.20151026: http://www.haskell.org/ghc/  :? for help

ghc-stage2.exe: unable to load package `ghc-prim-0.4.0.0'

ghc-stage2.exe: 
C:\code\HEAD\libraries\ghc-prim\dist-install\build\HSghc-prim-0.4.0.0.o: 
unknown symbol `_stg_upd_frame_info'

HEAD $
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


RE: Can't build on Windows

2015-10-26 Thread Simon Peyton Jones
But don't our windows buildbots do this for us?  Surely!  That's what they are 
for.

Me bisecting on my little laptop is not a very happy situation.  Don't we have 
better technology?

Simon

| -Original Message-
| From: mad@gmail.com [mailto:mad@gmail.com] On Behalf Of Austin
| Seipp
| Sent: 26 October 2015 23:37
| To: Simon Peyton Jones
| Cc: ghc-devs@haskell.org
| Subject: Re: Can't build on Windows
| 
| (Resending to list properly)
| 
| Hrm, I can't see anything off hand in the past few weeks that would
| have caused this at a glance.
| 
| Can you try bisecting it perhaps? You can probably do something like:
| 
| $ git bisect start
| $ git bisect bad
| $ git bisect good dcc342870b4d8a739ccbed3ae26e84dcc3579914
| $ git bisect run ./validate
| 
| This will probably take a while, though.
| 
| The commit 'dcc342870b4d8a739ccbed3ae26e84dcc3579914' was chosen
| randomly, however. Any idea when this started happening? If it's the
| past few weeks, the above might work
| 
| On Mon, Oct 26, 2015 at 4:19 PM, Simon Peyton Jones
| <simo...@microsoft.com> wrote:
| > Gurgah.   GHC is broken on my windows laptop.  See below.  Anyone have
| any
| > ideas?  Frustrating.
| >
| > Oddly the symbol is defined in the .exe
| >
| > bash$ nm inplace/bin/ghc-stage2.exe | grep stg_upd_frame
| >
| > 02c248e0 T _stg_upd_frame_info
| >
| > This is admittedly on a branch that I have modified; but I have only
| > modified stuff in the front end, nothing in the RTS etc.  I suppose I
| will
| > try to build a unmodified HEAD too.
| >
| > can anyone help?  Thanks!
| >
| > Simon
| >
| >
| >
| > bash$ c:/code/HEAD/inplace/bin/ghc-stage2 --interactive
| >
| > GHCi, version 7.11.20151026:
| https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.haskell
| .org%2fghc%2f=01%7c01%7csimonpj%40064d.mgd.microsoft.com%7c0ddd3793727
| 34905b9e108d2de5e53ad%7c72f988bf86f141af91ab2d7cd011db47%7c1=qOu5IQhF
| 9zwGyKO5nvAirOIC%2faHswQxRUDkSUQZGBGo%3d  :? for help
| >
| > ghc-stage2.exe: unable to load package `ghc-prim-0.4.0.0'
| >
| > ghc-stage2.exe:
| > C:\code\HEAD\libraries\ghc-prim\dist-install\build\HSghc-prim-0.4.0.0.o:
| > unknown symbol `_stg_upd_frame_info'
| >
| > HEAD $
| >
| >
| > ___
| > ghc-devs mailing list
| > ghc-devs@haskell.org
| >
| https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fmail.haskel
| l.org%2fcgi-bin%2fmailman%2flistinfo%2fghc-
| devs=01%7c01%7csimonpj%40064d.mgd.microsoft.com%7c0ddd379372734905b9e1
| 08d2de5e53ad%7c72f988bf86f141af91ab2d7cd011db47%7c1=q0prCf7bCbf3hCv0S
| wWCQ1Ps%2b4zJB31rMF34n%2fhBq0I%3d
| >
| 
| 
| 
| --
| Regards,
| 
| Austin Seipp, Haskell Consultant
| Well-Typed LLP,
| https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.well-
| typed.com%2f=01%7c01%7csimonpj%40064d.mgd.microsoft.com%7c0ddd37937273
| 4905b9e108d2de5e53ad%7c72f988bf86f141af91ab2d7cd011db47%7c1=jbueQwg9b
| CXMVdExfCrBmk9FIfLit2W5GZJNoKIGF8c%3d
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: Can't build on Windows

2015-10-26 Thread Austin Seipp
(Resending to list properly)

Hrm, I can't see anything off hand in the past few weeks that would
have caused this at a glance.

Can you try bisecting it perhaps? You can probably do something like:

$ git bisect start
$ git bisect bad
$ git bisect good dcc342870b4d8a739ccbed3ae26e84dcc3579914
$ git bisect run ./validate

This will probably take a while, though.

The commit 'dcc342870b4d8a739ccbed3ae26e84dcc3579914' was chosen
randomly, however. Any idea when this started happening? If it's the
past few weeks, the above might work

On Mon, Oct 26, 2015 at 4:19 PM, Simon Peyton Jones
 wrote:
> Gurgah.   GHC is broken on my windows laptop.  See below.  Anyone have any
> ideas?  Frustrating.
>
> Oddly the symbol is defined in the .exe
>
> bash$ nm inplace/bin/ghc-stage2.exe | grep stg_upd_frame
>
> 02c248e0 T _stg_upd_frame_info
>
> This is admittedly on a branch that I have modified; but I have only
> modified stuff in the front end, nothing in the RTS etc.  I suppose I will
> try to build a unmodified HEAD too.
>
> can anyone help?  Thanks!
>
> Simon
>
>
>
> bash$ c:/code/HEAD/inplace/bin/ghc-stage2 --interactive
>
> GHCi, version 7.11.20151026: http://www.haskell.org/ghc/  :? for help
>
> ghc-stage2.exe: unable to load package `ghc-prim-0.4.0.0'
>
> ghc-stage2.exe:
> C:\code\HEAD\libraries\ghc-prim\dist-install\build\HSghc-prim-0.4.0.0.o:
> unknown symbol `_stg_upd_frame_info'
>
> HEAD $
>
>
> ___
> ghc-devs mailing list
> ghc-devs@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>



-- 
Regards,

Austin Seipp, Haskell Consultant
Well-Typed LLP, http://www.well-typed.com/
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


RE: Can't build on Windows

2015-10-26 Thread Simon Peyton Jones
It happens with unmodified HEAD too.  Sigh.
Can anyone help?
Simon

From: ghc-devs [mailto:ghc-devs-boun...@haskell.org] On Behalf Of Simon Peyton 
Jones
Sent: 26 October 2015 21:19
To: ghc-devs@haskell.org
Subject: Can't build on Windows

Gurgah.   GHC is broken on my windows laptop.  See below.  Anyone have any 
ideas?  Frustrating.
Oddly the symbol is defined in the .exe

bash$ nm inplace/bin/ghc-stage2.exe | grep stg_upd_frame

02c248e0 T _stg_upd_frame_info
This is admittedly on a branch that I have modified; but I have only modified 
stuff in the front end, nothing in the RTS etc.  I suppose I will try to build 
a unmodified HEAD too.
can anyone help?  Thanks!
Simon


bash$ c:/code/HEAD/inplace/bin/ghc-stage2 --interactive

GHCi, version 7.11.20151026: http://www.haskell.org/ghc/  :? for help

ghc-stage2.exe: unable to load package `ghc-prim-0.4.0.0'

ghc-stage2.exe: 
C:\code\HEAD\libraries\ghc-prim\dist-install\build\HSghc-prim-0.4.0.0.o: 
unknown symbol `_stg_upd_frame_info'

HEAD $
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: Can't build on Windows

2015-10-26 Thread Thomas Miedema
I can not reproduce this on 64bit
Windows, a9c93bdd8b027d6de09a3eada7721e7fd2d3e050 builds succesfully with
flavour devel2.

* Which build flavour are you using? Any other mk/build.mk settings?
* 32bit or 64bit?
* Output of `git status` (i.e. did you 'git submodule update'? In case that
fixes it, I suggest you use git pullall

for
all your pulling needs)
* Try `make maintainer-clean`.
* In case you use llvm, note that HEAD needs llvm-3.7 now.



On Mon, Oct 26, 2015 at 10:19 PM, Simon Peyton Jones 
wrote:

> Gurgah.   GHC is broken on my windows laptop.  See below.  Anyone have any
> ideas?  Frustrating.
>
> Oddly the symbol is defined in the .exe
>
> bash$ nm inplace/bin/ghc-stage2.exe | grep stg_upd_frame
>
> 02c248e0 T _stg_upd_frame_info
>
> This is admittedly on a branch that I have modified; but I have only
> modified stuff in the front end, nothing in the RTS etc.  I suppose I will
> try to build a unmodified HEAD too.
>
> can anyone help?  Thanks!
>
> Simon
>
>
>
> bash$ c:/code/HEAD/inplace/bin/ghc-stage2 --interactive
>
> GHCi, version 7.11.20151026: http://www.haskell.org/ghc/  :? for help
>
> ghc-stage2.exe: unable to load package `ghc-prim-0.4.0.0'
>
> ghc-stage2.exe:
> C:\code\HEAD\libraries\ghc-prim\dist-install\build\HSghc-prim-0.4.0.0.o:
> unknown symbol `_stg_upd_frame_info'
>
> HEAD $
>
> ___
> ghc-devs mailing list
> ghc-devs@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>
>
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: Can't build on Windows

2015-10-26 Thread Edward Z. Yang
Same here, can't reproduce on 64bit Windows 10.

Edward

Excerpts from Thomas Miedema's message of 2015-10-26 17:54:35 -0700:
> I can not reproduce this on 64bit
> Windows, a9c93bdd8b027d6de09a3eada7721e7fd2d3e050 builds succesfully with
> flavour devel2.
> 
> * Which build flavour are you using? Any other mk/build.mk settings?
> * 32bit or 64bit?
> * Output of `git status` (i.e. did you 'git submodule update'? In case that
> fixes it, I suggest you use git pullall
> 
> for
> all your pulling needs)
> * Try `make maintainer-clean`.
> * In case you use llvm, note that HEAD needs llvm-3.7 now.
> 
> 
> 
> On Mon, Oct 26, 2015 at 10:19 PM, Simon Peyton Jones 
> wrote:
> 
> > Gurgah.   GHC is broken on my windows laptop.  See below.  Anyone have any
> > ideas?  Frustrating.
> >
> > Oddly the symbol is defined in the .exe
> >
> > bash$ nm inplace/bin/ghc-stage2.exe | grep stg_upd_frame
> >
> > 02c248e0 T _stg_upd_frame_info
> >
> > This is admittedly on a branch that I have modified; but I have only
> > modified stuff in the front end, nothing in the RTS etc.  I suppose I will
> > try to build a unmodified HEAD too.
> >
> > can anyone help?  Thanks!
> >
> > Simon
> >
> >
> >
> > bash$ c:/code/HEAD/inplace/bin/ghc-stage2 --interactive
> >
> > GHCi, version 7.11.20151026: http://www.haskell.org/ghc/  :? for help
> >
> > ghc-stage2.exe: unable to load package `ghc-prim-0.4.0.0'
> >
> > ghc-stage2.exe:
> > C:\code\HEAD\libraries\ghc-prim\dist-install\build\HSghc-prim-0.4.0.0.o:
> > unknown symbol `_stg_upd_frame_info'
> >
> > HEAD $
> >
> > ___
> > ghc-devs mailing list
> > ghc-devs@haskell.org
> > http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
> >
> >
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


RE: Can't build on Windows

2015-07-15 Thread Simon Peyton Jones
Ah, thank you!

Simon

From: Thomas Miedema [mailto:thomasmied...@gmail.com]
Sent: 15 July 2015 00:07
To: Simon Peyton Jones
Cc: ghc-devs@haskell.org
Subject: Re: Can't build on Windows



I’ve just cloned GHC, on Windows and typed “sh validate”.  But it dies as 
below.  And indeed the directory ghc-tarballs doesn’t exist.  Should it?  How 
do I get it?


git clone 
git://git.haskell.org/ghc-tarballs.githttp://git.haskell.org/ghc-tarballs.git
As described on the wiki: 
https://ghc.haskell.org/trac/ghc/wiki/Building/GettingTheSources#CloningHEAD

There is an unfinished patch to make that step unnecessary: 
https://phabricator.haskell.org/D339
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Can't build on Windows

2015-07-14 Thread Simon Peyton Jones
I've just cloned GHC, on Windows and typed sh validate.  But it dies as 
below.  And indeed the directory ghc-tarballs doesn't exist.  Should it?  How 
do I get it?
Thanks
Simon


Target platform inferred as: i386-unknown-mingw32

GHC build  : i386-unknown-mingw32

GHC host   : i386-unknown-mingw32

GHC target : i386-unknown-mingw32

configure: Building in-tree ghc-pwd

checking for path to top of build tree... C:/code/ghc-injective

configure: Making in-tree mingw tree

tar (child): ../../ghc-tarballs/mingw/binutils*.tar.lzma: Cannot open: No such 
file or directory

tar (child): Error is not recoverable: exiting now

tar: Child returned status 2

tar: Error is not recoverable: exiting now

./configure: line 4217: inplace/mingw/bin/realgcc.exe: No such file or directory

configure: In-tree mingw tree created


___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: Can't build on Windows

2015-07-14 Thread Thomas Miedema
 I’ve just cloned GHC, on Windows and typed “sh validate”.  But it dies as
 below.  And indeed the directory ghc-tarballs doesn’t exist.  Should it?
 How do I get it?


git clone git://git.haskell.org/ghc-tarballs.git

As described on the wiki:
https://ghc.haskell.org/trac/ghc/wiki/Building/GettingTheSources#CloningHEAD

There is an unfinished patch to make that step unnecessary:
https://phabricator.haskell.org/D339
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs