Ticket #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.

