Opened 9 years ago

Closed 9 years ago

Last modified 7 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: 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 9 years ago by simonmar

  • Resolution set to fixed
  • Status changed from new to closed

I fixed this recently while fixing #249

comment:2 Changed 7 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:3 Changed 7 years ago by simonmar

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