Gregory Wright | 1 Apr 2010 03:10
Favicon

Re: Profiling bug in 6.10.4


On 3/31/10 11:44 AM, Ian Lynagh wrote:
> On Mon, Mar 22, 2010 at 02:54:26PM -0400, Gregory Wright wrote:
>    
>> Now they seem to both be correct.  The key value is at the bottom of
>> column 8.  This should be 2.386e-1
>> (which means that 23.86 percent of the protons in the early universe end
>> up as helium).  So it
>> seems that this is a problem either with 6.10.4, or with OS X.
>>
>> Quite strange.  I will try to get 6.12 building on my machine to see if
>> the problem persists.
>>      
> It would also be worth trying without the -optc-O3 and -optc-ffast-math
> flags, as the different code generated may confuse the mangler.
>
> If none of that helps, can you file a ticket please? If you can boil it
> down to a small self-contained testcase (in particular, removing the
> hmatrix dependency, if necessary by inlining code you need from it)
> that would make it easier to investigate.
>
>
> Thanks
> Ian
>
>
>    
Removing -optc-O3 and -optc-ffast-math did not help.  In fact, I took at 
all of the
ghc options I was passing and the problem is still there. I will try to 
(Continue reading)

Ian Lynagh | 1 Apr 2010 14:28
Picon
Gravatar

ANNOUNCE: GHC 6.12.2 Release Candidate 1


Hi all,

We are pleased to announce the first release candidate for GHC 6.12.2:

    http://www.haskell.org/ghc/dist/6.12.2-rc1/

As well as the source tarball:
    ghc-6.12.1.20100330-src.tar.bz2
there are installers for Windows (i386) and OS X (i386), and binary
distributions for x86_64/Linux and i386/Linux.

Please test as much as possible; bugs are much cheaper if we find them
before the release!

Thanks
Ian, on behalf of the GHC team
Ian Lynagh | 1 Apr 2010 14:34
Picon
Gravatar

Re: Plans for GHC 6.12.2

On Fri, Mar 26, 2010 at 07:31:20AM +0900, Yusaku Hashimoto wrote:
> How about dynamic libraries on Mac?
> 
> http://hackage.haskell.org/trac/ghc/ticket/3550
> 
> If the patch works fine, please include it in the next release.

I wasn't able to get this done in time, sorry.

Thanks
Ian
Simon Marlow | 1 Apr 2010 16:40
Picon

Re: Profiling bug in 6.10.4

On 01/04/2010 02:10, Gregory Wright wrote:
>
> On 3/31/10 11:44 AM, Ian Lynagh wrote:
>> On Mon, Mar 22, 2010 at 02:54:26PM -0400, Gregory Wright wrote:
>>> Now they seem to both be correct. The key value is at the bottom of
>>> column 8. This should be 2.386e-1
>>> (which means that 23.86 percent of the protons in the early universe end
>>> up as helium). So it
>>> seems that this is a problem either with 6.10.4, or with OS X.
>>>
>>> Quite strange. I will try to get 6.12 building on my machine to see if
>>> the problem persists.
>> It would also be worth trying without the -optc-O3 and -optc-ffast-math
>> flags, as the different code generated may confuse the mangler.
>>
>> If none of that helps, can you file a ticket please? If you can boil it
>> down to a small self-contained testcase (in particular, removing the
>> hmatrix dependency, if necessary by inlining code you need from it)
>> that would make it easier to investigate.
>>
>>
>> Thanks
>> Ian
>>
>>
> Removing -optc-O3 and -optc-ffast-math did not help. In fact, I took at
> all of the
> ghc options I was passing and the problem is still there. I will try to
> reduce the failure
> to a self contained testcase. I don't use much from hmatrix --- aside
(Continue reading)

Vladimir Reshetnikov | 3 Apr 2010 15:40
Picon
Gravatar

Different behavior of GHC 6.10.1 and Hugs (Sep 2006)

Hi list,


GHC 6.10.1:

Prelude> :t let f x y = return x == return y in f
let f x y = return x == return y in f :: (Eq (m a), Monad m) => a -> a -> Bool

Hugs (Sep 2006):

Hugs> :t let f x y = return x == return y in f
ERROR - Ambiguous type signature in inferred type
*** ambiguous type : (Eq (a b), Monad a) => b -> b -> Bool
*** assigned to    : f

Who is right?

--
Thanks
Vladimir
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users <at> haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Gracjan Polak | 5 Apr 2010 11:43
Picon

ClockTime closure linking issue


Hi all,

Probable bug in GHC, I want to inquire before I report it proper. Did anybody
see something like this:

c:\Sources\happstack\happstack\templates\project>cabal build
[1 of 1] Compiling Main             ( Setup.hs, dist\setup\Main.o )
Linking .\dist\setup\setup.exe ...
Preprocessing executables for guestbook-1.0...
Building guestbook-1.0...
[11 of 11] Compiling Main             ( src\Main.hs, dist\build\guestbook-server
\guestbook-server-tmp\Main.o )
Linking dist\build\guestbook-server\guestbook-server.exe ...
dist\build\guestbook-server\guestbook-server-tmp\GuestBook\State2.o:fake:(.text+
0x6d89): undefined reference to `happstackzm0zi4zi3_HappstackziStateziClockTime_
constrZMabmKZN_closure'
dist\build\guestbook-server\guestbook-server-tmp\GuestBook\State2.o:fake:(.text+
0x6dd1): undefined reference to `happstackzm0zi4zi3_HappstackziStateziClockTime_
dataTypeZMabmJZN_closure'
[...lots of same messages skipped...]
collect2: ld returned 1 exit status

