datalad / git-annex

A non-official clone of git-annex established for DataLad purposes. No PRs will be merged, but could be used to test perspective git-annex patches. Official git-annex repository: https://git.kitenet.net/index.cgi/git-annex.git/
16 stars 3 forks source link

windows build FTBFS #124

Closed yarikoptic closed 2 years ago

yarikoptic commented 2 years ago

https://github.com/datalad/git-annex/runs/6267806884?check_suite_focus=true

Attn @joeyh , may be @jwodder sees a quick fix to contribute?

entropy                          > C://Users//runneradmin//AppData//Local//Programs//stack//x86_64-windows//ghc-8.10.7//mingw//bin/ld.exe: testGetentropy-5620\testGetentropy.o:testGetentropy.c:(.text+0x1a): undefined reference to `getentropy'
entropy                          > collect2.exe: error: ld returned 1 exit status
entropy                          > `gcc.exe' failed in phase `Linker'. (Exit code: 1)
entropy                          > Result of getentropy() Test: False
entropy                          > Preprocessing library for entropy-0.4.1.6..
entropy                          > Building library for entropy-0.4.1.6..
entropy                          > [1 of 2] Compiling System.EntropyWindows
entropy                          > 
entropy                          > System\EntropyWindows.hs:100:1: warning: [-Wunsupported-calling-conventions]
entropy                          >     * the 'stdcall' calling convention is unsupported on this platform,
entropy                          >       treating as ccall
entropy                          >     * When checking declaration:
entropy                          >         foreign import stdcall unsafe "CryptAcquireContextA" c_cryptAcquireCtx
entropy                          >           :: Ptr HCRYPTPROV
entropy                          >              -> CString -> CString -> Word32 -> Word32 -> IO Int32
entropy                          >     |
entropy                          > 100 | foreign import stdcall unsafe "CryptAcquireContextA"
entropy                          >     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
entropy                          > 
entropy                          > System\EntropyWindows.hs:102:1: warning: [-Wunsupported-calling-conventions]
entropy                          >     * the 'stdcall' calling convention is unsupported on this platform,
entropy                          >       treating as ccall
entropy                          >     * When checking declaration:
entropy                          >         foreign import stdcall unsafe "CryptGenRandom" c_cryptGenRandom
entropy                          >           :: HCRYPTPROV -> Word32 -> Ptr Word8 -> IO Int32
entropy                          >     |
entropy                          > 102 | foreign import stdcall unsafe "CryptGenRandom"
entropy                          >     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
entropy                          > 
entropy                          > System\EntropyWindows.hs:104:1: warning: [-Wunsupported-calling-conventions]
entropy                          >     * the 'stdcall' calling convention is unsupported on this platform,
entropy                          >       treating as ccall
entropy                          >     * When checking declaration:
entropy                          >         foreign import stdcall unsafe "CryptReleaseContext" c_cryptReleaseCtx
entropy                          >           :: HCRYPTPROV -> Word32 -> IO Int32
entropy                          >     |
entropy                          > 104 | foreign import stdcall unsafe "CryptReleaseContext"
entropy                          >     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
happy                            > [17 of 19] Compiling Target
happy                            > [18 of 19] Compiling ProduceCode
entropy                          > [2 of 2] Compiling System.Entropy
entropy                          > 
entropy                          > copy/register
entropy                          > Installing library in C:\sr\snapshots\aebb22c9\lib\x86_64-windows-ghc-8.10.7\entropy-0.4.1.6-9RdbcbOwuiJHKuR95n64so
entropy                          > Registering library for entropy-0.4.1.6..
happy                            > [19 of 19] Compiling Main
happy                            > 
happy                            > src\Main.lhs:35:3: warning: [-Wunused-imports]
happy                            >     The import of `Foreign.Marshal.Array' is redundant
happy                            >       except perhaps to import instances from `Foreign.Marshal.Array'
happy                            >     To import instances alone, use: import Foreign.Marshal.Array()
happy                            >    |
happy                            > 35 | > import Foreign.Marshal.Array
happy                            >    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
happy                            > 
happy                            > src\Main.lhs:36:3: warning: [-Wunused-imports]
happy                            >     The import of `Foreign' is redundant
happy                            >       except perhaps to import instances from `Foreign'
happy                            >     To import instances alone, use: import Foreign()
happy                            >    |
happy                            > 36 | > import Foreign
happy                            >    |   ^^^^^^^^^^^^^^
happy                            > 
happy                            > src\Main.lhs:37:3: warning: [-Wunused-imports]
happy                            >     The import of `Foreign.C' is redundant
happy                            >       except perhaps to import instances from `Foreign.C'
happy                            >     To import instances alone, use: import Foreign.C()
happy                            >    |
happy                            > 37 | > import Foreign.C
happy                            >    |   ^^^^^^^^^^^^^^^^
happy                            > [ 1 of 19] Compiling AbsSyn [C:\\Users\RUNNER~1\AppData\Local\Temp\ghc6864_0\ghc_6.lpp changed]
happy                            > [ 2 of 19] Compiling GenUtils [C:\\Users\RUNNER~1\AppData\Local\Temp\ghc6864_0\ghc_12.lpp changed]
happy                            > [ 6 of 19] Compiling Lexer [C:\\Users\RUNNER~1\AppData\Local\Temp\ghc6864_0\ghc_24.lpp changed]
happy                            > [ 7 of 19] Compiling AttrGrammar [C:\\Users\RUNNER~1\AppData\Local\Temp\ghc6864_0\ghc_42.lpp changed]
happy                            > [ 9 of 19] Compiling Grammar [C:\\Users\RUNNER~1\AppData\Local\Temp\ghc6864_0\ghc_15.lpp changed]
happy                            > [10 of 19] Compiling LALR [C:\\Users\RUNNER~1\AppData\Local\Temp\ghc6864_0\ghc_21.lpp changed]
happy                            > [11 of 19] Compiling First [C:\\Users\RUNNER~1\AppData\Local\Temp\ghc6864_0\ghc_9.lpp changed]
happy                            > [14 of 19] Compiling Info [C:\\Users\RUNNER~1\AppData\Local\Temp\ghc6864_0\ghc_18.lpp changed]
happy                            > [16 of 19] Compiling ProduceGLRCode [C:\\Users\RUNNER~1\AppData\Local\Temp\ghc6864_0\ghc_34.lpp changed]
happy                            > [17 of 19] Compiling Target [C:\\Users\RUNNER~1\AppData\Local\Temp\ghc6864_0\ghc_39.lpp changed]
happy                            > [18 of 19] Compiling ProduceCode [C:\\Users\RUNNER~1\AppData\Local\Temp\ghc6864_0\ghc_31.lpp changed]
happy                            > [19 of 19] Compiling Main [C:\\Users\RUNNER~1\AppData\Local\Temp\ghc6864_0\ghc_1.lpp changed]
happy                            > 
happy                            > src\Main.lhs:35:3: warning: [-Wunused-imports]
happy                            >     The import of `Foreign.Marshal.Array' is redundant
happy                            >       except perhaps to import instances from `Foreign.Marshal.Array'
happy                            >     To import instances alone, use: import Foreign.Marshal.Array()
happy                            >    |
happy                            > 35 | > import Foreign.Marshal.Array
happy                            >    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
happy                            > 
happy                            > src\Main.lhs:36:3: warning: [-Wunused-imports]
happy                            >     The import of `Foreign' is redundant
happy                            >       except perhaps to import instances from `Foreign'
happy                            >     To import instances alone, use: import Foreign()
happy                            >    |
happy                            > 36 | > import Foreign
happy                            >    |   ^^^^^^^^^^^^^^
happy                            > 
happy                            > src\Main.lhs:37:3: warning: [-Wunused-imports]
happy                            >     The import of `Foreign.C' is redundant
happy                            >       except perhaps to import instances from `Foreign.C'
happy                            >     To import instances alone, use: import Foreign.C()
happy                            >    |
happy                            > 37 | > import Foreign.C
happy                            >    |   ^^^^^^^^^^^^^^^^
happy                            > Linking .stack-work\dist\274b403a\build\happy\happy.exe ...
happy                            > 
happy                            > copy/register
happy                            > Installing executable happy in C:\sr\snapshots\aebb22c9\bin
C:\Users\runneradmin\AppData\Local\Temp\stack-d1f[1251](https://github.com/datalad/git-annex/runs/6267806884?check_suite_focus=true#step:16:1251)1bf8a89f3\entropy-0.4.1.6\.stack-work\dist\274b403a\setup: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:RemoveDirectory "\\\\?\\C:\\Users\\runneradmin\\AppData\\Local\\Temp\\stack-d1f12511bf8a89f3\\entropy-0.4.1.6\\.stack-work\\dist\\274b403a\\setup": unsatisfied constraints (The directory is not empty.)
yarikoptic commented 2 years ago

that was addressed!

joeyh commented 1 year ago

Whatever caused this it cleared up today.

I don't know what even caused stack to try to rebuild dependencies, since there have been no changes to dependencies that could have caused it to need to rebuild them.

-- see shy jo