Skip to content

Using -prof -auto-all can generate name clashes

Here is a simple example:


module A where

afoo :: Bool -> Bool afoo x = x

module Aa where

foo :: Int -> Int foo x = x

import A import Aa

main = print 42

Compile with 'ghc -prof -auto-all --make Main.hs' and observe:

A.o:fake:(.data+0x30): multiple definition of `Aafoo_cc'

Aa.o:fake:(.data+0x30): first defined here


-- Lennart

Trac metadata
Trac field Value
Version 6.7
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information