#4938: Core2 CPU not detected correctly
---------------------------------+------------------------------------------
    Reporter:  altaic            |       Owner:                     
        Type:  bug               |      Status:  new                
    Priority:  normal            |   Component:  Compiler           
     Version:  7.1               |    Keywords:                     
    Testcase:                    |   Blockedby:                     
          Os:  Unknown/Multiple  |    Blocking:                     
Architecture:  Unknown/Multiple  |     Failure:  Building GHC failed
---------------------------------+------------------------------------------
 This is a HEAD build on a Core2 Duo (i386 & x86_64) MacBook Pro.

 Configure Command: `./configure --host=x86_64-apple-darwin --target=x86_64
 -apple-darwin`

 Configure Summary:
 {{{
 Configure completed successfully.

    Building GHC version  : 7.1.20110131

    Build platform        : i386-apple-darwin
    Host platform         : x86_64-apple-darwin
    Target platform       : x86_64-apple-darwin

    Bootstrapping using   : /usr/bin/ghc
       which is version   : 6.12.3

    Using GCC             : /usr/bin/gcc
       which is version   : 4.2.1

    ld       : /usr/bin/ld
    Happy    : /usr/local/bin/happy (1.18.5)
    Alex     : /usr/local/bin/alex (2.3.3)
    Python   : /usr/bin/python
    Perl     : /usr/bin/perl
    dblatex  : /usr/local/bin/dblatex
    xsltproc : /usr/bin/xsltproc
    HsColour : /Users/wknop/.cabal/bin/HsColour

    Building DocBook HTML documentation : YES
    Building DocBook PS documentation   : YES
    Building DocBook PDF documentation  : YES
 }}}

 Build fails with:
 {{{
 compiler/stage2/build/LibFFI_hsc_make.c:1: error: CPU you selected does
 not support x86-64 instruction set
 }}}

 Workaround: Adding `-march=core2` to the `x86_64-apple-darwin` section of
 `aclocal.m4` convinces the compiler that the processor supports i386 and
 x86_64.

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to