Ticket #5889 (new bug)

Opened 15 months ago

Last modified 9 months ago

-fno-prof-count-entries leads to linking errors

Reported by: akio Owned by:
Priority: normal Milestone: 7.6.2
Component: Compiler Version: 7.4.1
Keywords: Cc:
Operating System: Linux Architecture: x86_64 (amd64)
Type of failure: GHC rejects valid program Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

When I compile the attached program with a certain set of flags, I get a linking error.

% ghc -O -prof -fprof-auto -fno-prof-count-entries -fforce-recomp main.hs                           
[1 of 2] Compiling Foo              ( Foo.hs, Foo.o )
[2 of 2] Compiling Main             ( main.hs, main.o )
Linking main ...
main.o: In function `s1uR_info':
(.text+0xcc): undefined reference to `Foo_makePairzitotal_C0_cc'
collect2: ld returned 1 exit status

Attachments

main.hs Download (140 bytes) - added by akio 15 months ago.
main.hs
Foo.hs Download (265 bytes) - added by akio 15 months ago.
Foo.hs

Change History

Changed 15 months ago by akio

main.hs

Changed 15 months ago by akio

Foo.hs

Changed 11 months ago by pcapriotti

  • difficulty set to Unknown
  • milestone set to 7.6.1

Thanks for the report.

Changed 9 months ago by igloo

  • milestone changed from 7.6.1 to 7.6.2
Note: See TracTickets for help on using tickets.