Opened 9 years ago

Closed 8 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 9 years ago.

Download all attachments as: .zip

Change History (7)

Changed 9 years ago by nomeata

Attachment: hash-version-number added

comment:1 Changed 9 years ago by igloo

Milestone: 7.4.1
Priority: normalhigh
Status: newpatch

comment:2 Changed 9 years ago by simonmar

Owner: set to simonmar

comment:3 Changed 9 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 9 years ago by simonmar

Status: patchmerge

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

comment:5 Changed 9 years ago by nomeata

Thanks, appreciated!

comment:6 Changed 8 years ago by igloo

Resolution: fixed
Status: mergeclosed
Note: See TracTickets for help on using tickets.