[GHC] #9886: PowerPC : Undefined reference to `__sync_fetch_and_xor_8'

GHC ghc-devs at haskell.org
Tue Mar 10 07:11:15 UTC 2015


#9886: PowerPC : Undefined reference to `__sync_fetch_and_xor_8'
----------------------------------------+----------------------------------
        Reporter:  erikd                |                   Owner:  erikd
            Type:  bug                  |                  Status:  new
        Priority:  normal               |               Milestone:
       Component:  Compiler (CodeGen)   |                 Version:  7.11
      Resolution:                       |                Keywords:
Operating System:  Unknown/Multiple     |            Architecture:  powerpc
 Type of failure:  Building GHC failed  |               Test Case:
      Blocked By:                       |                Blocking:
 Related Tickets:                       |  Differential Revisions:
----------------------------------------+----------------------------------

Comment (by Erik de Castro Lopo <erikd@…>):

 In [changeset:"19440ae2bb256f75934949ae57934caee3831a80/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="19440ae2bb256f75934949ae57934caee3831a80"
 ghc-prim : Hide 64 bit primops when the word size is 32 bits (fixes
 #9886).

 Summary:
 These primops were failing to compile on PowerPC (32 bit). There is also
 currently no way to call into these primops from Haskell code. Currently,
 the *only* way to call any of these C hs_atomic_* functions is via the
 fetch*IntArray primops which are only defined for Int values and Int is
 always the native word size.

 When these functions can be called (and tested) from Haskell code, then
 it will be worth while implementing them.

 Test Plan:
     Compile and run on x86, x86_64, powerpc and arm:
     testsuite/tests/concurrent/should_run/AtomicPrimops.hs

 Reviewers: tibbe, austin

 Subscribers: thomie

 Differential Revision: https://phabricator.haskell.org/D702

 GHC Trac Issues: #9886
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9886#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list