Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,344
    • Issues 5,344
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 563
    • Merge requests 563
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #7366
Closed
Open
Issue created Oct 24, 2012 by Ben Gamari@bgamari🐢Maintainer

Strange data corruption with HEAD

Since at least 5f37e0c7 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.

Trac metadata
Trac field Value
Version
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking