Opened 7 years ago

Closed 2 years ago

#4938 closed bug (worksforme)

Core2 CPU not detected correctly

Reported by: altaic Owned by:
Priority: low Milestone:
Component: Compiler Version: 7.1
Keywords: Cc: william.knop.nospam@…, anton.nik@…
Operating System: MacOS X Architecture: Unknown/Multiple
Type of failure: Building GHC failed Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


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.

Change History (11)

comment:1 Changed 7 years ago by altaic

Cc: william.knop.nospam@… added

comment:2 Changed 7 years ago by altaic

The workaround no longer works.

comment:3 Changed 7 years ago by altaic

I've successfully built HEAD for x86_64, bootstrapping from Gregory Wright's x86_64 7.0.1 binary. So, it seems cross-compiling is broken.

comment:4 Changed 7 years ago by igloo

Milestone: 7.2.1

comment:5 Changed 6 years ago by igloo

Priority: normallow

comment:6 Changed 6 years ago by lelf

Cc: anton.nik@… added

comment:7 Changed 5 years ago by igloo


comment:8 Changed 3 years ago by thoughtpolice


Moving to 7.10.1.

comment:9 Changed 3 years ago by thomie

difficulty: Unknown
Operating System: Unknown/MultipleMacOS X
Status: newinfoneeded

Is this still a problem?

comment:10 Changed 3 years ago by thoughtpolice


Moving to 7.12.1 milestone; if you feel this is an error and should be addressed sooner, please move it back to the 7.10.1 milestone.

comment:11 Changed 2 years ago by thomie

Milestone: 7.12.1
Resolution: worksforme
Status: infoneededclosed

Cross-compilation support should be better than it was 4 years ago. Please reopen if you're still having problems.

Note: See TracTickets for help on using tickets.