Re: HEAD build fails on OS X

2013-04-08 Thread Carter Schonwald
Hey all, i seem to be able to get a working build of ghc head on my mac with the merge commit by spj from april 3 that has sha hash: b84da617c4dadcfbf47796e7a75c21d6b4c4947a I've run ghc-stage2 --interactive from the ./inplace director and it seems to work. I will test it more over the next day

Excessive inlining in libraries/time/Data/Time/Format.hs

2013-04-08 Thread Gabor Greif
While investigating the residual problem with #7814, I discovered that there is some excessive inlining going on in libraries/time/Data/Time/Format.hs: wc -l libraries/time/Data/Time/Format.hs libraries/time/dist-install/build/Data/Time/Format.cmm 247 libraries/time/Data/Time/Format.hs

Re: [GHC] #7820: Installing profiling library BREAKS non-profiling executable

2013-04-08 Thread Ryan Newton
By the way, does anyone have a positive example of a package on hackage that (1) uses foreign primops and (2) is robust across a wide variety of platforms and build methods? It would be great to work from such an example. Thanks, -Ryan On Mon, Apr 8, 2013 at 10:57 AM, GHC

integer-simple linker errors?

2013-04-08 Thread Gabor Greif
Hi all, I am getting below errors from libraries/integer-simple. Which integer-gmp / GHC change caused this? I looked briefly, but could not find anything. Thanks, Gabor 0130407.so: undefined reference to `__word_encodeDouble' /libHSinteger-simple-0.1.1.0-ghc7.7.20130407.so: undefined

Re: integer-simple linker errors?

2013-04-08 Thread Ian Lynagh
Hi Gabor, On Mon, Apr 08, 2013 at 08:15:34PM +0200, Gabor Greif wrote: I am getting below errors from libraries/integer-simple. Which integer-gmp / GHC change caused this? I looked briefly, but could not find anything. 0130407.so: undefined reference to `__word_encodeDouble'

Re: integer-simple linker errors?

2013-04-08 Thread Gabor Greif
Hi Ian! Yeah, but why is dynamic different at all? Looking at integer-gmp, it imports __int_encodeFloat instead of __word_encodeFloat. GHC rts exports __int_encodeFloat. How can this even work in the statically linked case? I am very sleepy, otherwise I'd try to build a vanilla OS X GHC with

segfault building on os x

2013-04-08 Thread Carter Schonwald
Hey all, today i've spent a wee bit of time building ghc head 9e460664f3179c53f2f439238929b501691ddf24 (the last commit of april 7th by Gabor) on my mac today, with the quick-llvm build setting, my compilation segfaults towards the end when its building the stage2 libs as follow carter

Stage1Only

2013-04-08 Thread Trevor Elliott
Hi Everyone, I've been trying to produce just a stage1 compiler by setting Stage1Only in my mk/build.mk. What I've been discovering, is that the build system seems to ignore this (or I haven't set it in the right place) and trys to build a stage2 compiler and its associated tools. What is

Re: Stage1Only

2013-04-08 Thread Trevor Elliott
I searched on trac for bugs relating to Stage1Only, and didn't come up with anything, but a google search turned up this: http://hackage.haskell.org/trac/ghc/ticket/7639 I'm going to try passing stage=1 in build.mk. --trevor On 04/08/2013 05:20 PM, Trevor Elliott wrote: Hi Everyone, I've

Re: Stage1Only

2013-04-08 Thread Trevor Elliott
So this did something different, but still tries to build tools like hsc2hs with the stage1 compiler. This won't really work for a target like the HaLVM, as there's no notion of a filesystem in the target environment. So, back to my original question: what's the easiest way to just generate

Re: the cmm pages on the wiki seem out of date

2013-04-08 Thread Simon Marlow
A quick answer is that I put some documentation at the top of compiler/cmm/CmmParse.y that explains the new syntax. That should help you get to grips with the changes. Cheers, Simon On 06/04/13 13:48, Simon Peyton-Jones wrote: Simon Marlow is the man who will really know. He's in