Opened 3 years ago

Closed 11 months ago

Last modified 11 months ago

#7735 closed bug (wontfix)

-fext-core doesn't generate .hcr when .o and .hi files are present

Reported by: kmels Owned by:
Priority: normal Milestone: 7.10.1
Component: External Core Version: 7.6.2
Keywords: Cc:
Operating System: Linux Architecture: x86_64 (amd64)
Type of failure: GHC doesn't work at all Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):


Create a file inside a directory and compile it using -fext-core:

cd /tmp/
mkdir dir
echo "module Main where main = return ()" > dir/Main.hs
ghc --make -fext-core dir/Main.hs 
[1 of 1] Compiling Main             ( dir/Main.hs, dir/Main.o )
Linking dir/Main ...
kmels@kmels-workstelle /tmp $ ls dir/
Main  Main.hcr  Main.hi  Main.hs  Main.o

If the .hcr file is deleted and our program is compiled again with -fext-core, no .hcr file will be generated:

rm dir/Main.hcr 
ghc --make -fext-core dir/Main.hs 
ls dir/
Main  Main.hi  Main.hs  Main.o

The file is generated if you 1. cd to dir/ and 2. ghc --make -fext-core Main.hs

Change History (3)

comment:1 Changed 2 years ago by igloo

  • difficulty set to Unknown
  • Milestone set to 7.8.1

Thanks for the report

comment:2 Changed 18 months ago by thoughtpolice

  • Milestone changed from 7.8.3 to 7.10.1

Moving to 7.10.1

comment:3 Changed 11 months ago by thomie

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

External Core has been removed in commit 5bf22f06ef71f61094de7564dee770f136d5481a. Also see this mailinglist discussion: ​

Last edited 11 months ago by thomie (previous) (diff)
Note: See TracTickets for help on using tickets.