Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#2262 closed bug (fixed)

Build failure of HEAD from 2008-05-04 on OS X 10.4.11

Reported by: nominolo Owned by:
Priority: high Milestone: 6.10.1
Component: Compiler Version: 6.9
Keywords: Cc: nominolo@…
Operating System: MacOS X Architecture: x86
Type of failure: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

Build fails with the following error message

Finished making all in runstdtest: 0
------------------------------------------------------------------------
== make all -r;
 in /Users/nominolo/code/ghc/head/utils/ghc-pkg
------------------------------------------------------------------------
../../compiler/stage1/ghc-inplace -no-user-package-conf -H64m -Onot -fasm  -cpp -Wall -fno-warn-name-shadowing -fno-warn-unused-matches -package Cabal -Rghc-timing -O -fasm -package unix -package containers    -c Version.hs -o Version.o  -ohi Version.hi
<<ghc: 16815496 bytes, 4 GCs, 122880/122880 avg/max bytes residency (1 samples), 63M in use, 0.00 INIT (0.00 elapsed), 0.03 MUT (0.11 elapsed), 0.02 GC (0.02 elapsed) :ghc>>
../../compiler/stage1/ghc-inplace -no-user-package-conf -H64m -Onot -fasm  -cpp -Wall -fno-warn-name-shadowing -fno-warn-unused-matches -package Cabal -Rghc-timing -O -fasm -package unix -package containers    -c Main.hs -o Main.o  -ohi Main.hi
<<ghc: 379412076 bytes, 12 GCs, 1495040/4272128 avg/max bytes residency (3 samples), 66M in use, 0.00 INIT (0.00 elapsed), 1.14 MUT (1.50 elapsed), 0.17 GC (0.20 elapsed) :ghc>>
gcc -O     -c CRT_noglob.c -o CRT_noglob.o
../../compiler/stage1/ghc-inplace -no-user-package-conf -o ghc-pkg.bin -H64m -Onot -fasm  -cpp -Wall -fno-warn-name-shadowing -fno-warn-unused-matches -package Cabal -Rghc-timing -O -fasm -package unix -package containers       Main.o Version.o CRT_noglob.o  
/usr/bin/ld: /Users/nominolo/code/ghc/head/rts/libHSrts.a(PrimOps.o) has external relocation entries in non-writable section (__TEXT,__text) for symbols:
___gmpn_cmp
___gmpn_gcd_1
___gmpz_fdiv_qr
___gmpz_tdiv_qr
___gmpz_com
___gmpz_init
___gmpz_xor
___gmpz_ior
___gmpz_and
___gmpz_divexact
___gmpz_tdiv_r
___gmpz_tdiv_q
___gmpz_gcd
___gmpz_mul
___gmpz_sub
___gmpz_add
collect2: ld returned 1 exit status
<<ghc: 13623240 bytes, 3 GCs, 122880/122880 avg/max bytes residency (1 samples), 62M in use, 0.00 INIT (0.00 elapsed), 0.03 MUT (0.74 elapsed), 0.01 GC (0.02 elapsed) :ghc>>
make[3]: *** [ghc-pkg.bin] Error 1
Failed making all in ghc-pkg: 1
make[2]: *** [all] Error 1
make[1]: *** [stage2] Error 2
make: *** [bootstrap2] Error 2

Version: 6.9.20080504

$ uname -a               
Darwin intothevoid.local 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386
BuildFlavour = quickest

Change History (5)

comment:1 Changed 7 years ago by nominolo

The current workaround is to comment out this line in rts/Makefile:

SRC_HC_OPTS += -fvia-C

comment:2 Changed 7 years ago by igloo

  • difficulty set to Unknown
  • Milestone set to 6.10 branch
  • Priority changed from normal to high

comment:3 Changed 7 years ago by simonmar

  • Milestone changed from 6.10 branch to 6.10.1

comment:4 Changed 7 years ago by igloo

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

Building on OS X works for me, and there is no longer a SRC_HC_OPTS += -fvia-C in rts/Makefile on OS X, so we believe that this is fixed.

comment:5 Changed 7 years ago by igloo

Tue Dec 16 04:47:06 PST 2008  Simon Marlow <[email protected]>
  * Workaround for #2262, from Barney Stratford

applied to HEAD and 6.10.

Note: See TracTickets for help on using tickets.