ANN: ghc 6.8.2 from MacPorts
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
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 <gwright@comcast.net> 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 Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
-- Jinwoo Lee Always remember that you are unique. Just like everyone else.
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
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.
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
On Thu, Mar 6, 2008 at 7:57 PM, Wouter Swierstra <wss@cs.nott.ac.uk> 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
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 <wss@cs.nott.ac.uk> 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
On Thu, Apr 24, 2008 at 3:25 PM, Gregory Wright <gwright@comcast.net> wrote:
On Apr 24, 2008, at 6:41 AM, Bjorn Bringert wrote:
On Thu, Mar 6, 2008 at 7:57 PM, Wouter Swierstra <wss@cs.nott.ac.uk> 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
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 <simonmar@microsoft.com>**20080104162840] { Thanks Ian
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 <simonmar@microsoft.com>**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
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.
Hi Wouter, On May 1, 2008, at 11:50 AM, Wouter Swierstra wrote:
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
<snip>
'/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.
Hmmm. If I understand correctly, doing a "port selfupdate" and "port clean --all" gave a locking bug, but after you deleted .ghc, everything worked properly? The locking bug looks like #2134, which is fixed by a patch in Macports' ghc-6.8.2. The patch strictifies a readFile invocation in Cabal, so probably you were still using the out-of-date Cabal installed as a user package. There are two possible causes: either -no-user-package-conf has a bug and doesn't always work right, or you still have the previous revision of the ghc port, before the -no- user-package-conf patch. The latter can happen if there was some problem on the Macports server that delayed indexing the new portfile and serving it as a selfupdate. Can you do a "port installed ghc" and verify that you have revision 3? Best WIshes, Greg
Hi Greg, On 2 May 2008, at 13:47, Gregory Wright wrote:
Hmmm. If I understand correctly, doing a "port selfupdate" and "port clean --all" gave a locking bug, but after you deleted .ghc, everything worked properly?
Yes. I wouldn't worry about it too much. Somehow the problem only pops up if you have an existing ghc installation and a newish Cabal. And even then, there's an easy fix.
Can you do a "port installed ghc" and verify that you have revision 3?
The following ports are currently installed: ghc @6.8.2_3+darwin_9_i386 (active) That looks ok to me... Thanks again for your help! Wouter This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
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")) ,)))))
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.
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
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.
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 Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
On 3/17/08, Chris Kuklewicz <haskell@list.mightyreason.com> 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.
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... 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... 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
participants (10)
-
Alfonso Acosta -
Bjorn Bringert -
Chris Kuklewicz -
Christian Maeder -
Gregory Wright -
Ian Lynagh -
Jinwoo Lee -
Wilson MacGyver -
Wouter Swierstra -
Wouter Swierstra