[haskell-platform] #95: installations errors

haskell-platform haskell-platform at projects.haskell.org
Mon Oct 26 18:58:50 EDT 2009


#95: installations errors
-------------------------------------+--------------------------------------
 Reporter:  porkedrons[at]gmail.com  |        Owner:  duncan    
     Type:  defect                   |       Status:  new       
 Priority:  critical                 |    Milestone:  2009.2.0.2
Component:  Generic source tarball   |   Resolution:            
 Keywords:                           |  
-------------------------------------+--------------------------------------
Comment (by matthijs):

 I've seen a similar error:

 {{{
 user at haskell:/tmp/haskell-platform-2009.2.0.2$ ./configure
 checking build system type... Invalid configuration `i686-pc-linux-oldld':
   machine `i686-pc-linux' not recognized
 configure: error: /bin/sh scripts/config.sub i686-pc-linux-oldld failed
 }}}

 The -oldld here seems to be caused by the fact that I have no ld installed
 (so it cannot generate elf or a.out, so it is "old"). Installing binutils
 gives me the same error as the original report, {{{config.guess}}} then
 thinks my architecture is {{{i686-pc-linux-}}}. The problem here is that
 {{{config.sub}}} cannot handle an architecture with more than three dashes
 properly. Somewhere at the top, it splits the architecture into {{{$os}}}
 and {{{$basic_machine}}} by taking everything after the final dash, so
 {{{-linux}}} ends up in {{{$basic_machine}}}, which causes it to error
 out.

 Installing the Debian {{{binutils}}} package fixes my problem:
 {{{config.guess}}} then returns {{{i686-pc-linux-gnu}}}. Since
 {{{config.sub}}} has a special case for {{{-linux-gnu}}}, it splits this
 properly and configure works.

 I think the above captures the problem pretty nicely: {{{configure}}} does
 not work when no build utilities are installed. I'm not sure whose fault
 this is exactly or how to fix it...

 This is slightly related to
 [http://hackage.haskell.org/trac/ghc/ticket/3612 GHC ticket #3612],
 describing that GHC does not build without build utils either (though
 because of completely different reasons).

-- 
Ticket URL: <http://trac.haskell.org/haskell-platform/ticket/95#comment:1>
haskell-platform <http://trac.haskell.org/haskell-platform>
The Haskell Platform: a comprehensive and robust collection of Haskell libraries


More information about the Haskell-platform mailing list