Opened 11 years ago

Closed 11 years ago

#2832 closed merge (fixed)

GHC -split-objs, Doesn't Print Error If GHC Built With SplitObjs = NO.

Reported by: dejones Owned by: igloo
Priority: normal Milestone: 6.10.2
Component: Compiler Version: 6.11
Keywords: split-objs, ghc Cc: marlowsd@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


If GHC is called with flag -split-objs but GHC was built with SplitObjs = NO, then GHC simply ignores the -split-objs flag; however, GHC should print an error message and exit, stating that GHC was built without support for split objects.

Please refer to the thread on the gtk2hs-users mailing list ([Gtk2hs-users] Gtk2Hs Linker Errors, Simple Window from Tutorial) for a test case and the resulting linker problems that occurred when building gtk2hs.

Change History (5)

comment:2 Changed 11 years ago by simonmar

difficulty: Unknown
Milestone: 6.10.2

SplitObjs is overloaded: it means both enable splitting (-split-objs) and also build the bootlibs with splitting on.

There's no good reason to want to disable splitting support completely, unless the platform doesn't support it. So we should have two separate knobs here.

comment:3 Changed 11 years ago by simonmar

Owner: set to simonmar

comment:4 Changed 11 years ago by simonmar

Owner: changed from simonmar to igloo
Type: bugmerge


Wed Mar 11 11:00:58 GMT 2009  Simon Marlow <>
  * FIX #2832: Setting SplitObjs=NO doesn't disable -split-objs in GHC
  Now ghc --info reports whether-split-objs is supported, rather than
  whether the libraries were built using -split-objs.

comment:5 Changed 11 years ago by igloo

Resolution: fixed
Status: newclosed


Note: See TracTickets for help on using tickets.