Opened 5 years ago

Closed 3 years ago

#5889 closed bug (fixed)

-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 Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


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 (2)

main.hs (140 bytes) - added by akio 5 years ago.
Foo.hs (265 bytes) - added by akio 5 years ago.

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by akio

Attachment: main.hs added


Changed 5 years ago by akio

Attachment: Foo.hs added


comment:1 Changed 5 years ago by pcapriotti

difficulty: Unknown
Milestone: 7.6.1

Thanks for the report.

comment:2 Changed 4 years ago by igloo


comment:3 Changed 3 years ago by akio

Resolution: fixed
Status: newclosed

I cannot reproduce this error with GHC 7.6.2.

Note: See TracTickets for help on using tickets.