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:

Description

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.

http://sourceforge.net/mailarchive/forum.php?thread_name=fe05cbe50811301138q474b99c5kf48497d932e7cb14%40mail.gmail.com&forum_name=gtk2hs-users

http://sourceforge.net/mailarchive/forum.php?thread_name=1228147821.13936.78.camel%40aconit&forum_name=gtk2hs-users

http://sourceforge.net/mailarchive/forum.php?thread_name=20081201184819.GB13054%40zombie.inf.tu-dresden.de&forum_name=gtk2hs-users

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

Fixed:

Wed Mar 11 11:00:58 GMT 2009  Simon Marlow <marlowsd@gmail.com>
  * 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

Merged.

Note: See TracTickets for help on using tickets.