[GHC] #10223: Cleanup `mk/build.mk.sample`
#10223: Cleanup `mk/build.mk.sample` -------------------------------------+------------------------------------- Reporter: thomie | Owner: thomie Type: task | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.10.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10223> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10223: Cleanup `mk/build.mk.sample` -------------------------------------+------------------------------------- Reporter: thomie | Owner: thomie Type: task | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by goldfire): I vote to remove `-Rghc-timing` from this file. Note that it has to be removed from this file, and also somewhere(?) else. I currently put `GhcHcOpts =` in my `build.mk`s to make sure this output is squashed. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10223#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10223: Cleanup `mk/build.mk.sample` -------------------------------------+------------------------------------- Reporter: thomie | Owner: thomie Type: task | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by thomie): Phab:D783 filters out `-Rghc-timing` for `V=0` builds. I didn't make any changes to the default `V=1` build, as `-Rghc-timing` has been part of that default since at least the beginning of the century, some people might depend on it, and it could be useful for bug reports. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10223#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10223: Cleanup `mk/build.mk.sample` -------------------------------------+------------------------------------- Reporter: thomie | Owner: thomie Type: task | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by Thomas Miedema <thomasmiedema@…>): In [changeset:"3749c05216339df60e1ffbb28c8b957ad5020b00/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="3749c05216339df60e1ffbb28c8b957ad5020b00" Reformat build flavours in build.mk.sample (#10223) Use same format for each build flavour, to make it easier to compare them. Refactoring only. Reviewed By: austin Differential Revision: https://phabricator.haskell.org/D782 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10223#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10223: Cleanup `mk/build.mk.sample` -------------------------------------+------------------------------------- Reporter: thomie | Owner: thomie Type: task | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by Thomas Miedema <thomasmiedema@…>): In [changeset:"43351ff0905a098c382487c502ccad53783ba9ee/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="43351ff0905a098c382487c502ccad53783ba9ee" Filter out `-Rghc-timing` for V=0 builds (#10223) Reviewed By: austin Differential Revision: https://phabricator.haskell.org/D783 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10223#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10223: Cleanup `mk/build.mk.sample` -------------------------------------+------------------------------------- Reporter: thomie | Owner: thomie Type: task | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by Thomas Miedema <thomasmiedema@…>): In [changeset:"4c1e1c870e294990a44d8d6837742fb0d00f5456/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="4c1e1c870e294990a44d8d6837742fb0d00f5456" Disable same warnings for normal builds as for validate (#10223) The default validate settings currently disable some warnings in the libraries. This patch moves those settings to a new file called `mk/warnings.mk`, and applies them also to normal builds. Through uncommenting a line in build.mk, developers can now build with -Werror. -Werror is not the default, because: * We can not guarantee that the build is warning free on platforms we don't run regularly run validate (as part of continuous integration systems), and we still want the build to go through on those platforms. * quoting rwbarton on irc > "I think -Werror by default has come up in the past and the argument was that it is too annoying when you are doing nontrivial development" Reviewed By: austin Differential Revision: https://phabricator.haskell.org/D785 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10223#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10223: Cleanup `mk/build.mk.sample` -------------------------------------+------------------------------------- Reporter: thomie | Owner: thomie Type: task | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by Thomas Miedema <thomasmiedema@…>): In [changeset:"9b66a7f3d04ed93972e7daa1c6307c8d68ac3720/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="9b66a7f3d04ed93972e7daa1c6307c8d68ac3720" Do not set -fasm explicitly in build.mk.sample (#10223) On platforms that support -fasm, it is already the default, so we don't have to set it. Reviewed By: austin, erikd (tested on powerpc and armhf) Differential Revision: https://phabricator.haskell.org/D784 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10223#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10223: Cleanup `mk/build.mk.sample` -------------------------------------+------------------------------------- Reporter: thomie | Owner: thomie Type: task | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Description changed by thomie: Old description: New description: The goal is to make build.mk.sample easier to understand for GHC developers. There are currently 13 BuildFlavours available to us. It should be clear what the differences between them are, and if those differences are put there on purpose or it they are bugs. There is a certain amount of cargo culting going on in build.mk.sample, with settings just left alone for years because nobody dares touching them (-H64m -fasm) (or nobody cares). Quiz question: what is the difference between the quick and the devel2 build is. We should try to keep the changes backward-compatible, because there are blog posts etc out there that refer to the existing BuildFlavours. -- -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10223#comment:7> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10223: Cleanup `mk/build.mk.sample` -------------------------------------+------------------------------------- Reporter: thomie | Owner: thomie Type: task | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by Thomas Miedema <thomasmiedema@…>): In [changeset:"2c24fd707f8650205bb574ffac5f376239af3723/ghc" 2c24fd70/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="2c24fd707f8650205bb574ffac5f376239af3723" Build system: put each BuildFlavour in a separate file (#10223) This allows easier diffing of different BuildFlavours, including `mk/flavours/validate.mk`. Reviewed By: bgamari, austin Differential Revision: https://phabricator.haskell.org/D1050 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10223#comment:8> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10223: Cleanup `mk/build.mk.sample` -------------------------------------+------------------------------------- Reporter: thomie | Owner: thomie Type: task | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by Thomas Miedema <thomasmiedema@…>): In [changeset:"b40e55954ecdab650d35349cbb93e53df952310e/ghc" b40e559/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="b40e55954ecdab650d35349cbb93e53df952310e" Build system: simplify *-llvm BuildFlavours (#10223) Note that SRC_HC_OPTS are added to every Haskell compilation. So there isn't any need to also add `-fllvm` to GhcStage1HcOpts, GhcStage2HcOpts and GhcLibHcOpts. Small bug fix: make sure we test for -fllvm in SRC_HC_OPTS, to check whether the bootstrap compiler is affected by bug #9439. Reviewed by: austin Differential Revision: https://phabricator.haskell.org/D1188 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10223#comment:9> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10223: Cleanup `mk/build.mk.sample` -------------------------------------+------------------------------------- Reporter: thomie | Owner: thomie Type: task | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by Thomas Miedema <thomasmiedema@…>): In [changeset:"330fbbdacc71a7bb465195e24e268a947fe97412/ghc" 330fbbda/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="330fbbdacc71a7bb465195e24e268a947fe97412" Build system: make *-cross BuildFlavours consistent (#10223) This is a follow up to 841924c9587c10488a18e307b573720977bf4f13, where `-fllvm` was explicitly removed from GhcStage1HcOpts for perf-cross. After removing -fllvm from GhcStage1HcOpts, it should be removed from SRC_HC_OPTS as well, because SRC_HC_OPTS are added to every Haskell compilation. That's what this patch does. BuildFlavour bench-cross (added in ddf79ebf69fe4a6e69d69d451a6040a53b1ea12c), is probably never used. But for consistency, also use -fllvm here, for building stage2 and the libraries. Reviewed by: austin Differential Revision: https://phabricator.haskell.org/D1228 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10223#comment:10> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10223: Cleanup `mk/build.mk.sample` -------------------------------------+------------------------------------- Reporter: thomie | Owner: thomie Type: task | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by thomie): Todo: * figure out the `-H64m` story. See https://mail.haskell.org/pipermail /glasgow-haskell-users/2015-May/025917.html. I found this bit of wisdom by Simon Marlow, https://mail.haskell.org/pipermail/ghc-devs/2014-March/004344.html:
Just wondering: that '-H64m' is from some old times (pre 2007?). GHC seems to eat way more RAM nowadays. Is this bit relevant at all?
It still speeds up compilation a bit, but a larger -H value might be more appropriate > for today's machines.
-- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10223#comment:11> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10223: Cleanup `mk/build.mk.sample` -------------------------------------+------------------------------------- Reporter: thomie | Owner: thomie Type: task | Status: closed Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10223#comment:13> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC