Opened 4 years ago

Last modified 4 months ago

#4938 infoneeded bug

Core2 CPU not detected correctly

Reported by: altaic Owned by:
Priority: low Milestone: 7.12.1
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 Revisions:

Description

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

comment:1 Changed 4 years ago by altaic

  • Cc william.knop.nospam@… added

comment:2 Changed 4 years ago by altaic

The workaround no longer works.

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

  • Milestone set to 7.2.1

comment:5 Changed 3 years ago by igloo

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

comment:6 Changed 3 years ago by lelf

  • Cc anton.nik@… added

comment:7 Changed 3 years ago by igloo

  • Milestone changed from 7.6.1 to 7.6.2

comment:8 Changed 9 months ago by thoughtpolice

  • Milestone changed from 7.6.2 to 7.10.1

Moving to 7.10.1.

comment:9 Changed 5 months ago by thomie

  • difficulty set to Unknown
  • Operating System changed from Unknown/Multiple to MacOS X
  • Status changed from new to infoneeded

Is this still a problem?

comment:10 Changed 4 months ago by thoughtpolice

  • Milestone changed from 7.10.1 to 7.12.1

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.

Note: See TracTickets for help on using tickets.