Ticket #2380 (closed bug: wontfix)

Opened 5 years ago

Last modified 3 years ago

Adjustor.o crash compiling ghc 6.8.3 on iBook G4 10.4.11

Reported by: povman Owned by:
Priority: low Milestone: 6.12.3
Component: Compiler Version: 6.8.3
Keywords: Cc:
Operating System: MacOS X Architecture: powerpc
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

  1. Unzip ghc-6.8.3-src.tar.bz2
  2. Unzip ghc-6.8.3-src-extralibs.tar.bz2
  3. cd ghc-6.8.3
  4. sh boot
  5. ./configure
  6. make

I get this error:

------------------------------------------------------------------------
== make all -r;
 in /Users/lukeworth/src/ghc-6.8.3/rts
------------------------------------------------------------------------
../compiler/ghc-inplace -optc-O -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-I../includes -optc-I. -optc-Iparallel -optc-Ism -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -optc-I../gmp/gmpbuild -optc-fno-strict-aliasing -H16m -O -optc-O2 -package-name rts -static -I../gmp/gmpbuild -I. -#include HCIncludes.h -dcmm-lint     -c Adjustor.c -o Adjustor.o
make[1]: *** [Adjustor.o] Bus error
make: *** [stage1] Error 1

Attachments

out Download (42.5 KB) - added by povman 5 years ago.
output of make
ktrace.out Download (197.2 KB) - added by povman 5 years ago.
ktrace file (use kdump to read)

Change History

Changed 5 years ago by PHO

Strange... I successfully built 6.8.3 with:

   OS: MacOS X 10.4.11
   CPU: PowerPC G5
   GHC: 6.8.2
   GCC: 4.0.1

Changed 5 years ago by povman

  • attachment out Download added

output of make

Changed 5 years ago by povman

ktrace file (use kdump to read)

Changed 5 years ago by povman

PHO: Did you install GHC 6.8.2 from a binary or source?

Changed 5 years ago by PHO

From source.

Changed 5 years ago by povman

Just installed from macports: It installed gmp-4.2.2 whereas I had 3.4.2 installed before Perl-5.8.8, i had 5.8.6 ghc-6.6.1 for bootstrapping, i had 6.8.1 (downgraded from 6.8.2 yesterday)

It installed with no errors and runs correctly. I believe this should be the recommended installation method for mac users (Currently there is no mac section on the download page).

Changed 5 years ago by igloo

  • difficulty set to Unknown
  • milestone set to 6.10.1

Changed 5 years ago by steve

Building using ghc 6.8.3 installed from the binary package works. When building via MacPorts?, it uses 6.8.2 to build and that causes the built stage1/ghc-inline to segfault while compiling .c files in the rts directory, not just Adjustor.c which is merely the first one.

If I run with -v -ddump-stg -ddump-simpl -ddump-cmm -dppr-debug, I get the following. ../compiler/ghc-inplace -optc-O -optc-I/opt/local/include -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-I../includes -optc-I. -optc-Iparallel -optc-Ism -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -optc-I/opt/local/include -optc-I../gmp/gmpbuild -optc-fno-strict-aliasing -H16m -O -I/opt/local/include -L/opt/local/lib -optc-O2 -package-name rts -static -I/opt/local/include -I../gmp/gmpbuild -I. -#include HCIncludes.h -dcmm-lint -c Adjustor.c -o Adjustor.o -v -ddump-stg -ddump-simpl -ddump-cmm -dppr-debug Glasgow Haskell Compiler, Version 6.8.3, for Haskell 98, stage 1 booted by GHC version 6.8.2 Using package config file: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/ghc-6.8.3/driver/package.conf.inplace Segmentation fault

Changed 5 years ago by igloo

  • milestone changed from 6.10.1 to 6.10.2

Changed 5 years ago by ChrisKuklewicz

I reported a very similar looking bug to macports this week at  http://trac.macports.org/ticket/17184 which I have updated to point to this ghc bug.

Changed 4 years ago by igloo

  • priority changed from normal to low
  • milestone changed from 6.10.2 to 6.12 branch

Lowering priority as not a tier 1 arch.

Changed 4 years ago by simonmar

  • component changed from Build System to Compiler

Probably not a build-system bug.

Changed 3 years ago by igloo

  • milestone changed from 6.12 branch to 6.12.3

Changed 3 years ago by igloo

  • status changed from new to closed
  • failure set to None/Unknown
  • resolution set to wontfix

Bus error in the 6.8 branch, and on a non-tier-1 platform, so closing.

Note: See TracTickets for help on using tickets.