[GHC] #11604: Build system fails after submodule update

#11604: Build system fails after submodule update -------------------------------------+------------------------------------- Reporter: niteria | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.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: -------------------------------------+------------------------------------- I got [https://phabricator.haskell.org/P100 this] error after updating the transformers submodule with `git submodule update --remote libraries/transformers`. Steps to repro: {{{ git checkout 426a25c719f74054758eaaf15daf5760f8d068fb make clean && make distclean && ./boot && ./configure && make git submodule update --remote libraries/transformers make }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11604 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11604: Build system fails after submodule update -------------------------------------+------------------------------------- Reporter: niteria | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.1 Resolution: | 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: | -------------------------------------+------------------------------------- Comment (by thomie): What was the state of the submodules before the first call to `make`? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11604#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11604: Build system fails after submodule update -------------------------------------+------------------------------------- Reporter: niteria | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.1 Resolution: | 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: | -------------------------------------+------------------------------------- @@ -8,0 +8,1 @@ + git submodule update New description: I got [https://phabricator.haskell.org/P100 this] error after updating the transformers submodule with `git submodule update --remote libraries/transformers`. Steps to repro: {{{ git checkout 426a25c719f74054758eaaf15daf5760f8d068fb git submodule update make clean && make distclean && ./boot && ./configure && make git submodule update --remote libraries/transformers make }}} -- Comment (by niteria): They were in sync with `426a25c719f74054758eaaf15daf5760f8d068fb`, the state you get after {{{ git checkout 426a25c719f74054758eaaf15daf5760f8d068fb git submodule update }}} I'll update the repro to reflect that. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11604#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11604: Build system fails after submodule update -------------------------------------+------------------------------------- Reporter: niteria | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.1 Resolution: | 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: | -------------------------------------+------------------------------------- Comment (by thomie): Also: * what is the content of your `mk/build.mk` file? * what is the version of your bootstrap compiler (stage0)? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11604#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11604: Build system fails after submodule update -------------------------------------+------------------------------------- Reporter: niteria | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.1 Resolution: | 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: | -------------------------------------+------------------------------------- Comment (by thomie): And the sha1 of transformers that you currently get when you run `git submodule update --remote libraries/transformers`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11604#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11604: Build system fails after submodule update -------------------------------------+------------------------------------- Reporter: niteria | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.1 Resolution: | 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: | -------------------------------------+------------------------------------- Comment (by niteria): I will try to repro in a controlled way from a clean checkout and post the results here. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11604#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11604: Build system fails after submodule update -------------------------------------+------------------------------------- Reporter: niteria | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.1 Resolution: | 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: | -------------------------------------+------------------------------------- Comment (by niteria): Ok, it didn't repro in the same way when I tried. I suspect that when it happened I first built with `stage=2` and then when it failed I tried `stage=1` and it still failed. I run into a different problem though: {{{ /data/users/bnitka/ghc- clena2-t11604/compiler/stage1/build/libHSghc-8.1.a(BasicTypes.o): In function `ciAI_info': (.text+0x1d01): undefined reference to `ghc_SrcLoc_zdtr1R2_closure' /data/users/bnitka/ghc- clena2-t11604/compiler/stage1/build/libHSghc-8.1.a(BasicTypes.o): In function `ciBO_info': (.text+0x1d61): undefined reference to `ghc_SrcLoc_zdcr1R3_closure' /data/users/bnitka/ghc- clena2-t11604/compiler/stage1/build/libHSghc-8.1.a(BasicTypes.o): In function `ciBO_info': (.text+0x1db9): undefined reference to `ghc_SrcLoc_zdtr1R2_closure' /data/users/bnitka/ghc- clena2-t11604/compiler/stage1/build/libHSghc-8.1.a(BasicTypes.o): In function `ciCv_info': (.text+0x1e19): undefined reference to `ghc_SrcLoc_zdcr1R3_closure' /data/users/bnitka/ghc- clena2-t11604/compiler/stage1/build/libHSghc-8.1.a(BasicTypes.o): In function `SinG_srt': (.data+0x7d30): undefined reference to `ghc_SrcLoc_zdtr1R2_closure' /data/users/bnitka/ghc- clena2-t11604/compiler/stage1/build/libHSghc-8.1.a(BasicTypes.o): In function `SinG_srt': (.data+0x7d38): undefined reference to `ghc_SrcLoc_zdcr1R3_closure' collect2: ld returned 1 exit status }}} I got it from: {{{ git checkout 426a25c719f74054758eaaf15daf5760f8d068fb git submodule update make clean && make distclean && ./boot && ./configure && make git submodule update --remote libraries/transformers make }}} where my `mk/build.mk` is https://phabricator.haskell.org/P102 my stage0 is `The Glorious Glasgow Haskell Compilation System, version 7.10.2` and the sha1 is `10348c4bbf60debbfc82463e1035aca1cb7b51bc` -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11604#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11604: Build system fails after submodule update -------------------------------------+------------------------------------- Reporter: niteria | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.1 Resolution: | 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: | -------------------------------------+------------------------------------- Comment (by thomie): I did not manage to reproduce this issue, using the steps from comment:6. The only difference is that I'm using 7.10.3 instead of 7.10.2. Could that be it? I did see this, but disabled it by adding `libraries/transformers_dist- install_EXTRA_HC_OPTS += -Wno-orphan` to `mk/warnings.mk`, as suggested in #11600. {{{ "inplace/bin/ghc-stage1" -hisuf hi -osuf o -hcsuf hc -static -O0 -H64m -Wall -Werror -this-unit-id transformers-0.5.2.0 -hide-all-packages -i -ilibraries/transformers/. -ilibraries/transformers/dist-install/build -ilibraries/transformers/dist-install/build/autogen -Ilibraries/transformers/dist-install/build -Ilibraries/transformers/dist- install/build/autogen -Ilibraries/transformers/. -optP-include -optPlibraries/transformers/dist-install/build/autogen/cabal_macros.h -package-id base-4.9.0.0 -XHaskell98 -O0 -no-user-package-db -rtsopts -Wno-unused-matches -Wno-unused-imports -Wno-redundant-constraints -Wno- deprecated-flags -Wnoncanonical-monad-instances -odir libraries/transformers/dist-install/build -hidir libraries/transformers /dist-install/build -stubdir libraries/transformers/dist-install/build -dynamic-too -c libraries/transformers/./Control/Monad/Trans/Error.hs -o libraries/transformers/dist-install/build/Control/Monad/Trans/Error.o -dyno libraries/transformers/dist- install/build/Control/Monad/Trans/Error.dyn_o libraries/transformers/Control/Monad/Trans/Error.hs:95:1: warning: Orphan instance: instance [safe] Error e => Alternative (Either e) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. libraries/transformers/Control/Monad/Trans/Error.hs:100:1: warning: Orphan instance: instance [safe] Error e => MonadPlus (Either e) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11604#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC