ANN: ghc 6.8.2 from MacPorts

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

ANN: ghc 6.8.2 from MacPorts

Gregory Wright-2

After what many would consider an unconscionable delay, I am happy to  
announce
that ghc 6.8.2 is available from MacPorts.

The ghc 6.8.2 port is available for Tiger/ppc, Tiger/intel and Leopard/
intel.  Users with
Leopard/ppc are out of luck until for now, for reason discussed  
earlier on this list.

In partial recompense for their patience, users will get a ghc with  
more patches
than any previous MacPorts ghc.

A few notes:

        The file locking bugs #1992 and #2134 are fixed.  Bug #1992 was a  
simple
        lock logic error and should be killed dead.  Bug #2134 was the result  
of a lazy readFile
        holding a lock for an unpredictable time.  There may be more cases  
like this one,
        and I would appreciate a note from anyone who come across a lock  
error during building.

        Users on Leopard/intel must upgrade to 10.5.2 to avoid an OS bug  
which under
        unusual circumstances would repeatably (and mysteriously) crash the  
build.
        This was first noticed running the building in an eshell under  
Aquamacs.  Archives
        were built without tables of contents because ranlib wasn't being run  
or wasn't
        running to completion.  Builds in the usual Terminal.app didn't trip  
over this bug.

        OpenGL support is built by default.  It can be turned off using the  
no_opengl variant.

        OpenAL support is disabled.  Apple's OpenAL framework lacks ALUT  
support (needed
        for the ghc binding) but has name clashes with the freealut library  
from the OpenAL.org
        website.  Fixing this is probably straightforward.  If someone is  
interested, I can give
        them some pointers on getting started.

        MacPort's ghc ought to always link with the correct libgmp (the one  
provided by the gmp port).


The latest versions of alex, happy, haddock and hs-Edison are also  
available.


Best Wishes,
Greg

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: ANN: ghc 6.8.2 from MacPorts

Jinwoo Lee
Thank you!
But "ghc" has disappeared from MacPorts SW list.
Only "ghc-devel" can be seen.
Please look into it.

jinwoo


On Tue, Mar 4, 2008 at 11:13 PM, Gregory Wright <[hidden email]> wrote:

After what many would consider an unconscionable delay, I am happy to
announce
that ghc 6.8.2 is available from MacPorts.

The ghc 6.8.2 port is available for Tiger/ppc, Tiger/intel and Leopard/
intel.  Users with
Leopard/ppc are out of luck until for now, for reason discussed
earlier on this list.

In partial recompense for their patience, users will get a ghc with
more patches
than any previous MacPorts ghc.

A few notes:

       The file locking bugs #1992 and #2134 are fixed.  Bug #1992 was a
simple
       lock logic error and should be killed dead.  Bug #2134 was the result
of a lazy readFile
       holding a lock for an unpredictable time.  There may be more cases
like this one,
       and I would appreciate a note from anyone who come across a lock
error during building.

       Users on Leopard/intel must upgrade to 10.5.2 to avoid an OS bug
which under
       unusual circumstances would repeatably (and mysteriously) crash the
build.
       This was first noticed running the building in an eshell under
Aquamacs.  Archives
       were built without tables of contents because ranlib wasn't being run
or wasn't
       running to completion.  Builds in the usual Terminal.app didn't trip
over this bug.

       OpenGL support is built by default.  It can be turned off using the
no_opengl variant.

       OpenAL support is disabled.  Apple's OpenAL framework lacks ALUT
support (needed
       for the ghc binding) but has name clashes with the freealut library
from the OpenAL.org
       website.  Fixing this is probably straightforward.  If someone is
interested, I can give
       them some pointers on getting started.

       MacPort's ghc ought to always link with the correct libgmp (the one
provided by the gmp port).


The latest versions of alex, happy, haddock and hs-Edison are also
available.


Best Wishes,
Greg

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



--
Jinwoo Lee
Always remember that you are unique. Just like everyone else.
_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: ANN: ghc 6.8.2 from MacPorts

Gregory Wright-2

On Mar 5, 2008, at 4:21 AM, Jinwoo Lee wrote:

> Thank you!
> But "ghc" has disappeared from MacPorts SW list.
> Only "ghc-devel" can be seen.
> Please look into it.
>

ghc vanished from the distribution server for a few hours yesterday  
because of a
unanticipated corner case in the indexing script.  (The server runs  
Leopard/ppc,
and incorrectly rejected ports that correctly reported that they do  
not run on Leopard/ppc.)
A workaround was implemented and it is now available.

MacPorts helps debug ghc and ghc helps debug MacPorts!

-Greg

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: ANN: ghc 6.8.2 from MacPorts

Wilson MacGyver
In reply to this post by Gregory Wright-2
Gregory Wright wrote:
>
> After what many would consider an unconscionable delay, I am happy to
> announce
> that ghc 6.8.2 is available from MacPorts.

thank you for all the hard work, port installing now as we speak.

Good job.

Mac
_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: ANN: ghc 6.8.2 from MacPorts

Wouter Swierstra
In reply to this post by Gregory Wright-2
Hi Greg,

Thanks again for maintaining ghc in macports!

I tried installing ghc through macports. Unfortunately, the build  
failed with the following error message below. I'd be happy to send  
you a complete log, if you think it would help. Many thanks,

   Wouter



main/ParsePkgConf.hs:296:35: Not in scope: `extraLibraries'

main/ParsePkgConf.hs:297:35: Not in scope: `extraGHCiLibraries'

main/ParsePkgConf.hs:298:35: Not in scope: `includeDirs'

main/ParsePkgConf.hs:299:35: Not in scope: `includes'

main/ParsePkgConf.hs:300:35: Not in scope: `hugsOptions'

main/ParsePkgConf.hs:301:35: Not in scope: `ccOptions'

main/ParsePkgConf.hs:302:35: Not in scope: `ldOptions'

main/ParsePkgConf.hs:303:35: Not in scope: `frameworkDirs'

main/ParsePkgConf.hs:304:35: Not in scope: `frameworks'

main/ParsePkgConf.hs:305:35: Not in scope: `haddockInterfaces'

main/ParsePkgConf.hs:306:35: Not in scope: `haddockHTMLs'

main/ParsePkgConf.hs:307:34: Not in scope: `depends'

main/ParsePkgConf.hs:320:43: Not in scope: `depends'
<<ghc: 73406780 bytes, 11 GCs, 759125/1814528 avg/max bytes residency  
(3 samples), 18M in use, 0.00 INIT (0.00 elapsed), 0.09 MUT (0.13  
elapsed), 0.06 GC (0.07 elapsed) :ghc>>
make[2]: *** [stage2/main/ParsePkgConf.o] Error 1
make[1]: *** [stage2] Error 2
make: *** [bootstrap2] Error 2

Warning: the following items did not execute (for ghc):  
org.macports.activate org.macports.build org.macports.destroot  
org.macports.install
Error: Status 1 encountered during processing.

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: ANN: ghc 6.8.2 from MacPorts

Gregory Wright-2

Hi Wouter,

On Mar 6, 2008, at 12:57 PM, Wouter Swierstra wrote:

> Hi Greg,
>
> Thanks again for maintaining ghc in macports!
>
> I tried installing ghc through macports. Unfortunately, the build  
> failed with the following error message below. I'd be happy to send  
> you a complete log, if you think it would help. Many thanks,
>
>  Wouter
>
>
>
> main/ParsePkgConf.hs:296:35: Not in scope: `extraLibraries'
>
> main/ParsePkgConf.hs:297:35: Not in scope: `extraGHCiLibraries'
>
> main/ParsePkgConf.hs:298:35: Not in scope: `includeDirs'
>
> main/ParsePkgConf.hs:299:35: Not in scope: `includes'
>
> main/ParsePkgConf.hs:300:35: Not in scope: `hugsOptions'
>
> main/ParsePkgConf.hs:301:35: Not in scope: `ccOptions'
>
> main/ParsePkgConf.hs:302:35: Not in scope: `ldOptions'
>
> main/ParsePkgConf.hs:303:35: Not in scope: `frameworkDirs'
>
> main/ParsePkgConf.hs:304:35: Not in scope: `frameworks'
>
> main/ParsePkgConf.hs:305:35: Not in scope: `haddockInterfaces'
>
> main/ParsePkgConf.hs:306:35: Not in scope: `haddockHTMLs'
>
> main/ParsePkgConf.hs:307:34: Not in scope: `depends'
>
> main/ParsePkgConf.hs:320:43: Not in scope: `depends'
> <<ghc: 73406780 bytes, 11 GCs, 759125/1814528 avg/max bytes  
> residency (3 samples), 18M in use, 0.00 INIT (0.00 elapsed), 0.09  
> MUT (0.13 elapsed), 0.06 GC (0.07 elapsed) :ghc>>
> make[2]: *** [stage2/main/ParsePkgConf.o] Error 1
> make[1]: *** [stage2] Error 2
> make: *** [bootstrap2] Error 2
>
> Warning: the following items did not execute (for ghc):  
> org.macports.activate org.macports.build org.macports.destroot  
> org.macports.install
> Error: Status 1 encountered during processing.
>

