[GHC] #14977: Clang doesn't support -Wsync-nand

#14977: Clang doesn't support -Wsync-nand -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.4.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- 94f02547083cf6df686ea0b95fed050184c533de added a `#pragma GCC diagnostic ignored "-Wsync-nand"` pragma to `libraries/ghc-prim/cbits/atomic.c` to silence `-Werror` failures due to GCC's non-actionable `-Wsync-nand` warning. Unfortunately goldfire reports that Apple's Clang chokes on this with, {{{ libraries/ghc-prim/cbits/atomic.c:127:32: error: unknown warning group '-Wsync-nand', ignored [-Werror,-Wunknown-warning-option] }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14977 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14977: Clang doesn't support -Wsync-nand -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.4.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * failure: None/Unknown => Building GHC failed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14977#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14977: Clang doesn't support -Wsync-nand -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: high | Milestone: 8.6.1 Component: Compiler | Version: 8.5 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * priority: normal => high * version: 8.4.1 => 8.5 * milestone: => 8.6.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14977#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14977: Clang doesn't support -Wsync-nand -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: high | Milestone: 8.6.1 Component: Compiler | Version: 8.5 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * owner: (none) => bgamari -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14977#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14977: Clang doesn't support -Wsync-nand -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: high | Milestone: 8.6.1 Component: Compiler | Version: 8.5 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by goldfire): Note that this happens only with `-Werror` specified in your build.mk, and removing `-Werror` allows you to proceed. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14977#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14977: Clang doesn't support -Wsync-nand -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: high | Milestone: 8.6.1 Component: Compiler | Version: 8.5 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by goldfire): I've got a patch in-flight: add {{{#!c #pragma GCC diagnostic ignored "-Wunknown-warning-option" }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14977#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14977: Clang doesn't support -Wsync-nand
-------------------------------------+-------------------------------------
Reporter: bgamari | Owner: bgamari
Type: bug | Status: new
Priority: high | Milestone: 8.6.1
Component: Compiler | Version: 8.5
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Building GHC | Unknown/Multiple
failed | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Richard Eisenberg

#14977: Clang doesn't support -Wsync-nand -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: merge Priority: high | Milestone: 8.4.2 Component: Compiler | Version: 8.5 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by goldfire): * status: new => merge * milestone: 8.6.1 => 8.4.2 Comment: Does this need a merge? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14977#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14977: Clang doesn't support -Wsync-nand -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: closed Priority: high | Milestone: 8.6.1 Component: Compiler | Version: 8.5 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed * milestone: 8.4.2 => 8.6.1 Comment: Nope, this only affects ed6f9fb9d5a684d2159c29633159c3254cf04deb which isn't present on `ghc-8.4`. Thanks for checking though! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14977#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC