[GHC] #9684: Broken build on OS X (incompatible pthread_setname_np API)

GHC ghc-devs at haskell.org
Wed Oct 15 15:00:23 UTC 2014


#9684: Broken build on OS X (incompatible pthread_setname_np API)
-------------------------------------+-------------------------------------
              Reporter:  mlen        |            Owner:
                  Type:  bug         |           Status:  patch
              Priority:  normal      |        Milestone:
             Component:  Compiler    |          Version:  7.9
            Resolution:              |         Keywords:
      Operating System:  MacOS X     |  pthread_setname_np
       Type of failure:  Building    |     Architecture:  Unknown/Multiple
  GHC failed                         |       Difficulty:  Unknown
             Test Case:              |       Blocked By:
              Blocking:              |  Related Tickets:
Differential Revisions:              |
  Phab:rGHC674c631ea111233daa929ef63500d75ba0db8858,|
  Phab:D338                          |
-------------------------------------+-------------------------------------

Comment (by mlen):

 While it builds, it doesn't validate on OSX.
 {{{
 rts/posix/OSThreads.c:132:40:
      error: unused parameter 'name' [-Werror,-Wunused-parameter]
 createOSThread (OSThreadId* pId, char *name,
                                        ^
 1 error generated.
 make[1]: *** [rts/dist/build/posix/OSThreads.thr_o] Error 1
 make[1]: *** Waiting for unfinished jobs....
 make: *** [all] Error 2
 CPUS=6 ./validate  1838.92s user 246.55s system 249% cpu 13:54.58 total
 }}}

 That can be solved by adding an `#else` branch with `(void)name;` to shut
 down the warning.

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


More information about the ghc-tickets mailing list