Opened 9 years ago

Closed 9 years ago

Last modified 10 months ago

#4386 closed bug (fixed)

Missing FFI flag in ghc-pkg/Main.hs

Reported by: nsch Owned by: nsch
Priority: normal Milestone:
Component: Build System (make) Version: 7.1
Keywords: Cc: mail@…
Operating System: Windows Architecture: x86
Type of failure: Building GHC failed Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

The current HEAD fails to build with:

$ ./configure && make
[...]
[26 of 26] Compiling Main             ( utils\ghc-pkg\Main.hs, bootstrapping\Main.o )

utils\ghc-pkg\Main.hs:1511:8: parse error on input `import'
make[1]: *** [utils/ghc-pkg/dist/build/ghc-pkg.exe.exe] Error 1
make: *** [all] Error 2

Attachments (1)

missing-ffi.patch (159.8 KB) - added by nsch 9 years ago.
FIX

Download all attachments as: .zip

Change History (5)

comment:1 Changed 9 years ago by nsch

Cc: mail@… added
Owner: set to nsch

Changed 9 years ago by nsch

Attachment: missing-ffi.patch added

FIX

comment:2 Changed 9 years ago by nsch

Status: newpatch

Everything needed was a simple change from

{-# LANGUAGE PatternGuards, CPP #-}

to

{-# LANGUAGE PatternGuards, CPP, ForeignFunctionInterface #-}

in the utils/ghc-pkg/Main.hs

comment:3 Changed 9 years ago by igloo

Resolution: fixed
Status: patchclosed

Thanks for the report; fixed by:

Tue Oct 12 12:21:11 BST 2010  Ian Lynagh <igloo@earth.li>
  * Fix build on Windows: ghc-pkg/Main.hs needs ForeignFunctionInterface

comment:4 Changed 10 months ago by bgamari

Component: Build SystemBuild System (make)

The new Hadrian build system has been merged. Relabeling the tickets concerning the legacy make build system to prevent confusion.

Note: See TracTickets for help on using tickets.