Can't build current HEAD

I am unable to build current HEAD. I'm getting a build error in Outputable module: compiler/utils/Outputable.hs:1046:28: Not in scope: type constructor or class ‘CallStack’ compiler/utils/Outputable.hs:1047:23: Not in scope: ‘showCallStack’ The most likely culprit is 80d7ce8038a100f6797a89755c893c6f67f18a30, which added this: #if __GLASGOW_HASKELL__ >= 710 pprSTrace :: (?location :: CallStack) => SDoc -> a -> a pprSTrace = pprTrace (showCallStack ?location) #else pprSTrace :: SDoc -> a -> a pprSTrace = pprTrace "no callstack info" #endif The most interesting thing is that if I change the definition of pprSTrace in the first branch of #if to be identical to the definition in the second branch, then I get warnings that GHC.Stack and GHC.Exception imports are redundant. Any ideas what might be going on here? I'm compiling using GHC 7.10.1. This happens in a clean build tree. Janek --- Politechnika Łódzka Lodz University of Technology Treść tej wiadomości zawiera informacje przeznaczone tylko dla adresata. Jeżeli nie jesteście Państwo jej adresatem, bądź otrzymaliście ją przez pomyłkę prosimy o powiadomienie o tym nadawcy oraz trwałe jej usunięcie. This email contains information intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient or if you have received this message in error, please notify the sender and delete it from your system.

I just verified this does not happen when building with GHC 7.8.4, so if our build machines (harbormaster, travis) are building using 7.8.4 this might not show up in the logs. Janek Dnia piątek, 13 listopada 2015, Jan Stolarek napisał:
I am unable to build current HEAD. I'm getting a build error in Outputable module:
compiler/utils/Outputable.hs:1046:28: Not in scope: type constructor or class ‘CallStack’
compiler/utils/Outputable.hs:1047:23: Not in scope: ‘showCallStack’
The most likely culprit is 80d7ce8038a100f6797a89755c893c6f67f18a30, which added this:
#if __GLASGOW_HASKELL__ >= 710 pprSTrace :: (?location :: CallStack) => SDoc -> a -> a pprSTrace = pprTrace (showCallStack ?location) #else pprSTrace :: SDoc -> a -> a pprSTrace = pprTrace "no callstack info" #endif
The most interesting thing is that if I change the definition of pprSTrace in the first branch of #if to be identical to the definition in the second branch, then I get warnings that GHC.Stack and GHC.Exception imports are redundant. Any ideas what might be going on here? I'm compiling using GHC 7.10.1. This happens in a clean build tree.
Janek
--- Politechnika Łódzka Lodz University of Technology
Treść tej wiadomości zawiera informacje przeznaczone tylko dla adresata. Jeżeli nie jesteście Państwo jej adresatem, bądź otrzymaliście ją przez pomyłkę prosimy o powiadomienie o tym nadawcy oraz trwałe jej usunięcie.
This email contains information intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient or if you have received this message in error, please notify the sender and delete it from your system. _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
--- Politechnika Łódzka Lodz University of Technology Treść tej wiadomości zawiera informacje przeznaczone tylko dla adresata. Jeżeli nie jesteście Państwo jej adresatem, bądź otrzymaliście ją przez pomyłkę prosimy o powiadomienie o tym nadawcy oraz trwałe jej usunięcie. This email contains information intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient or if you have received this message in error, please notify the sender and delete it from your system.

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 13.11.2015 19:00, Jan Stolarek wrote:
I am unable to build current HEAD. I'm getting a build error in Outputable module
I just ran into this myself. The ">= 710" is wrong, since 7.10 does not have CallStack yet. Changing it to "> 710" lets you compile GHC again, at the cost of a redundant import warning. David/quchen -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJWR0x/AAoJELrQsaT5WQUssXMH/2KLJbUiaiqgT5jqUKWclBcm bKSYXc5rgXWNzhWI5Y6WkHkexm0lP/VuDXJhL5xryoZoas5q2lo1YsvQ64+Ur5bl 94b7h7Q6pc+lm16dPR6G4SDo9enE38vjvpYMF7OD51IdnFpvWbqmliLc0moLK0rO S/JHa2AdjBt2zPbr+PE3iJGX1ARqyLjszPcawR+YzJzbBxtPb2NRdnfLNHLOMLXZ AO/Auy/GivfLCQHBd30g2vbniGa1BNyUpbV62BivFm2zbMf/zTQi+CQoubewdEBo sLRoceFzVw8BmMNMuZycINuID6gsQJ4Ir/UP/l17+gJI8DNCGCzs8pOVFYwYwas= =iFM0 -----END PGP SIGNATURE-----
participants (2)
-
David Luposchainsky
-
Jan Stolarek