Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#1202 closed bug (fixed)

Using -prof -auto-all can generate name clashes

Reported by: guest Owned by:
Priority: normal Milestone:
Component: Compiler Version: 6.7
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


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

Change History (3)

comment:1 Changed 10 years ago by simonmar

Resolution: fixed
Status: newclosed

I fixed this recently while fixing #249

comment:2 Changed 9 years ago by simonmar

Architecture: UnknownUnknown/Multiple

comment:3 Changed 9 years ago by simonmar

Operating System: UnknownUnknown/Multiple
Note: See TracTickets for help on using tickets.