#1717: ghc-6.8 configure does not recognise 32bit userland on ppc64
-------------------------------------+--------------------------------------
    Reporter:  [EMAIL PROTECTED]  |        Owner:              
        Type:  bug                   |       Status:  new         
    Priority:  normal                |    Milestone:  6.8.1       
   Component:  Build System          |      Version:  6.8         
    Severity:  normal                |   Resolution:              
    Keywords:                        |   Difficulty:  Unknown     
          Os:  Linux                 |     Testcase:  normal build
Architecture:  powerpc64             |  
-------------------------------------+--------------------------------------
Comment (by guest):

 While the GHC build system identifies this machine (running 32bit userland
 on ppc64 64-bit kernel) as powerpc64-unknown-linux-gnu,

 (in config.status:

 s,@build@,|#_!!_#|powerpc64-unknown-linux-gnu,g

 in config.log:


 configure:1856: checking for GHC version date
 configure:1874: result: given 6.8.20070912
 configure:2007: checking build system type
 configure:2025: result: powerpc64-unknown-linux-gnu
 configure:2047: checking host system type
 configure:2062: result: powerpc64-unknown-linux-gnu
 configure:2084: checking target system type
 configure:2099: result: powerpc64-unknown-linux-gnu
 )

 everything else (except the kernel) builds on this system for
 powerpc-unknown-linux-gnu or just powerpc-unknown-linux.

 Passing --build=powerpc-unknown-linux to GHC's ./configure solves the
 problem both for 6.6.1 and (as far as I have tried) for 6.8.


 I am not familiar with the autotools, but even GHC finds, in config.log:

 Using built-in specs.
 Target: powerpc-unknown-linux-gnu

 Perhaps it is just a matter of actually using this to achieve what I
 achieved manually by passing --build=powerpc-unknown-linux.

 It may even be an autotools problem: At least readline-5.2,
 which reports the same target, still has only powerpc64 in config.status.

 In gentoo, I believe the correct settings are achieved by
 /usr/portage/profiles/default-linux/ppc/ppc64/2007.0/32bit-
 userland/make.defaults

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1717#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to