limix / bgen

A BGEN file format reader.
MIT License
10 stars 2 forks source link

On Windows Git Bash, bgen build fails all tests #9

Closed CarlKCarlK closed 4 years ago

CarlKCarlK commented 4 years ago

Here is the log. The internet suggests that xc0000135 might be a missing DLL, but I don't how to learn which one. Thanks!

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   117  100   117    0     0    433      0 --:--:-- --:--:-- --:--:--   433

 43 5398k   43 2353k    0     0  2264k      0  0:00:02  0:00:01  0:00:01 2264k
100 5398k  100 5398k    0     0  3889k      0  0:00:01  0:00:01 --:--:-- 8750k
-- Building for: Visual Studio 16 2019
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.17/Modules/GNUInstallDirs.cmake:225 (message):
  Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
  target architecture is known.  Please enable at least one language before
  including GNUInstallDirs.
Call Stack (most recent call first):
  cmake/limix.cmake:9 (include)
  CMakeLists.txt:2 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-------------------------------------------------------------------------------
Hello there. This is the bgen (3.0.3) project. We wish you an easy ride.
If by any chance you find in trouble, please, do not hesitate in contacting
us at <https://github.com/limix/bgen/issues/new>.
-------------------------------------------------------------------------------
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.18363.
-- The C compiler identification is MSVC 19.24.28316.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found ZLIB: C:/Program Files/zlib/lib/zlib.lib (found version "1.2.11") 
-- Found ZSTD: C:/Program Files/zstd/lib/zstd.lib  
-- Found ATHR: C:/Program Files/athr/lib/ATHR.LIB  
-- Configuring done
-- Generating done
-- Build files have been written to: M:/Temp/carl/tmp.ZIbhua79Djbgen/bgen-3.0.3/build
Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(467,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\ZERO_CHECK.vcxproj]
  Checking Build System
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(467,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
  Building Custom Rule M:/Temp/carl/tmp.ZIbhua79Djbgen/bgen-3.0.3/CMakeLists.txt
  buffer.c
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\depr\buffer.c(180,1): warning C4267: 'initializing': conversion from 'size_t' to 'long', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
  variants_index.c
  geno.c
  index.c
  io.c
  one.c
  two.c
  metafile.c
  str.c
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\str.c(31,21): warning C4244: 'function': conversion from 'uint64_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
  zlib.c
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\zip\zlib.c(52,1): warning C4267: 'initializing': conversion from 'size_t' to 'uInt', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
  zstd.c
  mmap.c
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\win\mmap.c(58,47): warning C4013: '_get_osfhandle' undefined; assuming extern returning int [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\win\mmap.c(58,51): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
  Generating Code...
  tpl.c
  variant.c
  file.c
  file.c
  tpl.c
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(317,52): warning C4244: '=': conversion from 'uintptr_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(624,37): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(627,10): warning C4013: 'close' undefined; assuming extern returning int [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(939,57): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1069,30): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1072,31): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1084,23): warning C4013: 'write' undefined; assuming extern returning int [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1094,25): warning C4013: '_chsize' undefined; assuming extern returning int [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1153,14): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1185,49): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1453,37): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1468,43): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1518,57): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1874,15): warning C4013: '_open' undefined; assuming extern returning int [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1882,22): warning C4267: 'function': conversion from 'size_t' to 'unsigned int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1890,24): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1902,23): warning C4013: 'open' undefined; assuming extern returning int [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(2009,55): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(2400,18): warning C4013: 'read' undefined; assuming extern returning int [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(2558,36): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(2567,48): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(2652,28): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(2661,40): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen.vcxproj]
  variant.c
     Creating library M:/Temp/carl/tmp.ZIbhua79Djbgen/bgen-3.0.3/build/Release/bgen.lib and object M:/Temp/carl/tmp.ZIbhua79Djbgen/bgen-3.0.3/build/Release/bgen.exp
  bgen.vcxproj -> M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\Release\bgen.dll
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(467,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
  Building Custom Rule M:/Temp/carl/tmp.ZIbhua79Djbgen/bgen-3.0.3/CMakeLists.txt
  buffer.c
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\depr\buffer.c(180,1): warning C4267: 'initializing': conversion from 'size_t' to 'long', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
  variants_index.c
  geno.c
  index.c
  io.c
  one.c
  two.c
  metafile.c
  str.c
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\str.c(31,21): warning C4244: 'function': conversion from 'uint64_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
  zlib.c
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\zip\zlib.c(52,1): warning C4267: 'initializing': conversion from 'size_t' to 'uInt', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
  zstd.c
  mmap.c
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\win\mmap.c(58,47): warning C4013: '_get_osfhandle' undefined; assuming extern returning int [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\win\mmap.c(58,51): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
  Generating Code...
  tpl.c
  variant.c
  file.c
  file.c
  tpl.c
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(317,52): warning C4244: '=': conversion from 'uintptr_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(624,37): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(627,10): warning C4013: 'close' undefined; assuming extern returning int [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(939,57): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1069,30): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1072,31): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1084,23): warning C4013: 'write' undefined; assuming extern returning int [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1094,25): warning C4013: '_chsize' undefined; assuming extern returning int [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1153,14): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1185,49): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1453,37): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1468,43): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1518,57): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1874,15): warning C4013: '_open' undefined; assuming extern returning int [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1882,22): warning C4267: 'function': conversion from 'size_t' to 'unsigned int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1890,24): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(1902,23): warning C4013: 'open' undefined; assuming extern returning int [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(2009,55): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(2400,18): warning C4013: 'read' undefined; assuming extern returning int [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(2558,36): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(2567,48): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(2652,28): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\src\tpl\tpl.c(2661,40): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\bgen_static.vcxproj]
  variant.c
  bgen_static.vcxproj -> M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\Release\bgen_static.lib
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(467,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_assert_interface_2.vcxproj]
  Building Custom Rule M:/Temp/carl/tmp.ZIbhua79Djbgen/bgen-3.0.3/test/CMakeLists.txt
  assert_interface_2.c
  test_assert_interface_2.vcxproj -> M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\Release\test_assert_interface_2.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(467,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_assert_interface_3.vcxproj]
  Building Custom Rule M:/Temp/carl/tmp.ZIbhua79Djbgen/bgen-3.0.3/test/CMakeLists.txt
  assert_interface_3.c
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\assert_interface_3.c(120,17): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_assert_interface_3.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\assert_interface_3.c(121,17): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_assert_interface_3.vcxproj]
  test_assert_interface_3.vcxproj -> M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\Release\test_assert_interface_3.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(467,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_assert_interface_3_complex.vcxproj]
  Building Custom Rule M:/Temp/carl/tmp.ZIbhua79Djbgen/bgen-3.0.3/test/CMakeLists.txt
  assert_interface_3_complex.c
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\assert_interface_3_complex.c(50,9): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_assert_interface_3_complex.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\assert_interface_3_complex.c(51,9): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_assert_interface_3_complex.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\assert_interface_3_complex.c(123,55): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_assert_interface_3_complex.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\assert_interface_3_complex.c(131,17): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_assert_interface_3_complex.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\assert_interface_3_complex.c(132,17): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_assert_interface_3_complex.vcxproj]
  test_assert_interface_3_complex.vcxproj -> M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\Release\test_assert_interface_3_complex.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(467,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_complex.vcxproj]
  Building Custom Rule M:/Temp/carl/tmp.ZIbhua79Djbgen/bgen-3.0.3/test/CMakeLists.txt
  complex.c
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\complex.c(149,49): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_complex.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\complex.c(152,35): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_complex.vcxproj]
  test_complex.vcxproj -> M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\Release\test_complex.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(467,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_haplotype.vcxproj]
  Building Custom Rule M:/Temp/carl/tmp.ZIbhua79Djbgen/bgen-3.0.3/test/CMakeLists.txt
  haplotype.c
  test_haplotype.vcxproj -> M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\Release\test_haplotype.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(467,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_index.vcxproj]
  Building Custom Rule M:/Temp/carl/tmp.ZIbhua79Djbgen/bgen-3.0.3/test/CMakeLists.txt
  index.c
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\index.c(33,1): warning C4244: 'initializing': conversion from 'size_t' to 'double', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_index.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\index.c(40,1): warning C4244: 'initializing': conversion from 'size_t' to 'double', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_index.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\index.c(43,1): warning C4244: 'initializing': conversion from 'size_t' to 'double', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_index.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\index.c(47,1): warning C4244: 'initializing': conversion from 'size_t' to 'double', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_index.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\index.c(50,1): warning C4244: 'initializing': conversion from 'size_t' to 'double', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_index.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\index.c(53,1): warning C4244: 'initializing': conversion from 'size_t' to 'double', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_index.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\index.c(57,1): warning C4244: 'initializing': conversion from 'size_t' to 'double', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_index.vcxproj]
  test_index.vcxproj -> M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\Release\test_index.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(467,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_metadata_example.vcxproj]
  Building Custom Rule M:/Temp/carl/tmp.ZIbhua79Djbgen/bgen-3.0.3/test/CMakeLists.txt
  metadata_example.c
  test_metadata_example.vcxproj -> M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\Release\test_metadata_example.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(467,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_open_genotype.vcxproj]
  Building Custom Rule M:/Temp/carl/tmp.ZIbhua79Djbgen/bgen-3.0.3/test/CMakeLists.txt
  open_genotype.c
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\open_genotype.c(133,39): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_open_genotype.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\open_genotype.c(194,39): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_open_genotype.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\open_genotype.c(204,53): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_open_genotype.vcxproj]
M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\test\open_genotype.c(207,39): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_open_genotype.vcxproj]
  test_open_genotype.vcxproj -> M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\Release\test_open_genotype.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(467,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_pbgen_example.vcxproj]
  Building Custom Rule M:/Temp/carl/tmp.ZIbhua79Djbgen/bgen-3.0.3/test/CMakeLists.txt
  pbgen_example.c
  test_pbgen_example.vcxproj -> M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\Release\test_pbgen_example.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(467,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_v12_zlib_layout2.vcxproj]
  Building Custom Rule M:/Temp/carl/tmp.ZIbhua79Djbgen/bgen-3.0.3/test/CMakeLists.txt
  v12_zlib_layout2.c
  example_files.c
  Generating Code...
  test_v12_zlib_layout2.vcxproj -> M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\Release\test_v12_zlib_layout2.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(467,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\test_zero_len_chrom_id.vcxproj]
  Building Custom Rule M:/Temp/carl/tmp.ZIbhua79Djbgen/bgen-3.0.3/test/CMakeLists.txt
  zero_len_chrom_id.c
  test_zero_len_chrom_id.vcxproj -> M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\test\Release\test_zero_len_chrom_id.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(467,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [M:\Temp\carl\tmp.ZIbhua79Djbgen\bgen-3.0.3\build\ALL_BUILD.vcxproj]
  Building Custom Rule M:/Temp/carl/tmp.ZIbhua79Djbgen/bgen-3.0.3/CMakeLists.txt
Test project M:/Temp/carl/tmp.ZIbhua79Djbgen/bgen-3.0.3/build
      Start  1: test_v12_zlib_layout2
 1/11 Test  #1: test_v12_zlib_layout2 .............Exit code 0xc0000135
***Exception:   0.04 sec

      Start  2: test_zero_len_chrom_id
 2/11 Test  #2: test_zero_len_chrom_id ............Exit code 0xc0000135
***Exception:   0.03 sec

      Start  3: test_pbgen_example
 3/11 Test  #3: test_pbgen_example ................Exit code 0xc0000135
***Exception:   0.02 sec

      Start  4: test_metadata_example
 4/11 Test  #4: test_metadata_example .............Exit code 0xc0000135
***Exception:   0.02 sec

      Start  5: test_haplotype
 5/11 Test  #5: test_haplotype ....................Exit code 0xc0000135
***Exception:   0.02 sec

      Start  6: test_complex
 6/11 Test  #6: test_complex ......................Exit code 0xc0000135
***Exception:   0.02 sec

      Start  7: test_index
 7/11 Test  #7: test_index ........................Exit code 0xc0000135
***Exception:   0.02 sec

      Start  8: test_open_genotype
 8/11 Test  #8: test_open_genotype ................Exit code 0xc0000135
***Exception:   0.02 sec

      Start  9: test_assert_interface_2
 9/11 Test  #9: test_assert_interface_2 ...........Exit code 0xc0000135
***Exception:   0.02 sec

      Start 10: test_assert_interface_3
10/11 Test #10: test_assert_interface_3 ...........Exit code 0xc0000135
***Exception:   0.02 sec

      Start 11: test_assert_interface_3_complex
11/11 Test #11: test_assert_interface_3_complex ...Exit code 0xc0000135
***Exception:   0.02 sec

0% tests passed, 11 tests failed out of 11

Total Test time (real) =   0.34 sec

The following tests FAILED:
      1 - test_v12_zlib_layout2 (Exit code 0xc0000135
)
      2 - test_zero_len_chrom_id (Exit code 0xc0000135
)
      3 - test_pbgen_example (Exit code 0xc0000135
)
      4 - test_metadata_example (Exit code 0xc0000135
)
      5 - test_haplotype (Exit code 0xc0000135
)
      6 - test_complex (Exit code 0xc0000135
)
      7 - test_index (Exit code 0xc0000135
)
      8 - test_open_genotype (Exit code 0xc0000135
)
      9 - test_assert_interface_2 (Exit code 0xc0000135
)
     10 - test_assert_interface_3 (Exit code 0xc0000135
)
     11 - test_assert_interface_3_complex (Exit code 0xc0000135
)
Errors while running CTest
CarlKCarlK commented 4 years ago

I have a work around: Manually add all four *.dll directories to one's path: e.g. set path=%path%;M:\Temp\carl\tmp.AVbJkvJefSbgen\bgen-3.0.3\build\Release;C:\Program Files\athr\bin;C:\Program Files\zlib\bin;C:\Program Files\zstd\bin Then the tests will run.

(I found this workaround by downloading the script from curl (I called it JerYI.sh) and then commenting out the "cleanup" code. That left the test*.exe's in the temp directory so I could run them and then I could see the messages about missing zlib.dll, ... bgen.dll.)

horta commented 4 years ago

Hi Carl, I have just released a new version of this library (4.0.0). It should probably be a release candidate but I can always release 4.0.1, 4.0.2, etc.

I will also write a Development section in the README.md to help further development.

CarlKCarlK commented 4 years ago

FYI: When I RUN_TESTS under Visual Studio, some pass and some don’t:

1>------ Build started: Project: RUN_TESTS, Configuration: Release x64 ------ 1>Test project D:/OneDrive/programs/bgen 1> Start 1: v12_zlib_layout2 1> 1/16 Test #1: v12_zlib_layout2 .................Exit code 0xc0000135 1>Exception: 0.02 sec 1> Start 2: zero_len_chrom_id 1> 2/16 Test #2: zero_len_chrom_id ................ Passed 0.05 sec 1> Start 3: pbgen_example 1> 3/16 Test #3: pbgen_example .................... Passed 0.03 sec 1> Start 4: metadata_example 1> 4/16 Test #4: metadata_example ................. Passed 0.02 sec 1> Start 5: haplotype 1> 5/16 Test #5: haplotype ........................Exit code 0xc0000135 1>Exception: 0.02 sec 1> Start 6: complex 1> 6/16 Test #6: complex ..........................Exit code 0xc0000135 1>Exception: 0.02 sec 1> Start 7: index 1> 7/16 Test #7: index ............................ Passed 0.04 sec 1> Start 8: open_genotype 1> 8/16 Test #8: open_genotype ....................Exit code 0xc0000135 1>Exception: 0.03 sec 1> Start 9: assert_interface_2 1> 9/16 Test #9: assert_interface_2 ...............Exit code 0xc0000135 1>Exception: 0.02 sec 1> Start 10: assert_interface_3 1>10/16 Test #10: assert_interface_3 ...............Exit code 0xc0000135 1>Exception: 0.02 sec 1> Start 11: assert_interface_3_complex 1>11/16 Test #11: assert_interface_3_complex .......Exit code 0xc0000135 1>***Exception: 0.03 sec 1> Start 12: wrong_bgen_files 1>12/16 Test #12: wrong_bgen_files ................. Passed 0.02 sec 1> Start 13: wrong_metadata_files 1>13/16 Test #13: wrong_metadata_files ............. Passed 0.02 sec 1> Start 14: variant_position_overflow 1>14/16 Test #14: variant_position_overflow ........ Passed 0.03 sec 1> Start 15: one_million 1>15/16 Test #15: one_million ...................... Passed 0.12 sec 1> Start 16: create_metafile 1>16/16 Test #16: create_metafile .................. Passed 0.04 sec 1> 1>56% tests passed, 7 tests failed out of 16 1> 1>Total Test time (real) = 0.66 sec 1> 1>The following tests FAILED: 1> 1 - v12_zlib_layout2 (Exit code 0xc0000135 1>) 1> 5 - haplotype (Exit code 0xc0000135 1>) 1> 6 - complex (Exit code 0xc0000135 1>) 1> 8 - open_genotype (Exit code 0xc0000135 1>) 1> 9 - assert_interface_2 (Exit code 0xc0000135 1>) 1> 10 - assert_interface_3 (Exit code 0xc0000135 1>) 1> 11 - assert_interface_3_complex (Exit code 0xc0000135 1>) 1>Errors while running CTest 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: The command "setlocal 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: "C:\Program Files\CMake\bin\ctest.exe" --force-new-ctest-process -C Release 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: :cmEnd 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: :cmErrorLevel 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: exit /b %1 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: :cmDone 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: :VCEnd" exited with code 8. 1>Done building project "RUN_TESTS.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

From: Danilo Horta notifications@github.com Sent: Monday, April 06, 2020 8:40 AM To: limix/bgen bgen@noreply.github.com Cc: Carl Kadie carlk@msn.com; Author author@noreply.github.com Subject: Re: [limix/bgen] On Windows Git Bash, bgen build fails all tests (#9)

Closed #9https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flimix%2Fbgen%2Fissues%2F9&data=02%7C01%7C%7C94943182d3794d5c980a08d7da40bdfa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637217843901916438&sdata=XaL8mhHjZDtQLKm1s6Ab8CxJ2PsZHJ5uHc39RNkLdo8%3D&reserved=0.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flimix%2Fbgen%2Fissues%2F9%23event-3205978835&data=02%7C01%7C%7C94943182d3794d5c980a08d7da40bdfa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637217843901926443&sdata=ChgII7lpOSbz3n6xzEp7LEV8O5aNbzm8DBaiUYPVJa4%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABR65P2LRRHS45JAHWULSZDRLHZUJANCNFSM4LURZSRA&data=02%7C01%7C%7C94943182d3794d5c980a08d7da40bdfa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637217843901936454&sdata=qjnfNK%2F74P9up9iEfQdxjt0EIlwJKcr4WapamvZfBUE%3D&reserved=0.

horta commented 4 years ago

Have you installed zstd and zlib? It looks like missing library.

Could you try run the tests manually? It will be in some subfolder of your build folder. Here for example:

~/code/bgen/build/test master*
base ❯ pwd
/Users/horta/code/bgen/build/test

~/code/bgen/build/test master*
base ❯ ./test_complex

~/code/bgen/build/test master*
base ❯ 

It might tell you the exact dll that is missing.

CarlKCarlK commented 4 years ago

Summary: Yes, it just couldn’t find the DLLs. Fixing that, allows all tests to pass.

Details: Yes, when I ran on the command line it reported the 3 libraries were missing. I tried adding them to my Windows Path (which I thought would work for finding DLL), but it didn’t. So, I instead just copied the 3 DLLs to the release directory. That worked (even from Visual Studio)

1>------ Build started: Project: RUN_TESTS, Configuration: Release x64 ------ 1>Test project D:/OneDrive/programs/bgen 1> Start 1: v12_zlib_layout2 1> 1/16 Test #1: v12_zlib_layout2 ................. Passed 0.65 sec 1> Start 2: zero_len_chrom_id 1> 2/16 Test #2: zero_len_chrom_id ................ Passed 0.01 sec 1> Start 3: pbgen_example 1> 3/16 Test #3: pbgen_example .................... Passed 0.01 sec 1> Start 4: metadata_example 1> 4/16 Test #4: metadata_example ................. Passed 0.01 sec 1> Start 5: haplotype 1> 5/16 Test #5: haplotype ........................ Passed 0.01 sec 1> Start 6: complex 1> 6/16 Test #6: complex .......................... Passed 0.01 sec 1> Start 7: index 1> 7/16 Test #7: index ............................ Passed 0.01 sec 1> Start 8: open_genotype 1> 8/16 Test #8: open_genotype .................... Passed 0.11 sec 1> Start 9: assert_interface_2 1> 9/16 Test #9: assert_interface_2 ............... Passed 0.02 sec 1> Start 10: assert_interface_3 1>10/16 Test #10: assert_interface_3 ............... Passed 0.07 sec 1> Start 11: assert_interface_3_complex 1>11/16 Test #11: assert_interface_3_complex ....... Passed 0.13 sec 1> Start 12: wrong_bgen_files 1>12/16 Test #12: wrong_bgen_files ................. Passed 0.01 sec 1> Start 13: wrong_metadata_files 1>13/16 Test #13: wrong_metadata_files ............. Passed 0.01 sec 1> Start 14: variant_position_overflow 1>14/16 Test #14: variant_position_overflow ........ Passed 0.01 sec 1> Start 15: one_million 1>15/16 Test #15: one_million ...................... Passed 0.02 sec 1> Start 16: create_metafile 1>16/16 Test #16: create_metafile .................. Passed 0.02 sec 1> 1>100% tests passed, 0 tests failed out of 16 1> 1>Total Test time (real) = 1.17 sec ========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========

From: Danilo Horta notifications@github.com Sent: Monday, April 06, 2020 9:11 AM To: limix/bgen bgen@noreply.github.com Cc: Carl Kadie carlk@msn.com; Author author@noreply.github.com Subject: Re: [limix/bgen] On Windows Git Bash, bgen build fails all tests (#9)

Have you installed zstd and zlib? It looks like missing library.

Could you try run the tests manually? It will be in some subfolder of your build folder. Here for example:

~/code/bgen/build/test master*

base ❯ pwd

/Users/horta/code/bgen/build/test

~/code/bgen/build/test master*

base ❯ ./test_complex

~/code/bgen/build/test master*

base ❯

It might tell you the exact dll that is missing.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flimix%2Fbgen%2Fissues%2F9%23issuecomment-609889539&data=02%7C01%7C%7Cfaf81a9abce242b0ab9b08d7da4528ea%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637217862873101605&sdata=51lRLZ96EP7nq7NAltgLq4RHp2EX6koVyECNEtBniC8%3D&reserved=0, or unsubscribehttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABR65P6OZ4SC6YDW2E3P3BDRLH5K5ANCNFSM4LURZSRA&data=02%7C01%7C%7Cfaf81a9abce242b0ab9b08d7da4528ea%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637217862873111605&sdata=7LSI%2F47yue21YauKGALvwxCqT20NGxGOloC9UsHQ690%3D&reserved=0.

horta commented 4 years ago

I will add the information about DLL in the Development section of README.md I'm writting. Windows DLL does not support RPATH or any way to hard-code the path to dependencies in a library. So the developer is left to do what you just did (copying files around) or adding their path to Windows Path (I think you need to reopen the terminal for it to work).