[GHC] #13217: configure script uses different CFLAGS from the actual build

#13217: configure script uses different CFLAGS from the actual build -------------------------------------+------------------------------------- Reporter: dobenour | Owner: Type: task | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.1 Keywords: autoconf | 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: -------------------------------------+------------------------------------- `configure` fails to set `CFLAGS` to the value that will actually be used. This can result in checks giving wrong results. I discovered this when working on Phab:D2996, where it led to a build failure using Clang. Note that `-Werror` cannot be used during most checks in `configure`, but is necessary for `FP_CHECK_FLAG`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13217 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13217: configure script uses different CFLAGS from the actual build -------------------------------------+------------------------------------- Reporter: dobenour | Owner: Type: task | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.1 Resolution: | Keywords: autoconf 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 rwbarton): Could you be more specific? There are various sets of flags and even potentially multiple C compilers that will be used at different points during the build of GHC. And in the instance in Phab:D2996, it looks like the failure occurred while compiling the RTS; but `-Werror` was in effect only because this was part of a validate build. More generally the user can specify additional options for building the RTS via the make variable `GhcRtsCcOpts`, and we can't know the value of that variable at configure time. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13217#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC