RE: Fix for : Build failure on Windows (and others).

Simon Peyton-Jones <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <59543203684B2244980D7E4057D5FBC13F7B134B@DB3EX14MBXC306.europe.corp.microsoft.com>
Erik

I hereby award you the title of GHC Build System Meister.  I would never have found this in a million years, but your patch indeed solves the problem.  Thank you.

(Mind you, all is not yet well, as my next message shows.)

Simon

| -----Original Message-----
| From: [email protected] [mailto:[email protected]]
| On Behalf Of Erik de Castro Lopo
| Sent: 15 December 2012 17:38
| To: Ian Lynagh
| Cc: [email protected]
| Subject: Fix for : Build failure on Windows (and others).
| 
| Hi all,
| 
| I have a fix for this. It seems that just recently (since
| bd8f7fc56b84369f4e820263c0bcdc85760de6d4) ghc has started calling gcc
| with extra comand line parameters:
| 
|     -x assembler
| 
| From the gcc man page
| 
|     -x language
|        Specify explicitly the language for the following input files
|        (rather than letting the compiler choose a default based on
|        the file name suffix).  This option applies to all following
|        input files until the next -x option.  Possible values for
|        language are:
| 
|          c  c-header  cpp-output
|          c++  c++-header  c++-cpp-output
|          objective-c  objective-c-header  objective-c-cpp-output
|          objective-c++ objective-c++-header objective-c++-cpp-output
|          assembler  assembler-with-cpp
|          ada
|          f77  f77-cpp-input f95  f95-cpp-input
|          go
|          java
| 
| The attached patch replaces '-x assembler' with '-x assembler-with-cpp'
| and fixes the problem for me on powerpc.
| 
| Erik
| --
| ----------------------------------------------------------------------
| Erik de Castro Lopo
| http://www.mega-nerd.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.