Ticket #7366 (closed bug: fixed)
Strange data corruption with HEAD
| Reported by: | bgamari | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.8.1 |
| Component: | Compiler | Version: | 7.7 |
| Keywords: | Cc: | bgamari@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Building GHC failed | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
Since at least 5f37e0c ghc has failed to build for me. The failure occurs early in the final stage build, showing up as,
"inplace/bin/ghc-stage2" -fPIC -dynamic -H32m -O -hide-all-packages -i -iutils/haddock/src -iutils/haddock/dist/build -iutils/haddock/dist/build/autogen -Iutils/haddock/dist/build -Iutils/haddock/dist/build/autogen -optP-DIN_GHC_TREE -optP-include -optPutils/haddock/dist/build/autogen/cabal_macros.h -package Cabal-1.17.0 -package array-0.4.0.1 -package base-4.6.0.0 -package containers-0.5.0.0 -package directory-1.2.0.0 -package filepath-1.3.0.1 -package ghc-7.7.20121024 -package pretty-1.1.1.0 -package xhtml-3000.2.1 -package deepseq-1.3.0.1 -funbox-strict-fields -O2 -Wall -fwarn-tabs -XHaskell2010 -XCPP -XDeriveDataTypeable -XScopedTypeVariables -XMagicHash -no-user-package-db -rtsopts -odir utils/haddock/dist/build -hidir utils/haddock/dist/build -stubdir utils/haddock/dist/build -hisuf dyn_hi -osuf dyn_o -hcsuf dyn_hc -c utils/haddock/src/Haddock/GhcUtils.hs -o utils/haddock/dist/build/Haddock/GhcUtils.dyn_o /m/vinci7/data1/dietz/ghc/ghc/inplace/lib/settings: openFile: does not exist (No such file or directory)
Investigation with strace shows that the path passed to open() has been corrupted,
open("/m/vinci7/data1/dietz/ghc/ghc/inplace/lib/settin@\270\215\240\347\277\212", O_RDONLY|O_NOCTTY|O_NONBLOCK) = -1 ENOENT (No such file or directory)
Furthermore, the stage 1 testsuite fails immediately,
$ make ../mk/boilerplate.mk:149: ../mk/ghcconfig_m_vinci7_data1_dietz_ghc_ghc_inplace_bin_ghc-stage2.mk: No such file or directory ../mk/ghc-config "/m/vinci7/data1/dietz/ghc/ghc/inplace/bin/ghc-stage2" >"../mk/ghcconfig_m_vinci7_data1_dietz_ghc_ghc_inplace_bin_ghc-stage2.mk"; if [ $? != 0 ]; then rm -f "../mk/ghcconfig_m_vinci7_data1_dietz_ghc_ghc_inplace_bin_ghc-stage2.mk"; exit 1; fi ghc-config: b���羌 make: *** [../mk/ghcconfig_m_vinci7_data1_dietz_ghc_ghc_inplace_bin_ghc-stage2.mk] Error 1
I am using gcc 4.4.6 and have tried both self-built ghc 7.4.2 and ghc 7.6.1 for stage 0.
Change History
Note: See
TracTickets for help on using
tickets.
