[GHC] #13166: Warning: Can't find file "C:\...\lib/include\ghcversion.h" in directories
GHC
ghc-devs at haskell.org
Sun Jan 22 14:39:09 UTC 2017
#13166: Warning: Can't find file "C:\...\lib/include\ghcversion.h" in directories
-------------------------------------+-------------------------------------
Reporter: domenkozar | Owner:
Type: bug | Status: new
Priority: low | Milestone:
Component: Compiler | Version: 8.0.2
Keywords: | Operating System: Windows
Architecture: | Type of failure: Incorrect
Unknown/Multiple | error/warning at compile-time
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
I'm not exactly sure yet where this is coming from, but I'd like to report
an warning on Windows during preprocessing phase:
{{{
[00:03:39] Preprocessing library cardano-sl-0.1.0.0...
[00:03:39] Warning: Can't find file
"C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.1\lib/include\ghcversion.h"
in directories
[00:03:39] src/Pos
[00:03:39] .
[00:03:39] .stack-work\dist\b7fec021\build
[00:03:39] .stack-work\dist\b7fec021\build
[00:03:39] .stack-work\dist\b7fec021\build\autogen
[00:03:39] .stack-work\dist\b7fec021\build
[00:03:39] C:\OpenSSL-Win64\include
[00:03:39]
C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\include
[00:03:39] C:\projects\pos-haskell-prototype\rocksdb\include
[00:03:39] C:\OpenSSL-Win64\include
[00:03:39]
C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\include
[00:03:39] C:\projects\pos-haskell-prototype\rocksdb\include
[00:03:39] C:\sr\snapshots\a78c6a89\lib\x86_64-windows-ghc-8.0.1
\vector-algorithms-0.7.0.1-8R8UpWgvBC926XMxBjYPpx\include
[00:03:39] C:\sr\snapshots\a78c6a89\lib\x86_64-windows-
ghc-8.0.1\zlib-0.6.1.2-4CWLN1T27kOJhNvXgy46ZV\include
[00:03:39]
C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.1\lib\process-1.4.2.0\include
[00:03:39] C:\sr\snapshots\a78c6a89\lib\x86_64-windows-
ghc-8.0.1\vector-0.11.0.0-BEDZb5o2QOhGbIm6ky7rl6\include
[00:03:39] C:\sr\snapshots\a78c6a89\lib\x86_64-windows-ghc-8.0.1\old-
time-1.1.0.3-IcvdkJUsE9M8t3io8peAEp\include
[00:03:39]
C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.1\lib\directory-1.2.6.2\include
[00:03:39] C:\sr\snapshots\a78c6a89\lib\x86_64-windows-
ghc-8.0.1\primitive-0.6.1.0-Ip44DqhfCp21tTUYbecwa\include
[00:03:39]
C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.1\lib\time-1.6.0.1\include
[00:03:39]
C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.1\lib\Win32-2.3.1.1\include
[00:03:39] C:\sr\snapshots\a78c6a89\lib\x86_64-windows-
ghc-8.0.1\network-2.6.3.1-nK9qnsiJR03CWuPIGMmX\include
[00:03:39]
C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.1\lib\bytestring-0.10.8.1\include
[00:03:39]
C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.1\lib\base-4.9.0.0\include
[00:03:39]
C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.1\lib
\integer-gmp-1.0.0.1\include
[00:03:39]
C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.1\lib/include
[00:03:39] Asked for by: src/Pos/CLI.hs at line 2 col 1
}}}
It appears to trigger for each module using cpphs. The file is present, so
I suspect the problem is in unix path character in
`C:\Users\appveyor\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.1\lib/include\ghcversion.h`.
Using verbose mode we can observe that's the case:
{{{
"cpphs" "-DWITH_WEB" "-DWITH_WALLET" "-include" ".stack-
work\dist\ca59d0ab\build\autogen\cabal_macros.h" "--cpp" "-I" ".stack-
work\dist\ca59d0ab\build" "-I" ".stack-work\dist\ca59d0ab\build" "-I"
".stack-work\dist\ca59d0ab\build\autogen" "-I" ".stack-
work\dist\ca59d0ab\build" "-I" "C:\OpenSSL-Win64\include" "-I"
"C:\Users\Administrator\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\include"
"-I" "C:\rocksdb\include" "-I" "C:\OpenSSL-Win64\include" "-I"
"C:\Users\Administrator\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\include"
"-I" "C:\rocksdb\includ
e" "-I" "C:\sr\snapshots\b3566c00\lib\x86_64-windows-ghc-8.0.2\vector-
algorithms-0.7.0.1-C2u1KYklHg84I6SQQVEAin\include" "-I"
"C:\sr\snapshots\bb34f894\lib\x86_64-windows-
ghc-8.0.2\zlib-0.6.1.2-7negTfm2ujt1gW4wr40MUp\include" "-I"
"C:\sr\snapshots\bb34f894\lib\x86_64-windows-
ghc-8.0.2\process-1.4.2.0-KoK49SuYVPk1TQ4YVt6ZK5\include" "-I"
"C:\sr\snapshots\bb34f894\lib\x86_64-windows-
ghc-8.0.2\vector-0.11.0.0-LMwQhhnXj8U3T5Bm1JFxG\include" "-I"
"C:\sr\snapshots\bb34f894\lib\x86_64-windows-ghc-8.0.2\old-
time-1.1.0.3-KWRsMSdY26c2L27Y9n9cyq\include" "-I"
"C:\sr\snapshots\bb34f894\lib\x86_64-windows-
ghc-8.0.2\directory-1.2.6.2-qiZgXsB5o98ZsOYUWltfF\include" "-I"
"C:\sr\snapshots\bb34f894\lib\x86_64-windows-
ghc-8.0.2\primitive-0.6.1.0-6AbSTw9JXz141LE5p6LGH\include" "-I"
"C:\Users\Administrator\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\lib\time-1.6.0.1\include"
"-I"
"C:\Users\Administrator\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\lib\Win32-2.3.1.1\include"
"-I" "C:\sr\snapshots\bb34f894\lib\x86_64-windows-
ghc-8.0.2\network-2.6.3.1-AwRxOQvT8JM9e8zDFK7aCI\include" "-I"
"C:\Users\Administrator\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\lib\bytestring-0.10.8.
1\include" "-I"
"C:\Users\Administrator\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\lib\base-4.9.1.0\include"
"-I"
"C:\Users\Administrator\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\lib
\integer-gmp-1.0.0.1\include" "-I"
"C:\Users\Administrator\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\lib/include"
"-D__GLASGOW_HASKELL__=800" "-include"
"C:\Users\Administrator\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\lib/include\ghcversion.h"
"-Dmingw32_BUILD_OS=1" "-Dx86_64_BUILD_ARCH=1" "-Dmingw32_HOST_OS=1"
"-Dx86_64_HOST_ARCH=1" "-D__GLASGOW_HASKELL_TH__=1" "-D_
_SSE__=1" "-D__SSE2__=1"
"-includeC:\Users\ADMINI~1\AppData\Local\Temp\2\ghc2384_0\ghc_18.h" "-x"
"assembler-with-cpp" "src\Pos\Binary\Crypto.hs" "-o"
"C:\Users\ADMINI~1\AppData\Local\Temp\2\ghc2384_0\ghc_17.hscpp"
}}}
I highly suspect https://github.com/ghc/ghc/blob/master/utils/ghc-
pkg/Main.hs#L1956 since it does some unclear path mungling, probably
leaving undosified suffix. Note that those functions were copied from
`compiler/main/SysTools.hs` which changed significantly.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13166>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list