From: Donnie J. <do...@da...> - 2008-12-01 20:37:30
|
Hello Bertram, I filed a bug report for GHC 6.11.x since GHC should print an error message and exit if GHC is compiled without support for split objects and the -split-objs argument is given to GHC. http://hackage.haskell.org/trac/ghc/ticket/2832#preview Thank you all for your help, it is very very much appreciated. __ Donnie Jones On Mon, Dec 1, 2008 at 1:48 PM, Bertram Felgenhauer < ber...@go...> wrote: > Axel Simon wrote: > > On Mon, 2008-12-01 at 08:38 -0500, Donnie Jones wrote: > [snip] > > Something is going wrong during the build. Sometimes one of the tools > > encounters an error but 'make' does not stop. The build then continues > > and in this case it seems like a library is built and everything seems > > fine. Maybe you could check for error messages during the build (there > > will be some warnings about duplicate macro definitions of > > GTK_CHECK_VERSION and similar, these are ok). > > > > Have you disabled split-objs when configuring? Enabling this sometimes > > leads to problems. > > We discussed this on #ghc. There were two surprises: > > - Donnie's ghc was built using fast settings (setting SplitObjs = NO), > which - that's the surprise - has the effect of disabling the > -split-objs option in ghc. > > - split-objs is enabled by default in gtk2hs. (this surprised Duncan at > least) > > So in effect, -split-objs was enabled, and the option got passed to ghc, > but the compiler ignored the flag. As a result, link-splitobjs.sh could > not find the objects. > > > To fix this for ghc 6.8 or later, we can check whether ghc --info > prints a line saying > > ,("Object splitting","YES") > > and disable split-objs if not. > > Alternatively, link-splitobjs.sh could pick up the Foo.o file if the > Foo_split directory turns out to be empty. > > Bertram > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gtk2hs-users mailing list > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtk2hs-users > |