input-output-hk / cardano-rt-view

RTView: real-time watching for Cardano nodes (ARCHIVED)
Apache License 2.0
59 stars 11 forks source link

Try fixing windows build #126

Open jbgi opened 3 years ago

jbgi commented 3 years ago

currently failing with https://hydra.iohk.io/build/5229557/nixlog/3

denisshevchenko commented 3 years ago

Yes, I still see the same error during win64 build.

angerman commented 3 years ago

Alright, let's try to reproduce this. There are two issues here:

---> Starting remote-iserv on port 6741
---| remote-iserv should have started on 6741
Could not load wine-gecko. HTML rendering will be disabled.
wine: configuration in '/build' has been updated.
Listening on port 6741
0009:err:module:import_dll Library mcfgthread-12.dll (which is needed by L"Z:\\nix\\store\\cxjfnx3fi8qzm4lg5l60ab0dnvs44lvj-x86_64-w64-mingw32-stage-final-gcc-debug-9.3.0\\x86_64-w64-mingw32\\lib\\libgcc_s_seh-1.dll") not found
0009:err:module:import_dll Library libgcc_s_seh-1.dll (which is needed by L"Z:\\nix\\store\\cxjfnx3fi8qzm4lg5l60ab0dnvs44lvj-x86_64-w64-mingw32-stage-final-gcc-debug-9.3.0\\x86_64-w64-mingw32\\lib\\libstdc++-6.DLL") not found
0009:err:module:import_dll Library mcfgthread-12.dll (which is needed by L"Z:\\nix\\store\\cxjfnx3fi8qzm4lg5l60ab0dnvs44lvj-x86_64-w64-mingw32-stage-final-gcc-debug-9.3.0\\x86_64-w64-mingw32\\lib\\libstdc++-6.DLL") not found
0009:err:module:import_dll Library mcfgthread-12.dll (which is needed by L"Z:\\nix\\store\\cxjfnx3fi8qzm4lg5l60ab0dnvs44lvj-x86_64-w64-mingw32-stage-final-gcc-debug-9.3.0\\x86_64-w64-mingw32\\lib\\libgcc_s_seh-1.dll") not found
0009:err:module:import_dll Library libgcc_s_seh-1.dll (which is needed by L"Z:\\nix\\store\\cxjfnx3fi8qzm4lg5l60ab0dnvs44lvj-x86_64-w64-mingw32-stage-final-gcc-debug-9.3.0\\x86_64-w64-mingw32\\lib\\libstdc++-6.dll") not found
0009:err:module:import_dll Library mcfgthread-12.dll (which is needed by L"Z:\\nix\\store\\cxjfnx3fi8qzm4lg5l60ab0dnvs44lvj-x86_64-w64-mingw32-stage-final-gcc-debug-9.3.0\\x86_64-w64-mingw32\\lib\\libstdc++-6.dll") not found
0009:err:module:import_dll Library libgcc_s_seh-1.dll (which is needed by L"Z:\\nix\\store\\cxjfnx3fi8qzm4lg5l60ab0dnvs44lvj-x86_64-w64-mingw32-stage-final-gcc-debug-9.3.0\\x86_64-w64-mingw32\\lib\\libstdc++-6.DLL") not found
0009:err:module:import_dll Library mcfgthread-12.dll (which is needed by L"Z:\\nix\\store\\cxjfnx3fi8qzm4lg5l60ab0dnvs44lvj-x86_64-w64-mingw32-stage-final-gcc-debug-9.3.0\\x86_64-w64-mingw32\\lib\\libstdc++-6.DLL") not found
0009:err:module:import_dll Library libgcc_s_seh-1.dll (which is needed by L"Z:\\nix\\store\\cxjfnx3fi8qzm4lg5l60ab0dnvs44lvj-x86_64-w64-mingw32-stage-final-gcc-debug-9.3.0\\x86_64-w64-mingw32\\lib\\libstdc++-6.dll") not found
0009:err:module:import_dll Library mcfgthread-12.dll (which is needed by L"Z:\\nix\\store\\cxjfnx3fi8qzm4lg5l60ab0dnvs44lvj-x86_64-w64-mingw32-stage-final-gcc-debug-9.3.0\\x86_64-w64-mingw32\\lib\\libstdc++-6.dll") not found
iserv-proxy: addDLL: \nix\store\cxjfnx3fi8qzm4lg5l60ab0dnvs44lvj-x86_64-w64-mingw32-stage-fi: openBinaryFile: does not exist (No such file or directory)
remote-iserv.exe: {handle: <socket: 152>}: GHCi.Message.remoteCall: end of file

<no location info>: error: ghc: ghc-iserv terminated (1)

One is the lack of dlls, mcfgthread-12.dll and libgcc_s_seh-1.dll are missing. These probably just need to be copied in the wine setup next to the iserv executable. And this change is likely due to the mcfg thread support logic in recent nixpkgs gccs.

iserv-proxy: addDLL: \nix\store\cxjfnx3fi8qzm4lg5l60ab0dnvs44lvj-x86_64-w64-mingw32-stage-fi: openBinaryFile: does not exist (No such file or directory)

this one I find a bit more concerning, it appears to be some truncation? I really hope this is just a fluke and will go away with the fixed copying of the libraries.