[GHC] #9185: glibc 2.20 outputs warnings for _BSD_SOURCE (Stg.h) on unknowns archs

#9185: glibc 2.20 outputs warnings for _BSD_SOURCE (Stg.h) on unknowns archs -------------------------+------------------------------------------------- Reporter: | Owner: juhpetersen | Status: new Type: bug | Milestone: Priority: | Version: 7.8.2 normal | Operating System: Linux Component: | Type of failure: Incorrect warning at Compiler | compile-time Keywords: | Test Case: Architecture: | Blocking: Unknown/Multiple | Difficulty: | Unknown | Blocked By: | Related Tickets: | -------------------------+------------------------------------------------- Stg.h defines _BSD_SOURCE which glibc 2.20 deprecates with warnings in favour of _DEFAULT_SOURCE. Since the verbose warning is output for every ghc invocation when building it is rather annoying and induces testsuite failures. The warning look like this: {{{ In file included from /usr/include/math.h:26:0: 0, from /usr/lib64/ghc-7.6.3/include/Stg.h:65, from /tmp/ghc783_0/ghc783_0.hc:3: /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^ }}} Solution/workaround is to define "_DEFAULT_SOURCE" and that works. I asked in https://bugzilla.redhat.com/show_bug.cgi?id=1067110#c13 about how best to fix Stg.h and got the answer to just add _DEFAULT_SOURCE. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9185 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9185: glibc 2.20 outputs warnings for _BSD_SOURCE (Stg.h) on unknowns archs -------------------------------------------------+------------------------- Reporter: juhpetersen | Owner: Type: bug | juhpetersen Priority: normal | Status: new Component: Compiler | Milestone: Resolution: | Version: 7.8.2 Operating System: Linux | Keywords: Type of failure: Incorrect warning at | Architecture: compile-time | Unknown/Multiple Test Case: | Difficulty: Blocking: | Unknown | Blocked By: | Related Tickets: -------------------------------------------------+------------------------- Changes (by juhpetersen): * owner: => juhpetersen -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9185#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9185: glibc 2.20 outputs warnings for _BSD_SOURCE (Stg.h) on unknown archs -------------------------------------------------+------------------------- Reporter: juhpetersen | Owner: Type: bug | juhpetersen Priority: normal | Status: new Component: Compiler | Milestone: Resolution: | Version: 7.8.2 Operating System: Linux | Keywords: Type of failure: Incorrect warning at | Architecture: compile-time | Unknown/Multiple Test Case: | Difficulty: Blocking: | Unknown | Blocked By: | Related Tickets: -------------------------------------------------+------------------------- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9185#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9185: glibc 2.20 outputs warnings for _BSD_SOURCE (Stg.h) on unknown archs -------------------------------------+------------------------------------- Reporter: | Owner: juhpetersen juhpetersen | Status: patch Type: bug | Milestone: Priority: normal | Version: 7.8.2 Component: Compiler | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Linux | Difficulty: Unknown Type of failure: Incorrect | Blocked By: warning at compile-time | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => patch Comment: LGTM -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9185#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9185: glibc 2.20 outputs warnings for _BSD_SOURCE (Stg.h) on unknown archs -------------------------------------+------------------------------------- Reporter: | Owner: juhpetersen juhpetersen | Status: closed Type: bug | Milestone: 7.10.1 Priority: normal | Version: 7.8.2 Component: Compiler | Keywords: Resolution: fixed | Architecture: Unknown/Multiple Operating System: Linux | Difficulty: Unknown Type of failure: Incorrect | Blocked By: warning at compile-time | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: patch => closed * resolution: => fixed * milestone: => 7.10.1 Comment: Hey Jens, sorry for taking so long. Sergei actually fixed this in c65221bdbdebb0a6e615970cb0ca78abcb4202f8, so this is now fixed. Thank you though (and sorry again!) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9185#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC