Ticket #2566 (closed merge: fixed)

Opened 5 years ago

Last modified 5 years ago

"ghc -c foo.bar" silently does nothing

Reported by: igloo Owned by: igloo
Priority: normal Milestone: 6.10.1
Component: Driver Version: 6.8.3
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

ghc -c foo.bar silently does nothing. It thinks that foo.bar is an extra file to link, but -c means "do not link".

Instead, it should give an error (or at the very least, a warning).

Change History

Changed 5 years ago by simonmar

  • owner set to simonmar

Changed 5 years ago by simonmar

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

Fixed.

Tue Sep 23 15:49:56 BST 2008  Simon Marlow <simonmar@microsoft.com>
  * #2566: emit a warning for 'ghc -c foo.bar'
  
  $ ghc -c foo.bar
  Warning: the following files would be used as linker inputs, but linking is not being done: foo.bar
  ghc: no input files
  Usage: For basic information, try the `--help' option.

testsuite:

Tue Sep 23 15:01:20 BST 2008  Simon Marlow <simonmarhaskell@gmail.com>          
  * add test for #2566, also enable driver100 which wasn't being run

Changed 5 years ago by igloo

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

Merged.

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.