Opened 6 years ago

Closed 5 years ago

#5328 closed feature request (fixed)

Include compiler version in ABI hash

Reported by: nomeata Owned by: simonmar
Priority: high Milestone: 7.4.1
Component: Compiler Version: 7.0.4
Keywords: Cc: 633828@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:



as outlined in the discussion at, it would be beneficial if the ABI hash of packages would change if compiled by a different version of the compiler – after all, the interface files of such a package would not be usable any more.

Debian uses the abi hashes to detect what needs to be rebuilt, hence we have an interest in this.

The attached patch has been applied to ghc in Debian unstable already, and I’d greatly appreciate if it or something with the same effect would enter the main line.

Attachments (1)

hash-version-number (457 bytes) - added by nomeata 6 years ago.

Download all attachments as: .zip

Change History (7)

Changed 6 years ago by nomeata

comment:1 Changed 6 years ago by igloo

  • Milestone set to 7.4.1
  • Priority changed from normal to high
  • Status changed from new to patch

comment:2 Changed 6 years ago by simonmar

  • Owner set to simonmar

comment:3 Changed 6 years ago by marlowsd@…

commit d80e66f9e838c0641fbe5a4757e9d69b1e85ff67

Author: Simon Marlow <>
Date:   Tue Jul 19 15:55:40 2011 +0100

    Factor the GHC version into the hash generated by --abi-hash (#5328)

 ghc/Main.hs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

comment:4 Changed 6 years ago by simonmar

  • Status changed from patch to merge

let's merge this into 7.2.1 to help out the Debian guys.

comment:5 Changed 6 years ago by nomeata

Thanks, appreciated!

comment:6 Changed 5 years ago by igloo

  • Resolution set to fixed
  • Status changed from merge to closed
Note: See TracTickets for help on using tickets.