Re: [GHC] #1002: ghc-6.6 sometimes hangs under Solaris
#1002: ghc-6.6 sometimes hangs under Solaris ---+ Reporter: [EMAIL PROTECTED] | Owner: Type: bug| Status: closed Priority: normal | Milestone: 6.6.1 Component: Compiler |Version: 6.6 Severity: normal | Resolution: invalid Keywords: | Difficulty: Unknown Testcase: N/A| Architecture: Multiple Os: Solaris| ---+ Changes (by [EMAIL PROTECTED]): * resolution: = invalid * status: new = closed Comment: close this bug. I could never observe the hanging behaviour again with the threaded RTS. The slow compilation with optimization is gone when I use ghc -M and compile the files individually. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1002 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #1002: ghc-6.6 sometimes hangs under Solaris
#1002: ghc-6.6 sometimes hangs under Solaris ---+ Reporter: [EMAIL PROTECTED] | Owner: Type: bug| Status: new Priority: normal | Milestone: Component: Compiler |Version: 6.6 Severity: normal | Resolution: Keywords: | Difficulty: Unknown Testcase: | Architecture: Multiple Os: Solaris| ---+ Comment (by [EMAIL PROTECTED]): Mere import chasing and linking is fairly fast (regardless of Solaris-ld or GNU-ld) {{{ Linking hets ... real0m46.984s user0m12.137s sys 0m3.180s }}} But last night my ghc-6.6 job hung around for about 2 hours but continued. {{{ [679 of 679] Compiling Main ( hets.hs, hets.o ) Linking hets ... linking ... done. Loading package uni-htk-widgets ... linking ... done. Loading package uni-htk-canvasitems ... linking ... done. Loading package uni-htk-textitems ... linking ... done. Loading package uni-htk-toplevel ... linking ... done. Loading package uni-htk-toolkit ... linking ... done. Loading package uni-htk ... linking ... done. Loading package haskell98 ... linking ... done. Loading package HaXml-1.13.2 ... linking ... done. Loading package uni-server ... linking ... done. Loading package uni-graphs ... linking ... done. Loading package uni-davinci ... linking ... done. real122m20.462s user5m49.133s sys 0m20.322s }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1002 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re[2]: [GHC] #1002: ghc-6.6 sometimes hangs under Solaris
Hello GHC, Thursday, November 16, 2006, 4:47:02 PM, you wrote: But last night my ghc-6.6 job hung around for about 2 hours but continued. real122m20.462s user5m49.133s sys 0m20.322s my unix knowledge is far from perfect, but may be these times means swap trashing? -- Best regards, Bulatmailto:[EMAIL PROTECTED] ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #1002: ghc-6.6 sometimes hangs under Solaris
Claus Reinke schrieb: #1002: ghc-6.6 sometimes hangs under Solaris After compiling 643 modules (in 5 minutes) ghc-6.6 did not finish its batch job. .. I have often seen problems like this with the Solaris linker. (I suspect it must have a super-linear algorithm for resolving symbol references.) It's not a linker problem, ghc-6.6 hangs on other occasions, too. I've tried both linkers, they link with the same speed nowadays. Thanks anyway, Christian Maybe that section should simply be removed? http://haskell.org/haskellwiki/GHC/FAQ#Why_does_linking_take_so_long.3F ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
[GHC] #1002: ghc-6.6 sometimes hangs under Solaris
#1002: ghc-6.6 sometimes hangs under Solaris --+- Reporter: [EMAIL PROTECTED] | Owner: Type: bug| Status: new Priority: normal | Milestone: Component: Compiler | Version: 6.6 Severity: normal |Keywords: Difficulty: Unknown|Testcase: Architecture: Multiple | Os: Solaris --+- After compiling 643 modules (in 5 minutes) ghc-6.6 did not finish it's batch job. (I've killed the job then next morning.) This happened on a PC (i386-solaris2.10). {{{ [643 of 643] Compiling Main ( hets.hs, hets.o ) Linking hets ... gmake: *** [hets] Killed gmake: *** Deleting file `hets' real684m49.318s user5m7.309s sys 0m22.634s }}} I think, I've seen the same happening several times under sparc-solaris. I don't know how to reproduce this. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1002 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #1002: ghc-6.6 sometimes hangs under Solaris
GHC [EMAIL PROTECTED] wrote: #1002: ghc-6.6 sometimes hangs under Solaris After compiling 643 modules (in 5 minutes) ghc-6.6 did not finish its batch job. [643 of 643] Compiling Main ( hets.hs, hets.o ) Linking hets ... gmake: *** [hets] Killed gmake: *** Deleting file `hets' real684m49.318s user5m7.309s sys 0m22.634s I have often seen problems like this with the Solaris linker. (I suspect it must have a super-linear algorithm for resolving symbol references.) The solution for me was to call the linker several times, passing fewer object files to the linker at a time, e.g. using xargs. Maybe the ghc pipeline driver needs to be taught how to do that? Regards, Malcolm ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #1002: ghc-6.6 sometimes hangs under Solaris
#1002: ghc-6.6 sometimes hangs under Solaris After compiling 643 modules (in 5 minutes) ghc-6.6 did not finish its batch job. .. I have often seen problems like this with the Solaris linker. (I suspect it must have a super-linear algorithm for resolving symbol references.) The solution for me was to call the linker several times, passing fewer object files to the linker at a time, e.g. using xargs. Maybe the ghc pipeline driver needs to be taught how to do that? this information is probably out of date by now, but there used to be several bug reports pending for the Solaris linker, of the kind order of magnitude worse than gnu. there also were repeated attempts to fix this in patches, so perhaps this is not the same problem anymore. but you might want to give GNU ld a try, just in case: http://haskell.org/haskellwiki/GHC/FAQ#Why_does_linking_take_so_long.3F something like: GCC_EXEC_PREFIX=path-to-binutils ghc other-options if those Solaris linker issues have been fixed, you might want to update the GHC Faq (I'm not using Solaris at the moment). if those linker issues are still around, and the GNU binutils workaround still saves the day, perhaps that FAQ entry ought to be linked from GHC on Solaris section as well? hth, claus ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs