[commit: ghc] master: Fix GHCi perf-llvm build on x86_64 (bd0c310)
git at git.haskell.org
git at git.haskell.org
Sat Aug 13 21:25:19 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/bd0c31063551744d00796219174739216c398da5/ghc
>---------------------------------------------------------------
commit bd0c31063551744d00796219174739216c398da5
Author: Erik de Castro Lopo <erikd at mega-nerd.com>
Date: Sun Aug 14 07:23:35 2016 +1000
Fix GHCi perf-llvm build on x86_64
With BuildFlavour set to `perf-llvm`, GHCi would fail as soon as it
was run with:
ghc-stage2: .../ghc-prim/dist-install/build/HSghc-prim-0.5.0.0.o:
unknown symbol `__udivti3'
ghc-stage2: unable to load package `ghc-prim-0.5.0.0'
Fix this by adding `__udivti3` and `__umodti3` to RtsSymbols.c.
Test Plan: Validate
Reviewers: simonmar, austin, bgamari, Phyx, trofi
Reviewed By: Phyx, trofi
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D2449
GHC Trac Issues: #11981
>---------------------------------------------------------------
bd0c31063551744d00796219174739216c398da5
rts/RtsSymbols.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/rts/RtsSymbols.c b/rts/RtsSymbols.c
index ed9bdfb..cc26ecb 100644
--- a/rts/RtsSymbols.c
+++ b/rts/RtsSymbols.c
@@ -762,6 +762,10 @@
SymI_NeedsProto(__ashrdi3) \
SymI_NeedsProto(__lshrdi3) \
SymI_NeedsProto(__fixunsdfdi)
+#elif defined(__GNUC__) && SIZEOF_VOID_P == 8
+#define RTS_LIBGCC_SYMBOLS \
+ SymI_NeedsProto(__udivti3) \
+ SymI_NeedsProto(__umodti3)
#else
#define RTS_LIBGCC_SYMBOLS
#endif
More information about the ghc-commits
mailing list