Opened 2 years ago

Last modified 19 months ago

#5898 new bug

ghc: internal error: Invalid Mach-O file

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

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 2 years ago.
Standard output from cabal.
yesod-install-stderr.log (52.3 KB) - added by jeffshaw 2 years ago.
Standard error from cabal.

Download all attachments as: .zip

Change History (9)

Changed 2 years ago by jeffshaw

Standard output from cabal.

Changed 2 years ago by jeffshaw

Standard error from cabal.

comment:1 Changed 2 years ago by jeffshaw

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

comment:2 Changed 2 years ago by PHO

  • Cc pho@… added

comment:3 Changed 2 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 2 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 2 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 22 months ago by pcapriotti

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

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.