Re: [GHC] #957: Build failure in Cabal/cabal-setup: -lgmp doesn't honor LDFLAGS
#957: Build failure in Cabal/cabal-setup: -lgmp doesn't honor LDFLAGS --+- Reporter: [EMAIL PROTECTED] | Owner: Type: bug | Status: new Priority: normal| Milestone: 6.6.1 Component: Build System |Version: 6.6 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase: N/A | Architecture: x86 Os: FreeBSD | --+- Comment (by [EMAIL PROTECTED]): The FreeBSD GHC port includes a patch to fix this problem. Basically, it adds -L/usr/local/lib to the ld-options config in ghc/rts/package.conf.in. See the patch here: http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/ghc/files/ And the post-patch target of the port's Makefile. I made this change manually, and my build of ghc-6.6 appears to be working properly in this regard. I hope this is helpful. Thanks! -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/957 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: Fix ghc-6.6 darcs-all for Mac OS X 10.4
On Thu, Nov 23, 2006 at 02:31:16PM +0100, Thorkil Naur wrote: The following patch fixes ghc-6.6 darcs-all for Mac OS X 10.4. Applied, thanks! Ian ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
[GHC] #1030: ghc-6.6 crashed after being built on linux (fedora core)
#1030: ghc-6.6 crashed after being built on linux (fedora core) -+-- Reporter: newsham | Owner: Type: bug | Status: new Priority: normal| Milestone: Component: Compiler | Version: 6.6 Severity: normal|Keywords: crash Difficulty: Unknown |Testcase: Architecture: x86 | Os: Linux -+-- I downloaded ghc-6.6 source and built it from ghc-6.4.2 (which I previously built on this same machine). The newly built binary doesnt work. [EMAIL PROTECTED] ghc-6.6 Segmentation fault Upon investigation it looks like the stage1 compiler doesnt crash but the stage2 compiler does: [EMAIL PROTECTED] compiler/stage1/ghc-6.6 ghc-6.6: missing -Bdir option [EMAIL PROTECTED] compiler/stage2/ghc-6.6 Segmentation fault [EMAIL PROTECTED] gdb compiler/stage2/ghc-6.6 GNU gdb Red Hat Linux (6.0post-0.20040223.19rh) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-redhat-linux-gnu...(no debugging symbols found)...Using host libthread_db library /lib/libthread_db.so.1. (gdb) run Starting program: /root/src/ghc-6.6/compiler/stage2/ghc-6.6 Error while mapping shared library sections: : Success. Error while reading shared library symbols: : No such file or directory. (no debugging symbols found)...(no debugging symbols found)...[Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 2783)] Error while reading shared library symbols: : No such file or directory. Error while reading shared library symbols: : No such file or directory. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 2783)] 0x00421d3b in __pthread_clock_gettime () from /lib/i686/libpthread.so.0 (gdb) where #0 0x00421d3b in __pthread_clock_gettime () from /lib/i686/libpthread.so.0 #1 0x00dc0331 in clock_gettime () from /lib/i686/librt.so.1 #2 0x0888fb4d in getThreadCPUTime () #3 0xfef8a508 in ?? () #4 0x0888fe26 in initMutex () #5 0x0a5bddd4 in ?? () #6 0x in ?? () (gdb) x/32x $esp 0xfef8a3c4: 0x1712409a 0x 0x0003 0x29a79300 0xfef8a3d4: 0x006ec840 0x00421cf0 0x00dc3ff4 0x0003 0xfef8a3e4: 0x 0xfef8a428 0x00dc0331 0x0003 0xfef8a3f4: 0x29a79300 0x 0xfef8a448 0x00dbc7ec 0xfef8a404: 0x0a5bdd88 0x29a79300 0x 0x 0xfef8a414: 0x006ec840 0x 0x0a5bdd88 0xfef8a4f0 0xfef8a424: 0x0001 0xfef8a508 0x0888fb4d 0x0003 0xfef8a434: 0xfef8a448 0xfef8a508 0x0888fe26 0x0a5bddd4 (gdb) x/4i $eip 0x421d3b __pthread_clock_gettime+75: mov%eax,(%edx) 0x421d3d __pthread_clock_gettime+77: mov0x8(%ebp),%edx 0x421d40 __pthread_clock_gettime+80: mov%ecx,0xc(%esp) 0x421d44 __pthread_clock_gettime+84: mov%esi,(%esp) (gdb) info reg eax0x0 0 ecx0x29a79300 698848000 edx0x0 0 ebx0x424ff4 4345844 esp0xfef8a3c4 0xfef8a3c4 ebp0xfef8a3e8 0xfef8a3e8 esi0x1712409a 387072154 edi0x0 0 eip0x421d3b 0x421d3b eflags 0x10286 66182 cs 0x73 115 ss 0x7b 123 ds 0x7b 123 es 0x7b 123 fs 0x0 0 gs 0x33 51 About my environment: [EMAIL PROTECTED] uname -a Linux discover.x0d99.com 2.6.5-1.358 #1 Sat May 8 09:04:50 EDT 2004 i686 athlon i386 GNU/Linux [EMAIL PROTECTED] cat /etc/fedora-release Fedora Core release 2 (Tettnang) [EMAIL PROTECTED] gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --disable-libunwind-exceptions --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7) -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1030 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
[GHC] #1031: ghc 6.6 impossible happened
#1031: ghc 6.6 impossible happened -+-- Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone: Component: Compiler | Version: 6.6 Severity: normal|Keywords: Difficulty: Unknown |Testcase: Architecture: Unknown | Os: Unknown -+-- {{{ ghc-6.6: panic! (the 'impossible' happened) (GHC version 6.6 for i386-unknown-linux): cgPanic tpl{v sVs} [lid] static binds for: main:Util.RWS.runRWS'{v rpz} [gid] main:Util.RWS.$f4{v rv4} [gid] main:Util.RWS.$f5{v rva} [gid] local binds for: SRT label main:Util.RWS.$f3{v ruN}_srt }}} the file which caused it is: {{{ -- modification of Control.Monad.RWS to make it strict in its fields, as well as use unboxed tuples internally module Util.RWS ( RWS, module Control.Monad.Reader, module Control.Monad.Writer, module Control.Monad.State, ) where import Prelude import Control.Monad import Control.Monad.Fix import Control.Monad.Trans import Control.Monad.Reader import Control.Monad.Writer import Control.Monad.State import Data.Monoid newtype RWS r w s a = RWS { runRWS' :: r - s - (# a, s, w #) } runRWS x r s = case runRWS' x r s of (# a, b, c #) - (a,b,c) instance Functor (RWS r w s) where fmap f m = RWS $ \r s - let (# a, s', w #) = runRWS' m r s in s' `seq` w `seq` (# f a, s', w #) instance (Monoid w) = Monad (RWS r w s) where return a = RWS $ \_ s - (# a, s, mempty #) m = k = RWS $ \r s - case runRWS' m r s of (# a, s', w #) - case runRWS' (k a) r s' of (# b, s'', w' #) - let w'' = w `mappend` w' in w'' `seq` (# b, s'', w'' #) --instance (Monoid w) = MonadFix (RWS r w s) where -- mfix f = RWS $ \r s - let (a, s', w) = runRWS (f a) r s in (a, s', w) instance (Monoid w) = MonadReader r (RWS r w s) where ask = RWS $ \r s - (# r, s, mempty #) local f m = RWS $ \r s - let r' = f r in r' `seq` runRWS' m r' s instance (Monoid w) = MonadWriter w (RWS r w s) where tell w = RWS $ \_ s - (# (), s, w #) listen m = RWS $ \r s - case runRWS' m r s of (# a, s', w #) - (# (a, w), s', w #) pass m = RWS $ \r s - case runRWS' m r s of (# (a, f), s', w #) - let w' = f w in w' `seq` (# a, s', w' #) instance (Monoid w) = MonadState s (RWS r w s) where get = RWS $ \_ s - (# s, s, mempty #) put s = RWS $ \_ _ - s `seq` (# (), s, mempty #) }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1031 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] #1031: ghc 6.6 impossible happened
#1031: ghc 6.6 impossible happened --+- Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone: Component: Compiler |Version: 6.6 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase:| Architecture: Unknown Os: Unknown | --+- -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1031 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] #1031: ghc 6.6 impossible happened
#1031: ghc 6.6 impossible happened --+- Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone: Component: Compiler |Version: 6.6 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase:| Architecture: Unknown Os: Unknown | --+- Comment (by guest): this bug is from John Meacham [EMAIL PROTECTED] -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1031 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