Ticket #5898 (new bug)

Opened 15 months ago

Last modified 8 months ago

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

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

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

Change History

Changed 15 months ago by jeffshaw

Standard output from cabal.

Changed 15 months ago by jeffshaw

Standard error from cabal.

Changed 15 months ago by jeffshaw

  • os changed from Unknown/Multiple to MacOS X
  • architecture changed from Unknown/Multiple to powerpc

Changed 15 months ago by PHO

  • cc pho@… added

Changed 15 months 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.

Changed 15 months 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

Changed 14 months 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

Changed 11 months ago by pcapriotti

  • difficulty set to Unknown
  • description modified (diff)
  • milestone set to 7.6.1

Changed 8 months ago by igloo

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