This is odd.  What platform (intel/ppc and OS X version) are you  
running on?

A complete log would help too. The output of

        # sudo port -dv destroot ghc > dest.log 2>&1

is good.  You will probably want to compress the log file before  
sending.

One thing you might try is to ensure that you have no failed build  
lying around
by running

        # sudo port clean ghc
        # sudo port install ghc

The combination of ghc Makefiles and MacPorts infrastructure is not  
able to recover
from a failed or interrupted build.  You need to clean up and start  
over.  You should
also clean before recording the log.

Best,
greg

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: ANN: ghc 6.8.2 from MacPorts

Christian Maeder-2
In reply to this post by Gregory Wright-2
Gregory Wright wrote:
> Leopard/ppc are out of luck until for now, for reason discussed earlier
> on this list.

I was able to build ghc 6.8.2 on Leopard/ppc using the patch from

http://hackage.haskell.org/trac/ghc/ticket/1958
(also below)

Could you try if it works for you, too?

Cheers Christian

+++ ghc-6.8.2/compiler/nativeGen/PprMach.hs
@@ -657,7 +657,7 @@
                                    SLIT(".section .data\n\t.align 4"))
        ,IF_ARCH_x86_64(IF_OS_darwin(SLIT(".const_data\n.align 3"),
                                      SLIT(".section .data\n\t.align 8"))
-        ,IF_ARCH_powerpc(IF_OS_darwin(SLIT(".const_data\n.align 2"),
+        ,IF_ARCH_powerpc(IF_OS_darwin(SLIT(".text\n.align 2"),
                                       SLIT(".data\n\t.align 2"))
        ,)))))

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: ANN: ghc 6.8.2 from MacPorts

Christian Maeder-2
Christian Maeder wrote:

> Gregory Wright wrote:
>> Leopard/ppc are out of luck until for now, for reason discussed earlier
>> on this list.
>
> I was able to build ghc 6.8.2 on Leopard/ppc using the patch from
>
> http://hackage.haskell.org/trac/ghc/ticket/1958
> (also below)
>
> Could you try if it works for you, too?

I forgot to mention, that I had to build a bootstrapping compiler on pcc
tiger with this patch first.

C.

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: ANN: ghc 6.8.2 from MacPorts

Gregory Wright-2

Hi Christian,

On Mar 13, 2008, at 7:10 AM, Christian Maeder wrote:

