Error message:
  ==============

make[1]: Circular main/TmpFiles.o <- main/DriverUtil.hi dependency dropped.
ghc -ldl -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen -Iparser 
-iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:profiling:parser:usageSP:cprAnalysis:javaGen:compMan:nativeGen
  -package concurrent -package posix -package text -package util -recomp -O 
-Rghc-timing -H16m    -c main/TmpFiles.hs -o main/TmpFiles.o -osuf o

main/TmpFiles.hs:86: Variable not in scope: `kludgedSystem'

I am running Linux with ghc-4.08.1.



  Diagnosis:
  ==========

The following changes must have caused the problem.  (Ok, this is not
really an in-depth analysis of the problem, but it's narrowing down
things I hope :).


/cvs/fptools/ghc/compiler/main $ cvs diff -r 1.15 -r 1.16 TmpFiles.hs 
Index: TmpFiles.hs
===================================================================
RCS file: /cvs/fptools/ghc/compiler/main/TmpFiles.hs,v
retrieving revision 1.15
retrieving revision 1.16
diff -r1.15 -r1.16
2c2
< -- $Id: TmpFiles.hs,v 1.15 2001/02/12 13:33:47 simonmar Exp $
---
> -- $Id: TmpFiles.hs,v 1.16 2001/03/08 09:50:18 simonmar Exp $
18c18,19
<    v_TmpDir
---
>    v_TmpDir,
>    kludgedSystem
21a23
> import DriverUtil
22a25
> import Panic
24d26
< import DriverUtil
92a95,116
> 
> 
> -- system that works feasibly under Windows (i.e. passes the command line to sh,
> -- because system() under Windows doesn't look at SHELL, and always uses CMD.EXE)
> kludgedSystem cmd phase_name
>  = do
> #ifndef mingw32_TARGET_OS
>    exit_code <- system cmd `catchAllIO` 
>                  (\_ -> throwDyn (PhaseFailed phase_name (ExitFailure 1)))
> #else
>    pid <- myGetProcessID
>    tmp_dir <- readIORef v_TmpDir
>    let tmp = tmp_dir++"/sh"++show pid
>    h <- openFile tmp WriteMode
>    hPutStrLn h cmd
>    hClose h
>    exit_code <- system ("sh - " ++ tmp) `catchAllIO` 
>                  (\_ -> removeFile tmp >>
>                           throwDyn (PhaseFailed phase_name (ExitFailure 1)))
>    removeFile tmp
> #endif
>    return exit_code



  Workaround:
  ===========

Undo the changes:

/cvs/fptools/ghc/compiler/main $ cvs update -r 1.15 TmpFiles.hs && cd ../../
/cvs/fptools/ghc $ make

Unfortunately, kludgedSystem is now missing here:

ghc -ldl -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen -Iparser 
-iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:profiling:parser:usageSP:cprAnalysis:javaGen:compMan:nativeGen
  -package concurrent -package posix -package text -package util -recomp -O 
-Rghc-timing -H16m    -c main/PackageMaintenance.hs -o main/PackageMaintenance.o -osuf 
o

main/PackageMaintenance.hs:86:
    Variable not in scope: `kludgedSystem'

This is boring.  I will roll back to the Thursday revisions now...  (:


enjoy,
 -m.



-- 
Matthias Fischmann | Research Engineer               | +358 (9) 8565 7474
[EMAIL PROTECTED]         | SSH Communication Security Corp | +358 (40) 752 5291

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to