#7248 closed bug (fixed)

NewCodeGen does not create enough SRT labels when using SplitObjs

Reported by: darchon Owned by: simonmar
Priority: highest Milestone: 7.8.1
Component: Compiler (NCG) Version: 7.7
Keywords: SplitObjs NCG SRT Cc: eir@…
Operating System: MacOS X Architecture: x86
Type of failure: Building GHC failed Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

When building HEAD I get the following error:

make -r --no-print-directory -f ghc.mk phase=final all

HC [stage 1] libraries/integer-gmp/dist-install/build/GHC/Integer/Type.o

/var/folders/ka/kaF7CETOGrynlpfcm3Ojdk++06g/-Tmp-/ghc91903_0/ghc91903_0.split__51.s:29:0:

non-relocatable subtraction expression, "_integerzmgmp_GHCziIntegerziType_S3Dk_srt" minus "_c3Co_info"

/var/folders/ka/kaF7CETOGrynlpfcm3Ojdk++06g/-Tmp-/ghc91903_0/ghc91903_0.split__51.s:29:0:

symbol: "_integerzmgmp_GHCziIntegerziType_S3Dk_srt" can't be undefined in a subtraction expression

/var/folders/ka/kaF7CETOGrynlpfcm3Ojdk++06g/-Tmp-/ghc91903_0/ghc91903_0.split__51.s:14:0:

non-relocatable subtraction expression, "_integerzmgmp_GHCziIntegerziType_S3Dk_srt" minus "_integerzmgmp_GHCziIntegerziType_negateInteger_info"

/var/folders/ka/kaF7CETOGrynlpfcm3Ojdk++06g/-Tmp-/ghc91903_0/ghc91903_0.split__51.s:14:0:

symbol: "_integerzmgmp_GHCziIntegerziType_S3Dk_srt" can't be undefined in a subtraction expression

make[1]: * [libraries/integer-gmp/dist-install/build/GHC/Integer/Type.o] Error 1
make: * [all] Error 2

Indeed, the symbol/label is not defined in the generated assembly (no .globl declaration)

When building with object splitting disabled ("SplitObjs? = NO" in build.mk) the error does not occur.

Attachments (1)

ghc32439_0.split__51.s (1.8 KB) - added by darchon 19 months ago.
Assembly file causing the error

Download all attachments as: .zip

Change History (8)

comment:1 Changed 19 months ago by darchon

  • Component changed from Compiler to Compiler (NCG)
  • Keywords SplitObjs NCG SRT added
  • Summary changed from Error building integer-gmp using stage1 HEAD on OS X to NewCodeGen does not create enough SRT labels when using SplitObjs

Changed 19 months ago by darchon

Assembly file causing the error

comment:2 Changed 19 months ago by darchon

Some additional info.

Build still fails as of: 9615222985f40b62410e1ccc7b6e8581c2729150

My system:

OS X 10.6.8
XCode 3.2.6
Bootstrap: GHC 7.4.2 (i386)

build.mk:

SRC_HC_OPTS     = -O -H64m
GhcStage1HcOpts = -O -fasm
GhcStage2HcOpts = -O2 -fasm
GhcHcOpts       = -Rghc-timing
GhcLibHcOpts    = -O2
GhcLibWays = v

comment:3 Changed 19 months ago by simonmar

  • Difficulty set to Unknown
  • Milestone set to 7.8.1
  • Owner set to simonmar
  • Priority changed from normal to highest

comment:4 Changed 19 months ago by goldfire

  • Cc eir@… added

comment:5 Changed 19 months ago by simonmar

  • Status changed from new to infoneeded

Could you try again now please? I think I may have fixed this.

comment:6 Changed 19 months ago by darchon

Everything is working using: 42cb30bd2c00705da598cc8d4170b41fb5693166

comment:7 Changed 19 months ago by simonmar

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

Great! thanks.

Note: See TracTickets for help on using tickets.