Application is from

http://patch-tag.com/r/mae/happstack/snapshot/current/content/pretty/happstack/templates/project

The Glorious Glasgow Haskell Compilation System, version 6.12.1

System Windows Vista 32bit.

Help!

--

-- 
Gracjan
Philip Weaver | 5 Apr 2010 12:01
Picon
Gravatar

GHC internal error

Hi all,

A program that I built with GHC is crashing at runtime with the following error:

    internal error: eval_thunk_selector: strange selectee 12

I have not found much via Google, just an old post regarding ghc 6.0 that recommends cleaning and rebuilding.  I have cleaned the build directory and re-built the executable, and I still get the error.

The program is a compiler, and this error began showing up after I added support for memoization of results using the ST Monad and STRefs.  For example, the following function creates a reference to a thunk:

newMutableRef m
  = do ref <- newSTRef $ error "access ref too soon!"
       let m' = do r <- m
                   writeSTRef ref (return r)
                   return r
       writeSTRef ref m'
       return $ ref

Here's some information about my system:
  • GHC 6.12.1
  • Mac OS X 10.6.3 (Snow Leopard)
So, what could cause this error?  Any suggestions that can help me narrow down the problem would be greatly appreciated.  If this is in fact a GHC bug, I'd like to find a workaround for now and also reproduce it in a small example so I can file a bug report.

- Philip

_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users <at> haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Jeremy Shaw | 5 Apr 2010 14:37
Gravatar

Re: ClockTime closure linking issue

My first guess is that it is another instance of this bug:


You might be able to use this option:

        --haddockdir=DIR        installation directory for haddock interfaces

though perhaps that flag is only in the latest version of cabal / ghc.

- jeremy

On Apr 5, 2010, at 4:43 AM, Gracjan Polak wrote:


Hi all,

Probable bug in GHC, I want to inquire before I report it proper. Did anybody
see something like this:


c:\Sources\happstack\happstack\templates\project>cabal build
[1 of 1] Compiling Main             ( Setup.hs, dist\setup\Main.o )
Linking .\dist\setup\setup.exe ...
Preprocessing executables for guestbook-1.0...
Building guestbook-1.0...
[11 of 11] Compiling Main             ( src\Main.hs, dist\build\guestbook-server
\guestbook-server-tmp\Main.o )
Linking dist\build\guestbook-server\guestbook-server.exe ...
dist\build\guestbook-server\guestbook-server-tmp\GuestBook\State2.o:fake:(.text+
0x6d89): undefined reference to `happstackzm0zi4zi3_HappstackziStateziClockTime_
constrZMabmKZN_closure'
dist\build\guestbook-server\guestbook-server-tmp\GuestBook\State2.o:fake:(.text+
0x6dd1): undefined reference to `happstackzm0zi4zi3_HappstackziStateziClockTime_
dataTypeZMabmJZN_closure'
[...lots of same messages skipped...]
collect2: ld returned 1 exit status

Application is from

http://patch-tag.com/r/mae/happstack/snapshot/current/content/pretty/happstack/templates/project

The Glorious Glasgow Haskell Compilation System, version 6.12.1

System Windows Vista 32bit.

Help!

--
Gracjan




_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users <at> haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users <at> haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Gracjan Polak | 5 Apr 2010 15:03
Picon

Re: ClockTime closure linking issue


Jeremy Shaw <jeremy <at> n-heptane.com> writes:

> 
> My first guess is that it is another instance of this bug:
> http://hackage.haskell.org/trac/ghc/ticket/3799

Seems like putting

documentation: True

into

C:\Users\gracjan\AppData\Roaming\cabal\config

makes this error stand out

--

-- 
Gracjan
Don Stewart | 5 Apr 2010 20:59
Favicon
Gravatar

Re: GHC internal error

Any 'internal error' is almost certainly an RTS or compiler bug. Can you
make a bug report?

philip.weaver:
> Hi all,
> 
> A program that I built with GHC is crashing at runtime with the following
> error:
> 
>     internal error: eval_thunk_selector: strange selectee 12
> 
> I have not found much via Google, just an old post regarding ghc 6.0 that
> recommends cleaning and rebuilding.  I have cleaned the build directory and
> re-built the executable, and I still get the error.
> 
> The program is a compiler, and this error began showing up after I added
> support for memoization of results using the ST Monad and STRefs.  For example,
> the following function creates a reference to a thunk:
> 
> newMutableRef m
>   = do ref <- newSTRef $ error "access ref too soon!"
>        let m' = do r <- m
>                    writeSTRef ref (return r)
>                    return r
>        writeSTRef ref m'
>        return $ ref
> 
> Here's some information about my system:
> 
>   • GHC 6.12.1
>   • Mac OS X 10.6.3 (Snow Leopard)
> 
> So, what could cause this error?  Any suggestions that can help me narrow down
> the problem would be greatly appreciated.  If this is in fact a GHC bug, I'd
> like to find a workaround for now and also reproduce it in a small example so I
> can file a bug report.
> 
> - Philip
> 

> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users <at> haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Gmane