Ticket #1779 (closed merge: wontfix)

Opened 6 years ago

Last modified 4 years ago

unknown symbol `hs_hpc_module'

Reported by: guest Owned by: igloo
Priority: low Milestone: 6.10 branch
Component: GHCi Version: 6.10.1
Keywords: hpc Cc: leather@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: hpc_ghc_ghci Blocked By:
Blocking: Related Tickets:

Description

During a :load command I got: <interactive>: /home/foo/Bar/Baz.o: unknown symbol `hs_hpc_module'

No test case available

Change History

Changed 6 years ago by AndyGill

  • status changed from new to assigned
  • severity changed from normal to minor
  • priority changed from normal to low
  • owner set to AndyGill
  • keywords hpc added
  • type changed from bug to feature request

(unconfirmed) This happens when someone compilers a module with -fhpc, then uses ghci. ghci and hpc do not mix. A quick recompile fixes things.

Perhaps fixed for ghc-6.9? We want to think about how we offer hpc inside ghci anyway, so I'll leave the feature request as a place holder.

Changed 6 years ago by igloo

  • milestone set to 6.8.2

Can we easily print a more helpful error in 6.8.2?

A real fix can wait for 6.10, like Andy says.

Changed 5 years ago by igloo

See also #1907.

Changed 5 years ago by igloo

  • milestone changed from 6.8.2 to 6.10 branch

At this stage I think we'll just wait for a proper fix.

Changed 5 years ago by AndyGill

  • status changed from assigned to closed
  • resolution set to worksforme

This no longer prints a message, and works just fine, in HEAD.

I compiled a module using -fhpc, then used ghci on another module that used the original module and it ran just fine.

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • status changed from closed to reopened
  • resolution worksforme deleted
  • milestone changed from 6.10 branch to 6.10.1

This is happening with 6.10 and HEAD, currently, on the qq005 test (see log below). Andy - any chance you could look into this?

=====> qq005(hpc)
cd ./quasiquotation/qq005 && '/64playpen/simonmar/nightly/HEAD-cam-04-unx/x86_64-unknown-linux/ghc/stage3-inplace/ghc' -fforce-recomp -dcore-lint -dcmm-lint -Dx86_64_unknown_linux  -dno-debug-output --make -o qq005 Main -O -fhpc   >qq005.comp.stderr 2>&1
Compile failed (status 256) errors were:
[1 of 2] Compiling Expr             ( Expr.hs, Expr.o )
[2 of 2] Compiling Main             ( Main.hs, Main.o )
ghc: ./Expr.o: unknown symbol `hs_hpc_module'
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
Loading package syb ... linking ... done.
Loading package array-0.2.0.0 ... linking ... done.
Loading package packedstring-0.1.0.1 ... linking ... done.
Loading package containers-0.2.0.0 ... linking ... done.
Loading package pretty-1.0.1.0 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package parsec-2.1.0.1 ... linking ... done.

Changed 5 years ago by simonmar

  • type changed from feature request to bug

Changed 5 years ago by igloo

  • milestone changed from 6.10.1 to 6.10.2

Changed 4 years ago by igloo

See also #2730.

Changed 4 years ago by igloo

  • testcase set to hpc_ghc_ghci

I've made a minimal testcase, hpc_ghc_ghci.

In libraries/hpc/tests/ghc_ghci:

$ ../../../../ghc/stage2-inplace/ghc -v0 --interactive B.hs
*B> b
<interactive>: ./A.o: unknown symbol `hs_hpc_module'

$ ../../../../ghc/stage2-inplace/ghc -v0 --interactive B.hs ../../../../rts/Hpc.o 


GHCi runtime linker: fatal error: I found a duplicate definition for symbol
   hs_hpc_rootModule
whilst processing object file
   ../../../../rts/Hpc.o
This could be caused by:
   * Loading two different object files which export the same symbol
   * Specifying the same object file twice on the GHCi command line
   * An incorrect `package.conf' entry, causing some object to be
     loaded twice.
GHCi cannot safely continue in this situation.  Exiting now.  Sorry.

Changed 4 years ago by spl

  • cc leather@… added
  • version changed from 6.9 to 6.10.1

I ran this minimal testcase manually on GHC 6.8.3 and 6.10.1 using MacPorts installations, and it passed both. I also just verified that it failed on GHCi 6.10.1 on Windows.

I think this problem is related to #1907, which we have been experiencing with  EMGM using 6.8.3 and 6.10.1. For both #1907 and this test case, Linux and Windows have failed while MacPorts has not. We have been using GHC, not GHCi, for EMGM.

Has the problem been determined, yet?

Changed 4 years ago by simonmar

  • owner changed from AndyGill to simonmar
  • status changed from reopened to new

I'm validating the fix for this.

Changed 4 years ago by simonmar

  • owner changed from simonmar to igloo
  • type changed from bug to merge

Fixed:

Mon Mar 30 01:44:14 PDT 2009  Simon Marlow <marlowsd@gmail.com>
  * FIX #1779 and qq005: export hs_hpc_module

Changed 4 years ago by igloo

  • milestone changed from 6.10.2 to 6.10 branch

Changed 4 years ago by igloo

  • status changed from new to closed
  • resolution set to wontfix

We won't be merging non-essential fixes into the 6.10 branch any more.

Note: See TracTickets for help on using tickets.