Skip to content

Commit

Permalink
Fix GHCi perf-llvm build on x86_64
Browse files Browse the repository at this point in the history
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
  • Loading branch information
erikd committed Aug 13, 2016
1 parent ac0e112 commit bd0c310
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rts/RtsSymbols.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd0c310

Please sign in to comment.