
It seems this patch 50e78dafd0cac5ca3b28ef71559899f179343ddf changed some sed expressions in rts/ghc.mk that seem to be no longer firing on my Mac now. Mac has a different flavor of BSD sed and such. The resulting contents of rts/libs.depend on my build attempt is $ cat rts/libs.depend m dl /Users/nfrisby/Source/ghc-build-trees/vanilla/rts/dist/build It's missing the -l and -L prefices that the sed commands are supposed to add. I can hack around this on my Mac, but I'll leave the fix to someone with some portable sed fu. Thanks.

How would i do this change locally on my local OSX build?
(i'm still getting familiar with ghc's build systems myself, so how to do
the OS X only fix would be dandy :) )
On Mon, Apr 29, 2013 at 2:32 PM, Nicolas Frisby
It seems this patch
50e78dafd0cac5ca3b28ef71559899f179343ddf
changed some sed expressions in rts/ghc.mk that seem to be no longer firing on my Mac now. Mac has a different flavor of BSD sed and such.
The resulting contents of rts/libs.depend on my build attempt is
$ cat rts/libs.depend m dl /Users/nfrisby/Source/ghc-build-trees/vanilla/rts/dist/build
It's missing the -l and -L prefices that the sed commands are supposed to add.
I can hack around this on my Mac, but I'll leave the fix to someone with some portable sed fu.
Thanks.
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs

in rts/ghc.mk, I changed the rts/libs.depend rule to this: # collect the -l and -L flags that we need to link the rts dyn lib. rts/libs.depend : $$(ghc-pkg_INPLACE) "$(ghc-pkg_INPLACE)" --simple-output field rts extra-libraries \ | sed -E 's/([^ ]+)/-l\1/g' > $@ "$(ghc-pkg_INPLACE)" --simple-output field rts library-dirs \ | sed -E 's/([^ ]+)/-L\1/g' >> $@ seemed to work for me. The old pattern used \+ with -e, which some sleuthing shows isn't supported on OS X. HTH. On Mon, Apr 29, 2013 at 5:14 PM, Carter Schonwald < carter.schonwald@gmail.com> wrote:
How would i do this change locally on my local OSX build? (i'm still getting familiar with ghc's build systems myself, so how to do the OS X only fix would be dandy :) )
On Mon, Apr 29, 2013 at 2:32 PM, Nicolas Frisby
wrote: It seems this patch
50e78dafd0cac5ca3b28ef71559899f179343ddf
changed some sed expressions in rts/ghc.mk that seem to be no longer firing on my Mac now. Mac has a different flavor of BSD sed and such.
The resulting contents of rts/libs.depend on my build attempt is
$ cat rts/libs.depend m dl /Users/nfrisby/Source/ghc-build-trees/vanilla/rts/dist/build
It's missing the -l and -L prefices that the sed commands are supposed to add.
I can hack around this on my Mac, but I'll leave the fix to someone with some portable sed fu.
Thanks.
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs

On Mon, Apr 29, 2013 at 01:32:38PM -0500, Nicolas Frisby wrote:
It seems this patch
50e78dafd0cac5ca3b28ef71559899f179343ddf
changed some sed expressions in rts/ghc.mk that seem to be no longer firing on my Mac now. Mac has a different flavor of BSD sed and such.
Sorry; I've pushed a patch to fix this. Thanks Ian

I'm trying to build it now that this patch is in, and i'm getting the
following error at the end of my make
===--- building final phase
make -r --no-print-directory -f ghc.mk phase=final all
"inplace/bin/ghc-stage2" -hisuf hi -osuf o -hcsuf hc -static -H64m -O0
-fllvm -package-name old-time-1.1.0.1 -hide-all-packages -i
-ilibraries/old-time/. -ilibraries/old-time/dist-install/build
-ilibraries/old-time/dist-install/build/autogen
-Ilibraries/old-time/dist-install/build
-Ilibraries/old-time/dist-install/build/autogen
-Ilibraries/old-time/include -optP-include
-optPlibraries/old-time/dist-install/build/autogen/cabal_macros.h -package
base-4.7.0.0 -package old-locale-1.0.0.5 -XHaskell98 -XCPP
-XForeignFunctionInterface -O -fllvm -no-user-package-db -rtsopts
-odir libraries/old-time/dist-install/build -hidir
libraries/old-time/dist-install/build -stubdir
libraries/old-time/dist-install/build -dynamic-too -c
libraries/old-time/dist-install/build/System/Time.hs -o
libraries/old-time/dist-install/build/System/Time.o -dyno
libraries/old-time/dist-install/build/System/Time.dyn_o
make[1]: *** [libraries/old-time/dist-install/build/System/Time.o]
Segmentation fault: 11
make: *** [all] Error 2
i'm building using quick-llvm but otherwise everything was freshly make
cleaned, perl booted, sync-all pulled etc
any ideas on what may be the problem?
thanks
-Carter
On Mon, Apr 29, 2013 at 9:16 PM, Ian Lynagh
On Mon, Apr 29, 2013 at 01:32:38PM -0500, Nicolas Frisby wrote:
It seems this patch
50e78dafd0cac5ca3b28ef71559899f179343ddf
changed some sed expressions in rts/ghc.mk that seem to be no longer firing on my Mac now. Mac has a different flavor of BSD sed and such.
Sorry; I've pushed a patch to fix this.
Thanks Ian
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
participants (3)
-
Carter Schonwald
-
Ian Lynagh
-
Nicolas Frisby