Ticket #2832 (closed merge: fixed)

Opened 4 years ago

Last modified 4 years ago

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: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

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

Changed 4 years ago by simonmar

  • difficulty set to Unknown
  • milestone set to 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.

Changed 4 years ago by simonmar

  • owner set to simonmar

Changed 4 years ago by simonmar

  • owner changed from simonmar to igloo
  • type changed from bug to merge

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.

Changed 4 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

Merged.

Note: See TracTickets for help on using tickets.