Ticket #5145 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

ghc 7.1 says "Use -fvia-C instead" but -fvia-C is gone

Reported by: erikd Owned by: dterei
Priority: high Milestone: 7.2.1
Component: Compiler Version: 7.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Compiling on linux-powerpc with "GhcUnregisterised?=YES" I get:

ghc-stage1: panic! (the 'impossible' happened)
  (GHC version 7.1.20110417 for powerpc-unknown-linux):
        This compiler was built without a native code generator
    Use -fvia-C instead

but the -fvia-C option was removed recently.

Change History

Changed 2 years ago by igloo

  • owner set to igloo
  • priority changed from normal to high
  • milestone set to 7.2.1

Thanks for the report.

On an unreg compiler, -fasm and -fllvm should probably just print a warning saying they'll be ignored.

Changed 2 years ago by igloo

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

You now just get a warning:

$ ghc -fasm q.hs

on the commandline:
    Warning: Compiler has no native codegen, so ignoring -fasm
[1 of 1] Compiling Main             ( q.hs, q.o )
Linking q ...

Changed 2 years ago by dterei

LLVM shouldn't be disabled in unreg builds. It works fine in both unreg and reg mode.

Changed 2 years ago by dterei

  • owner igloo deleted
  • status changed from closed to new
  • resolution fixed deleted

Reopening to track enabling LLVM in unreg mode again.

Changed 2 years ago by dterei

  • owner set to dterei

Changed 2 years ago by dterei

Fixed in b72af0e0d698ec06b4fbe86e5a44a116a31f0f94

Changed 2 years ago by dterei

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.