
Hi everyone, I pulled from the head this morning and would like to rebase my local changes on it. Even before I do rebase, I got a build error. Everything is fine last time I built (almost one week ago). Then I tried to glone a new repo and the build gives me the same error message. After a little bit searching, the error message seems to be specific to MacOS (mine is Sierra 10.12.6). Platform info (Let me know if you need more information): *--- repo/ghc * *»* which ghc ghc: aliased to stack ghc *--- repo/ghc * *»* stack exec -- ghc --version The Glorious Glasgow Haskell Compilation System, version 7.10.3 *--- repo/ghc * *»* gcc --version Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 9.0.0 (clang-900.0.39.2) Target: x86_64-apple-darwin16.7.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin Has anyone encountered the same problem and any clue on how to solve it? Thanks, Ningning "inplace/bin/ghc-stage1" -hisuf p_hi -osuf p_o -hcsuf p_hc -static -prof -eventlog -H32m -O -Wall -this-unit-id integer-gmp-1.0.2.0 -hide-all-packages -i -ilibraries/integer-gmp/src/ -ilibraries/integer-gmp/dist-install/build -Ilibraries/integer-gmp/dist-install/build -ilibraries/integer-gmp/dist-install/build/./autogen -Ilibraries/integer-gmp/dist-install/build/./autogen -Ilibraries/integer-gmp/include -Ilibraries/integer-gmp/dist-install/build/include -optP-include -optPlibraries/integer-gmp/dist-install/build/./autogen/cabal_macros.h -package-id ghc-prim-0.5.3 -this-unit-id integer-gmp -Wall -XHaskell2010 -O2 -no-user-package-db -rtsopts -Wno-deprecated-flags -Wnoncanonical-monad-instances -odir libraries/integer-gmp/dist-install/build -hidir libraries/integer-gmp/dist-install/build -stubdir libraries/integer-gmp/dist-install/build -c libraries/integer-gmp/src//GHC/Integer/Logarithms.hs -o libraries/integer-gmp/dist-install/build/GHC/Integer/Logarithms.p_o -dyno libraries/integer-gmp/dist-install/build/GHC/Integer/Logarithms.dyn_o */var/folders/zq/tn9b58wn37b0yby0vm8_7_cr0000gn/T/ghc47691_0/ghc_3.s:221:8: **error:* * error: unsupported relocation with subtraction expression, symbol '_integerzmgmp_GHCziIntegerziType_quotInteger_closure' can not be undefined in a subtraction expression* * .long _integerzmgmp_GHCziIntegerziType_quotInteger_closure-(_sMi_info)+0* * ^* * |* *221 |* .long _integerzmgmp_GHCziIntegerziType_quotInteger_closure-(_sMi_info)+0 * |** ^* */var/folders/zq/tn9b58wn37b0yby0vm8_7_cr0000gn/T/ghc47691_0/ghc_3.s:318:8: **error:* * error: unsupported relocation with subtraction expression, symbol '_integerzmgmp_GHCziIntegerziType_quotInteger_closure' can not be undefined in a subtraction expression* * .long _integerzmgmp_GHCziIntegerziType_quotInteger_closure-(_cPd_info)+0* * ^* * |* *318 |* .long _integerzmgmp_GHCziIntegerziType_quotInteger_closure-(_cPd_info)+0 * |** ^* */var/folders/zq/tn9b58wn37b0yby0vm8_7_cr0000gn/T/ghc47691_0/ghc_3.s:390:8: **error:* * error: unsupported relocation with subtraction expression, symbol '_integerzmgmp_GHCziIntegerziType_quotInteger_closure' can not be undefined in a subtraction expression* * .long _integerzmgmp_GHCziIntegerziType_quotInteger_closure-(_cP8_info)+0* * ^* * |* *390 |* .long _integerzmgmp_GHCziIntegerziType_quotInteger_closure-(_cP8_info)+0 * |** ^* `gcc' failed in phase `Assembler'. (Exit code: 1) make[1]: *** [libraries/integer-gmp/dist-install/build/GHC/Integer/Logarithms.p_o] Error 1

Ningning Xie
Hi everyone,
I pulled from the head this morning and would like to rebase my local changes on it. Even before I do rebase, I got a build error. Everything is fine last time I built (almost one week ago). Then I tried to glone a new repo and the build gives me the same error message.
Hi Ningning, Yes, this is a known issue. I have a patch (https://phabricator.haskell.org/D4715) unfortunately it hasn't yet validated so it hasn't yet been merged. Cheers, - Ben
participants (2)
-
Ben Gamari
-
Ningning Xie