>> I was able to build ghc 6.8.2 on Leopard/ppc using the patch from
>>
>> http://hackage.haskell.org/trac/ghc/ticket/1958
>> (also below)
>>
>> Could you try if it works for you, too?
>
> I forgot to mention, that I had to build a bootstrapping compiler on  
> pcc
> tiger with this patch first.
>

I'll build a bootstrap compiler with this patch today so we can give  
it a try. Thanks!

-Greg

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: ANN: ghc 6.8.2 from MacPorts

Christian Maeder-2
In reply to this post by Christian Maeder-2
Hi Greg,

I can't test it myself because I don't have root access to our machines.
Maybe someone else can?

(Meanwhile I'll try to make a binary-dist that includes the extra-libs.)

Cheers Christian

Gregory Wright wrote:

>
> Hi Christian,
>
> I built a new bootstrapping compiler on Tiger/ppc, incorporating
> Thorkil's .text section
> patch.  I've modified the portfile, but since I don't have a Leopard/ppc
> machine I can't
> try it.  Could you give it a go?
>
> Do
>
>     $ sudo port selfupdate
>     $ sudo port clean --all ghc
>     $ sudo port -dv install ghc > inst.log 2>&1
>
> You might want to check after the selfupdate that you have revision 2 of
> the ghc portfile.
> It may take a few hours for the server to index the port and make it
> available by rsync.
>
> If it fails, you can compress the log and send it to me.  The "-dv"
> flags dump all of the
> MacPorts and build information.
>
> There may still be a stupid bug or two since I can't test it myself.
>
> Thanks,
> Greg
>
_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Success report: Leopard powerpc

haskell-2
In reply to this post by Gregory Wright-2
I used both ghc-6.6.1 and macports to create a working ghc-6.8.2 on OS X 10.5.2
on a powerpc G4 laptop.
_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Success report: Leopard powerpc

Gregory Wright-2

Excellent news.  Thanks to you and Christian for trying it out.

-Greg

On Mar 17, 2008, at 4:12 PM, Chris Kuklewicz wrote:

> I used both ghc-6.6.1 and macports to create a working ghc-6.8.2 on  
> OS X 10.5.2 on a powerpc G4 laptop.
> _______________________________________________
> Glasgow-haskell-users mailing list
> [hidden email]
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Success report: Leopard powerpc

Bugzilla from alfonso.acosta@gmail.com
In reply to this post by haskell-2
On 3/17/08, Chris Kuklewicz <[hidden email]> wrote:
> I used both ghc-6.6.1 and macports to create a working ghc-6.8.2 on OS X 10.5.2
> on a powerpc G4 laptop.

Great!

It would be awsome if a PPC/Lepoard installation package was made
available from GHC's page.
_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Success report: Leopard powerpc

Christian Maeder-2
Alfonso Acosta wrote:

> It would be awsome if a PPC/Lepoard installation package was made
> available from GHC's page.

I can offer
http://www.informatik.uni-bremen.de/agbkb/forschung/formal_methods/CoFI/hets/mac/ghcs/ghc-6.8.2-powerpc-apple-darwin-static-libs.tar.bz2
but also see http://hackage.haskell.org/trac/ghc/ticket/2031

I've also made a binary-dist that uses the GMP and GNUreadline frameworks
http://www.informatik.uni-bremen.de/agbkb/forschung/formal_methods/CoFI/hets/mac/ghcs/ghc-6.8.2-powerpc-apple-darwin-leopard.tar.bz2

I've tried to compile it on leopard to be useable on tiger, too, by using:

SRC_HC_OPTS += -optc-isysroot -optc/Developer/SDKs/MacOSX10.4u.sdk
-optl-isysroot -optl/Developer/SDKs/MacOSX10.4u.sdk
-optl-macosx_version_min=10.4
-optl-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk

But it still does not run under tiger.

While it compiles and links on tiger, the dynamic linker complains when
starting the binary (see below), although the symbol _alloc_blocks is
part of the created binary (by inspecting it using "nm").

So, use the above binary-dists at your own risk.

I've still no idea, what kind of libs for gmp and readline I should use:
static ones, frameworks, or dylibs installed under /opt/local/lib (or
possibly elsewhere)

Cheers Christian

bigmac:/local/home/maeder/haskell/uni maeder$ ghc --make -no-recomp Setup.hs
[1 of 1] Compiling Main             ( Setup.hs, Setup.o )
Linking Setup ...
bigmac:/local/home/maeder/haskell/uni maeder$ ./Setup
dyld: Symbol not found: _alloc_blocks
  Referenced from: /local/home/maeder/haskell/uni/./Setup
  Expected in: /usr/lib/libSystem.B.dylib

Trace/BPT trap

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: ANN: ghc 6.8.2 from MacPorts

Bjorn Bringert
In reply to this post by Wouter Swierstra
On Thu, Mar 6, 2008 at 7:57 PM, Wouter Swierstra <[hidden email]> wrote:

> Hi Greg,
>
>  Thanks again for maintaining ghc in macports!
>
>  I tried installing ghc through macports. Unfortunately, the build failed
> with the following error message below. I'd be happy to send you a complete
> log, if you think it would help. Many thanks,
>
>   Wouter
>
>
>
>  main/ParsePkgConf.hs:296:35: Not in scope: `extraLibraries'
>
>  main/ParsePkgConf.hs:297:35: Not in scope: `extraGHCiLibraries'
>
>  main/ParsePkgConf.hs:298:35: Not in scope: `includeDirs'
>
>  main/ParsePkgConf.hs:299:35: Not in scope: `includes'
>
>  main/ParsePkgConf.hs:300:35: Not in scope: `hugsOptions'
>
>  main/ParsePkgConf.hs:301:35: Not in scope: `ccOptions'
>
>  main/ParsePkgConf.hs:302:35: Not in scope: `ldOptions'
>
>  main/ParsePkgConf.hs:303:35: Not in scope: `frameworkDirs'
>
>  main/ParsePkgConf.hs:304:35: Not in scope: `frameworks'
>
>  main/ParsePkgConf.hs:305:35: Not in scope: `haddockInterfaces'
>
>  main/ParsePkgConf.hs:306:35: Not in scope: `haddockHTMLs'
>
>  main/ParsePkgConf.hs:307:34: Not in scope: `depends'
>
>  main/ParsePkgConf.hs:320:43: Not in scope: `depends'
>  <<ghc: 73406780 bytes, 11 GCs, 759125/1814528 avg/max bytes residency (3
> samples), 18M in use, 0.00 INIT (0.00 elapsed), 0.09 MUT (0.13 elapsed),
> 0.06 GC (0.07 elapsed) :ghc>>
>  make[2]: *** [stage2/main/ParsePkgConf.o] Error 1
>  make[1]: *** [stage2] Error 2
>  make: *** [bootstrap2] Error 2
>
>  Warning: the following items did not execute (for ghc):
> org.macports.activate org.macports.build org.macports.destroot
> org.macports.install
>  Error: Status 1 encountered during processing.
I got the same error when trying to install ghc 6.8.2 from MacPorts on
OS X 10.4.11/Intel. It seems like the stage2 build is picking up the
wrong version of Cabal from my user packages left over from a previous
GHC 6.8.2 installation. Deleting ~/.ghc fixes the problem. Maybe the
GHC build should be changed to make sure that it doesn't use user
packages?

/Björn

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: ANN: ghc 6.8.2 from MacPorts

Gregory Wright-2

Hi Björn,

On Apr 24, 2008, at 6:41 AM, Bjorn Bringert wrote:

> On Thu, Mar 6, 2008 at 7:57 PM, Wouter Swierstra <[hidden email]>  
> wrote:
>> Hi Greg,
>>
>> Thanks again for maintaining ghc in macports!
>>
>> I tried installing ghc through macports. Unfortunately, the build  
>> failed
>> with the following error message below. I'd be happy to send you a  
>> complete
>> log, if you think it would help. Many thanks,
>>
>> Wouter
>>
>>
>>
>> main/ParsePkgConf.hs:296:35: Not in scope: `extraLibraries'
>>
>> main/ParsePkgConf.hs:297:35: Not in scope: `extraGHCiLibraries'
>>
>> main/ParsePkgConf.hs:298:35: Not in scope: `includeDirs'
>>
>> main/ParsePkgConf.hs:299:35: Not in scope: `includes'
>>
>> main/ParsePkgConf.hs:300:35: Not in scope: `hugsOptions'
>>
>> main/ParsePkgConf.hs:301:35: Not in scope: `ccOptions'
>>
>> main/ParsePkgConf.hs:302:35: Not in scope: `ldOptions'
>>
>> main/ParsePkgConf.hs:303:35: Not in scope: `frameworkDirs'
>>
>> main/ParsePkgConf.hs:304:35: Not in scope: `frameworks'
>>
>> main/ParsePkgConf.hs:305:35: Not in scope: `haddockInterfaces'
>>
>> main/ParsePkgConf.hs:306:35: Not in scope: `haddockHTMLs'
>>
>> main/ParsePkgConf.hs:307:34: Not in scope: `depends'
>>
>> main/ParsePkgConf.hs:320:43: Not in scope: `depends'
>> <<ghc: 73406780 bytes, 11 GCs, 759125/1814528 avg/max bytes  
>> residency (3
>> samples), 18M in use, 0.00 INIT (0.00 elapsed), 0.09 MUT (0.13  
>> elapsed),
>> 0.06 GC (0.07 elapsed) :ghc>>
>> make[2]: *** [stage2/main/ParsePkgConf.o] Error 1
>> make[1]: *** [stage2] Error 2
>> make: *** [bootstrap2] Error 2
>>
>> Warning: the following items did not execute (for ghc):
>> org.macports.activate org.macports.build org.macports.destroot
>> org.macports.install
>> Error: Status 1 encountered during processing.
>
> I got the same error when trying to install ghc 6.8.2 from MacPorts on
> OS X 10.4.11/Intel. It seems like the stage2 build is picking up the
> wrong version of Cabal from my user packages left over from a previous
> GHC 6.8.2 installation. Deleting ~/.ghc fixes the problem. Maybe the
> GHC build should be changed to make sure that it doesn't use user
> packages?
>
> Björn

I'll see if I can come up with a patch to the build system that avoids  
this.
BTW, what version the Cabal in your user packages?  I was never able to
reproduce this myself --- I probably didn't stumble upon the right  
(i.e., wrong)
combination of cabals.

bw,
Greg


_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: ANN: ghc 6.8.2 from MacPorts

Bjorn Bringert
On Thu, Apr 24, 2008 at 3:25 PM, Gregory Wright <[hidden email]> wrote:

>  On Apr 24, 2008, at 6:41 AM, Bjorn Bringert wrote:
> > On Thu, Mar 6, 2008 at 7:57 PM, Wouter Swierstra <[hidden email]>
> wrote:
> >
> > > Hi Greg,
> > >
> > > Thanks again for maintaining ghc in macports!
> > >
> > > I tried installing ghc through macports. Unfortunately, the build failed
> > > with the following error message below. I'd be happy to send you a
> complete
> > > log, if you think it would help. Many thanks,
> > >
> > > Wouter
> > >
> > >
> > >
> > > main/ParsePkgConf.hs:296:35: Not in scope: `extraLibraries'
> > >
> > > main/ParsePkgConf.hs:297:35: Not in scope: `extraGHCiLibraries'
> > >
> > > main/ParsePkgConf.hs:298:35: Not in scope: `includeDirs'
> > >
> > > main/ParsePkgConf.hs:299:35: Not in scope: `includes'
> > >
> > > main/ParsePkgConf.hs:300:35: Not in scope: `hugsOptions'
> > >
> > > main/ParsePkgConf.hs:301:35: Not in scope: `ccOptions'
> > >
> > > main/ParsePkgConf.hs:302:35: Not in scope: `ldOptions'
> > >
> > > main/ParsePkgConf.hs:303:35: Not in scope: `frameworkDirs'
> > >
> > > main/ParsePkgConf.hs:304:35: Not in scope: `frameworks'
> > >
> > > main/ParsePkgConf.hs:305:35: Not in scope: `haddockInterfaces'
> > >
> > > main/ParsePkgConf.hs:306:35: Not in scope: `haddockHTMLs'
> > >
> > > main/ParsePkgConf.hs:307:34: Not in scope: `depends'
> > >
> > > main/ParsePkgConf.hs:320:43: Not in scope: `depends'
> > > <<ghc: 73406780 bytes, 11 GCs, 759125/1814528 avg/max bytes residency (3
> > > samples), 18M in use, 0.00 INIT (0.00 elapsed), 0.09 MUT (0.13 elapsed),
> > > 0.06 GC (0.07 elapsed) :ghc>>
> > > make[2]: *** [stage2/main/ParsePkgConf.o] Error 1
> > > make[1]: *** [stage2] Error 2
> > > make: *** [bootstrap2] Error 2
> > >
> > > Warning: the following items did not execute (for ghc):
> > > org.macports.activate org.macports.build org.macports.destroot
> > > org.macports.install
> > > Error: Status 1 encountered during processing.
> > >
> >
> > I got the same error when trying to install ghc 6.8.2 from MacPorts on
> > OS X 10.4.11/Intel. It seems like the stage2 build is picking up the
> > wrong version of Cabal from my user packages left over from a previous
> > GHC 6.8.2 installation. Deleting ~/.ghc fixes the problem. Maybe the
> > GHC build should be changed to make sure that it doesn't use user
> > packages?
> >
> > Björn
> >
>
>  I'll see if I can come up with a patch to the build system that avoids
> this.
>  BTW, what version the Cabal in your user packages?  I was never able to
>  reproduce this myself --- I probably didn't stumble upon the right (i.e., wrong)
>  combination of cabals.
Hmm, unfortunately I have deleted ~/.ghc but it may have been Cabal-1.3.7.

/Bjorn

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: ANN: ghc 6.8.2 from MacPorts

Ian Lynagh
In reply to this post by Gregory Wright-2
On Thu, Apr 24, 2008 at 09:25:26AM -0400, Gregory Wright wrote:
>
> I'll see if I can come up with a patch to the build system that avoids  
> this.

I think that this was actually done a while ago:

[pass -no-user-package-conf to ghc-inplace
Simon Marlow <[hidden email]>**20080104162840] {


Thanks
Ian

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: ANN: ghc 6.8.2 from MacPorts

Gregory Wright-2

On Apr 26, 2008, at 4:58 PM, Ian Lynagh wrote:

> On Thu, Apr 24, 2008 at 09:25:26AM -0400, Gregory Wright wrote:
>>
>> I'll see if I can come up with a patch to the build system that  
>> avoids
>> this.
>
> I think that this was actually done a while ago:
>
> [pass -no-user-package-conf to ghc-inplace
> Simon Marlow <[hidden email]>**20080104162840] {
>
>
> Thanks
> Ian

I've patched MacPorts' ghc-6.8.2 to include the -no-user-package-conf
flag.  Wouter, could you check if this fixes the problem you had?

bw,
Greg

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: ANN: ghc 6.8.2 from MacPorts

Wouter Swierstra

On 1 May 2008, at 13:59, Gregory Wright wrote:
>
> I've patched MacPorts' ghc-6.8.2 to include the -no-user-package-conf
> flag.  Wouter, could you check if this fixes the problem you had?

I tried a "port selfupdate" and "port clean --all ghc", followed by a  
"port install ghc". I ran into the error below (seems like another  
file-locking bug).

I Bjorn's advice (getting rid of the .ghc directory) - the build went  
through smoothly.

I'm not sure what's going on here. Hope this helps,

   Wouter

--->  Fetching ghc
--->  Attempting to fetch ghc-6.8.2-src.tar.bz2 from http://haskell.org/ghc/dist/6.8.2/
--->  Attempting to fetch ghc-6.8.2-src-extralibs.tar.bz2 from http://haskell.org/ghc/dist/6.8.2/
--->  Attempting to fetch ghc-6.8.2-darwin-i386-leopard-
bootstrap.tar.bz2 from http://haskell.org/ghc/dist/6.8.2/
--->  Verifying checksum(s) for ghc
--->  Extracting ghc
--->  Applying patches to ghc
--->  Configuring ghc
--->  Building ghc with target all
--->  Staging ghc into destroot
Error: Target org.macports.destroot returned: shell command "cd /opt/
local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/ghc-6.8.2 && make install"  
returned error 2
Command output: Writing new package config file... done.
Installing: /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/lib/
ghc-6.8.2/lib/hpc-0.5.0.0
Registering hpc-0.5.0.0...
if ifBuildable/ifBuildable template-haskell; then \
          cd template-haskell && \
          ../installPackage/installPackage '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/ghc-6.8.2/utils/ghc-pkg/ghc-
pkg-inplace' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/lib/
ghc-6.8.2/package.conf' '' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local' '/opt/
local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local' '/opt/
local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/bin' '/
opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/lib/
ghc-6.8.2/lib' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/lib/
ghc-6.8.2/lib' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/share/
ghc-6.8.2' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/share/doc/
ghc/libraries/$pkg' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/share/doc/
ghc/libraries/$pkg' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/share/doc/
ghc/libraries/$pkg' ; \
        fi
Reading package info from "dist/installed-pkg-config" ... done.
Saving old package config file... done.
Writing new package config file... done.
Installing: /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/lib/
ghc-6.8.2/lib/template-haskell-2.2.0.0
Registering template-haskell-2.2.0.0...
if ifBuildable/ifBuildable readline; then \
          cd readline && \
          ../installPackage/installPackage '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/ghc-6.8.2/utils/ghc-pkg/ghc-
pkg-inplace' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/lib/
ghc-6.8.2/package.conf' '' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local' '/opt/
local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local' '/opt/
local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/bin' '/
opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/lib/
ghc-6.8.2/lib' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/lib/
ghc-6.8.2/lib' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/share/
ghc-6.8.2' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/share/doc/
ghc/libraries/$pkg' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/share/doc/
ghc/libraries/$pkg' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/share/doc/
ghc/libraries/$pkg' ; \
        fi
Reading package info from "dist/installed-pkg-config" ... done.
Saving old package config file... done.
Writing new package config file... done.
Installing: /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/lib/
ghc-6.8.2/lib/readline-1.0.1.0
Registering readline-1.0.1.0...
if ifBuildable/ifBuildable Cabal; then \
          cd Cabal && \
          ../installPackage/installPackage '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/ghc-6.8.2/utils/ghc-pkg/ghc-
pkg-inplace' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/lib/
ghc-6.8.2/package.conf' '' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local' '/opt/
local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local' '/opt/
local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/bin' '/
opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/lib/
ghc-6.8.2/lib' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/lib/
ghc-6.8.2/lib' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/share/
ghc-6.8.2' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/share/doc/
ghc/libraries/$pkg' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/share/doc/
ghc/libraries/$pkg' '/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/share/doc/
ghc/libraries/$pkg' ; \
        fi
Installing: /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_lang_ghc/work/destroot/opt/local/lib/
ghc-6.8.2/lib/Cabal-1.2.3.0
installPackage: copyFile: resource busy (file is locked)

make[1]: *** [install.library.Cabal] Error 1
make: *** [install] Error 1

Error: Status 1 encountered during processing.

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
12