Opened 3 years ago

Last modified 19 months ago

#4938 new bug

Core2 CPU not detected correctly

Reported by: altaic Owned by:
Priority: low Milestone: 7.6.2
Component: Compiler Version: 7.1
Keywords: Cc: william.knop.nospam@…, anton.nik@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Building GHC failed Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:


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 (7)

comment:1 Changed 3 years ago by altaic

  • Cc william.knop.nospam@… added

comment:2 Changed 3 years ago by altaic

The workaround no longer works.

comment:3 Changed 3 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 3 years ago by igloo

  • Milestone set to 7.2.1

comment:5 Changed 2 years ago by igloo

  • Milestone changed from 7.4.1 to 7.6.1
  • Priority changed from normal to low

comment:6 Changed 2 years ago by lelf

  • Cc anton.nik@… added

comment:7 Changed 19 months ago by igloo

  • Milestone changed from 7.6.1 to 7.6.2
Note: See TracTickets for help on using tickets.