Opened 9 years ago

Closed 9 years ago

#5145 closed bug (fixed)

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

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

comment:1 Changed 9 years ago by igloo

Milestone: 7.2.1
Owner: set to igloo
Priority: normalhigh

Thanks for the report.

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

comment:2 Changed 9 years ago by igloo

Resolution: fixed
Status: newclosed

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 ...

comment:3 Changed 9 years ago by dterei

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

comment:4 Changed 9 years ago by dterei

Owner: igloo deleted
Resolution: fixed
Status: closednew

Reopening to track enabling LLVM in unreg mode again.

comment:5 Changed 9 years ago by dterei

Owner: set to dterei

comment:7 Changed 9 years ago by dterei

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.