Ticket #1739 (closed merge: fixed)

Opened 1 year ago

Last modified 1 year ago

Can't compile apps with the -fvia-C flag - Can't locate vars.pm

Reported by: guest Assigned to: igloo
Priority: high Milestone: 6.8.1
Component: Compiler Version: 6.8
Severity: normal Keywords:
Cc: audreyt@audreyt.org Difficulty: Unknown
Test Case: Architecture: x86
Operating System: Windows

Description

When I try to compile even the simplest application with the -fvia-C flags, the compilation fails with the following error message:

Can't locate vars.pm in @INC (@INC contains: C:/ghc/ghc-6.8.0.20070925/lib .) at
 C:\ghc\ghc-6.8.0.20070925\ghc-asm line 1289.
BEGIN failed--compilation aborted at C:\ghc\ghc-6.8.0.20070925\ghc-asm line 1289

the app I used to reproduce bug:

main = putStrLn "Hello, World!"

vars.pm is not present in older versions of GHC but they don't have this problem.

Cheers,

Olivier Boudry.

Change History

09/26/07 09:16:46 changed by guest

It looks like 3 "use vars ..." instructions made their way into the ghc-asm perl script (lines 1289, 1866 and 1882). According to comments they may be unused (# Unused?).

I tried to comment out the 3 "use vars ..." instructions and could compile using the -fvia-C option.

Cheers,

Olivier.

09/27/07 03:34:16 changed by simonmar

  • priority changed from normal to high.
  • cc set to audreyt@audreyt.org.
  • milestone set to 6.8.1.

Audrey - you added those 'use vars' statements, are they necessary?

09/27/07 03:48:42 changed by simonmar

  • owner set to simonmar.

10/08/07 05:41:23 changed by simonmar

  • status changed from new to closed.
  • resolution set to fixed.

I believe I've fixed this.

Mon Oct  8 12:57:40 BST 2007  Simon Marlow <simonmar@microsoft.com>
  * comment-out "use vars" in 3 places (see #1739)

10/08/07 06:16:58 changed by simonmar

  • status changed from closed to reopened.
  • type changed from bug to merge.
  • resolution deleted.

oops, need to merge this one

10/08/07 06:17:13 changed by simonmar

  • status changed from reopened to new.
  • owner changed from simonmar to igloo.

10/14/07 07:50:08 changed by igloo

  • status changed from new to closed.
  • resolution set to fixed.

Merged