[GHC] #3842: build system does not pass selected gcc when configuring unix package

GHC trac at galois.com
Tue Jan 26 18:00:29 EST 2010


#3842: build system does not pass selected gcc when configuring unix package
---------------------------------+------------------------------------------
    Reporter:  duncan            |       Owner:                     
        Type:  bug               |      Status:  new                
    Priority:  normal            |   Component:  Build System       
     Version:  6.12.1            |    Keywords:                     
          Os:  Unknown/Multiple  |    Testcase:                     
Architecture:  Unknown/Multiple  |     Failure:  Building GHC failed
---------------------------------+------------------------------------------
 The build system's top level `./configure` has a flag `--with-gcc=`. All
 the library packages except the unix package use the same gcc. The unix
 package either does not get passed the selected location of gcc, or it
 ignores it. The ./configure for the unix package picks up the gcc from the
 $PATH.

 This can be reproduced by putting a dummy gcc in your $PATH that is just a
 symlink to `/bin/false` and using a top level `./configure --with-gcc=`

 When it gets to building the unix package it picks up the gcc from the
 $PATH:
 {{{
 Configuring unix-2.4.0.0...
 configure: WARNING: unrecognized options: --with-compiler, --with-cc
 checking for gcc... gcc
 checking whether the C compiler works... no
 }}}

 This bug is platform independent but it's most relevant on Solaris where
 the default gcc is not usable by ghc.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3842>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list