Opened 4 years ago

Closed 9 months ago

#5898 closed bug (worksforme)

ghc: internal error: Invalid Mach-O file

Reported by: jeffshaw Owned by:
Priority: normal Milestone: 7.10.1
Component: Compiler Version: 7.0.4
Keywords: Cc: pho@…
Operating System: MacOS X Architecture: powerpc
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description (last modified by pcapriotti)

I am running Mac OS 10.5.8 on a PowerPC processor.

$ cabal --version
cabal-install version 0.10.2
using version 1.10.2.0 of the Cabal library 
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.0.4
$ machine
ppc7450

cabal install yesod-core fails with

Loading package wai-logger-0.1.4 ... linking ... ghc: internal error: Invalid Mach-O file:Address out of bounds while relocating object file
    (GHC version 7.0.4 for powerpc_apple_darwin)
    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

Attachments (2)

yesod-install-stdout.log (40.4 KB) - added by jeffshaw 4 years ago.
Standard output from cabal.
yesod-install-stderr.log (52.3 KB) - added by jeffshaw 4 years ago.
Standard error from cabal.

Download all attachments as: .zip

Change History (11)

Changed 4 years ago by jeffshaw

Standard output from cabal.

Changed 4 years ago by jeffshaw

Standard error from cabal.

comment:1 Changed 4 years ago by jeffshaw

  • Architecture changed from Unknown/Multiple to powerpc
  • Operating System changed from Unknown/Multiple to MacOS X

comment:2 Changed 3 years ago by PHO

  • Cc pho@… added

comment:3 Changed 3 years ago by PHO

That means libHSwai-logger-0.1.4.a has an object image containing a broken relocation entry, which can't happen in theory but IIRC there was a bug in as(1) that comes with MacOS 10.5 causing similar problems you encountered.

I'll investigate that when bites me too.

comment:4 Changed 3 years ago by PHO

jeffshaw, which version of cctools are you using? Mine is:

% as -v
Apple Inc version cctools-698.1~1, GNU assembler version 1.38
% ld -v
@(#)PROGRAM:ld  PROJECT:ld64-85.2.1
% uname -a
Darwin aria.cielonegro.org 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15
16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh

comment:5 Changed 3 years ago by jeffshaw

I show the same version numbers. Perhaps I can install newer versions of these programs from macports and try again?

$ as -v Apple Inc version cctools-698.1~1, GNU assembler version 1.38 CInterrupted by signal 2

$ ld -v @(#)PROGRAM:ld PROJECT:ld64-85.2.1 $ uname -a Darwin PowerBook.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:0Jeffrey-Shaws-P1 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh

comment:6 Changed 3 years ago by pcapriotti

  • Description modified (diff)
  • difficulty set to Unknown
  • Milestone set to 7.6.1

comment:7 Changed 3 years ago by igloo

  • Milestone changed from 7.6.1 to 7.6.2

comment:8 Changed 14 months ago by thoughtpolice

  • Milestone changed from 7.6.2 to 7.10.1

Moving to 7.10.1.

comment:9 Changed 9 months ago by thomie

  • Resolution set to worksforme
  • Status changed from new to closed

Linking on OS X has been much improved in the GHC 7.8 series. Please try the latest release, and don't hesitate to re-open this ticket if you encounter the same problem again.

Note: See TracTickets for help on using tickets.