Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[package] libzip/1.10.1: fails on msys2 mingw64 #26034

Open
TrevorCash opened this issue Nov 25, 2024 · 2 comments
Open

[package] libzip/1.10.1: fails on msys2 mingw64 #26034

TrevorCash opened this issue Nov 25, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@TrevorCash
Copy link

TrevorCash commented Nov 25, 2024

Description

libzip/1.10.1 fails on msys2 mingw64

Package and Environment Details

  • Package Name/Version: libzip/1.10.1

Conan profile

[settings]
os=Windows
arch=x86_64
build_type=Release
compiler=gcc
compiler.version=14
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11

[buildenv]
MSYSTEM=MINGW64
CC=C:/msys64/mingw64/bin/gcc
CXX=C:/msys64/mingw64/bin/g++
SYSROOT=C:/msys64/mingw64

Steps to reproduce

conan install --requires=libzip/1.10.1 -pr:a=conan/windows-msys2-mingw.conan.profile --build=missing

Logs

$ conan install --requires=libzip/1.10.1 -pr:a=conan/windows-msys2-mingw.conan.profile --build=missing -vtrace
WARN: Downgrading cache from Conan 2.9.3 to 2.9.2

======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=14
os=Windows
[buildenv]
MSYSTEM=MINGW64
CC=C:/msys64/mingw64/bin/gcc
CXX=C:/msys64/mingw64/bin/g++
SYSROOT=C:/msys64/mingw64

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=14
os=Windows
[buildenv]
MSYSTEM=MINGW64
CC=C:/msys64/mingw64/bin/gcc
CXX=C:/msys64/mingw64/bin/g++
SYSROOT=C:/msys64/mingw64


======== Computing dependency graph ========
Graph root
    cli
Requirements
    bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4 - Cache
    libzip/1.10.1#502a2dde4cadffadd89a63e9bd824b08 - Cache
    xz_utils/5.4.5#51e5a6e6564f4ea3afd79def01f035ad - Cache
    zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache
    zstd/1.5.5#1f239731dc45147c7fc2f54bfbde73df - Cache
Build requirements
    msys2/cci.latest#f6bb451a181a3f452024ea43ca744061 - Cache
Resolved version ranges
    zlib/[>=1.2.11 <2]: zlib/1.3.1

======== Computing necessary packages ========
Requirements
    bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4:3784f82c839358eebcdedab0eb64eaa9eb25d01c#750ae49d946ffb02a476a906131413fc - Cache
    libzip/1.10.1#502a2dde4cadffadd89a63e9bd824b08:d8495e7f374c565348dfedbfa4edfe5e316b1f11 - Build
    xz_utils/5.4.5#51e5a6e6564f4ea3afd79def01f035ad:0534efa715363b456efc91df5dd071bc6eefb323#91752e4fcaba6fc5774fcf0c1c7783c3 - Cache
    zlib/1.3.1#f52e03ae3d251dec704634230cd806a2:0534efa715363b456efc91df5dd071bc6eefb323#c3448a4462a3d0b62e45f46071cfd600 - Cache
    zstd/1.5.5#1f239731dc45147c7fc2f54bfbde73df:d88675c15532568e1d7adeaa4c6fc6eb0914cce5#357252af8ee26a4e1bd36d0e6cff16bb - Cache
Build requirements
    msys2/cci.latest#f6bb451a181a3f452024ea43ca744061:956a88975bda9dfcc485e2861d71e74bd7e2b9a5#a4d094e33a7cec3c59a0489115a170c6 - Skip

======== Installing packages ========
bzip2/1.0.8: Already installed! (1 of 5)
zlib/1.3.1: Already installed! (2 of 5)
zstd/1.5.5: Already installed! (3 of 5)
xz_utils/5.4.5: Already installed! (4 of 5)

-------- Installing package libzip/1.10.1 (5 of 5) --------
libzip/1.10.1: Building from source
libzip/1.10.1: Package libzip/1.10.1:d8495e7f374c565348dfedbfa4edfe5e316b1f11
libzip/1.10.1: Copying sources to build folder
libzip/1.10.1: Building your package in C:/Users/tcash/.conan2/p/b/libzi337ba3d6c0d71/b
libzip/1.10.1: Calling generate()
libzip/1.10.1: Generators folder: C:/Users/tcash/.conan2/p/b/libzi337ba3d6c0d71/b/build/Release/generators
libzip/1.10.1: CMakeToolchain generated: conan_toolchain.cmake
libzip/1.10.1: CMakeToolchain generated: C:/Users/tcash/.conan2/p/b/libzi337ba3d6c0d71/b/build/Release/generators/CMakePresets.json
libzip/1.10.1: CMakeToolchain generated: C:/Users/tcash/.conan2/p/b/libzi337ba3d6c0d71/b/src/CMakeUserPresets.json
libzip/1.10.1: CMakeDeps necessary find_package() and targets for your CMakeLists.txt
    find_package(ZLIB)
    find_package(BZip2)
    find_package(LibLZMA)
    find_package(zstd)
    target_link_libraries(... ZLIB::ZLIB BZip2::BZip2 LibLZMA::LibLZMA zstd::libzstd_static)
libzip/1.10.1: Generating aggregated env files
libzip/1.10.1: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
libzip/1.10.1: Calling build()
libzip/1.10.1: Apply patch (conan): fix installation path of utilities
libzip/1.10.1: WARN: C:/Users/tcash/.conan2/p/libzi0a0ca0038b882/s/patches/1.7.3-0001-cmake-install-bundle.patch: file 1/1:      b'src/CMakeLists.txt'
libzip/1.10.1: WARN: C:/Users/tcash/.conan2/p/libzi0a0ca0038b882/s/patches/1.7.3-0001-cmake-install-bundle.patch:  hunk no.1 doesn't match source file at line 7
libzip/1.10.1: WARN: C:/Users/tcash/.conan2/p/libzi0a0ca0038b882/s/patches/1.7.3-0001-cmake-install-bundle.patch:   expected: b'    install(TARGETS ${PROGRAM} EXPORT ${PROJECT_NAME}-targets RUNTIME DESTINATION bin)'
libzip/1.10.1: WARN: C:/Users/tcash/.conan2/p/libzi0a0ca0038b882/s/patches/1.7.3-0001-cmake-install-bundle.patch:   actual  : b'    install(TARGETS ${PROGRAM} EXPORT ${PROJECT_NAME}-targets DESTINATION bin)'
libzip/1.10.1: WARN: C:/Users/tcash/.conan2/p/libzi0a0ca0038b882/s/patches/1.7.3-0001-cmake-install-bundle.patch: already patched  b'src/CMakeLists.txt'
libzip/1.10.1: Apply patch (conan): remove rpath feature
libzip/1.10.1: Running CMake.configure()
libzip/1.10.1: RUN: cmake -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/tcash/.conan2/p/b/libzi337ba3d6c0d71/p" -DCMAKE_SH="CMAKE_SH-NOTFOUND" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "C:/Users/tcash/.conan2/p/b/libzi337ba3d6c0d71/b/src"
libzip/1.10.1: Full command: "C:/Users/tcash/.conan2/p/b/libzi337ba3d6c0d71/b/build/Release/generators/conanbuild.bat" && cmake -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/tcash/.conan2/p/b/libzi337ba3d6c0d71/p" -DCMAKE_SH="CMAKE_SH-NOTFOUND" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "C:/Users/tcash/.conan2/p/b/libzi337ba3d6c0d71/b/src"
-- Using Conan toolchain: C:/Users/tcash/.conan2/p/b/libzi337ba3d6c0d71/b/build/Release/generators/conan_toolchain.cmake
-- Conan toolchain: Defining architecture flag: -m64
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- The C compiler identification is GNU 14.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for _close
-- Looking for _close - found
-- Looking for _dup
-- Looking for _dup - found
-- Looking for _fdopen
-- Looking for _fdopen - found
-- Looking for _fileno
-- Looking for _fileno - found
-- Looking for _setmode
-- Looking for _setmode - found
-- Looking for _snprintf
-- Looking for _snprintf - found
-- Looking for _snprintf_s
-- Looking for _snprintf_s - found
-- Looking for _snwprintf_s
-- Looking for _snwprintf_s - found
-- Looking for _strdup
-- Looking for _strdup - found
-- Looking for _stricmp
-- Looking for _stricmp - found
-- Looking for _strtoi64
-- Looking for _strtoi64 - found
-- Looking for _strtoui64
-- Looking for _strtoui64 - found
-- Looking for _unlink
-- Looking for _unlink - found
-- Looking for arc4random
-- Looking for arc4random - not found
-- Looking for clonefile
-- Looking for clonefile - not found
-- Looking for explicit_bzero
-- Looking for explicit_bzero - not found
-- Looking for explicit_memset
-- Looking for explicit_memset - not found
-- Looking for fchmod
-- Looking for fchmod - not found
-- Looking for fileno
-- Looking for fileno - found
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for ftello
-- Looking for ftello - found
-- Looking for getprogname
-- Looking for getprogname - not found
-- Looking for localtime_r
-- Looking for localtime_r - not found
-- Looking for localtime_s
-- Looking for localtime_s - found
-- Looking for memcpy_s
-- Looking for memcpy_s - found
-- Looking for random
-- Looking for random - not found
-- Looking for setmode
-- Looking for setmode - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for snprintf_s
-- Looking for snprintf_s - not found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strerror_s
-- Looking for strerror_s - found
-- Looking for strerrorlen_s
-- Looking for strerrorlen_s - not found
-- Looking for stricmp
-- Looking for stricmp - found
-- Looking for strncpy_s
-- Looking for strncpy_s - found
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for 3 include files sys/types.h, ..., fts.h
-- Looking for 3 include files sys/types.h, ..., fts.h - not found
-- Looking for include file stdbool.h
-- Looking for include file stdbool.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of __int8
-- Check size of __int8 - done
-- Check size of int8_t
-- Check size of int8_t - done
-- Check size of uint8_t
-- Check size of uint8_t - done
-- Check size of __int16
-- Check size of __int16 - done
-- Check size of int16_t
-- Check size of int16_t - done
-- Check size of uint16_t
-- Check size of uint16_t - done
-- Check size of __int32
-- Check size of __int32 - done
-- Check size of int32_t
-- Check size of int32_t - done
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Check size of __int64
-- Check size of __int64 - done
-- Check size of int64_t
-- Check size of int64_t - done
-- Check size of uint64_t
-- Check size of uint64_t - done
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of long long
-- Check size of long long - done
-- Check size of off_t
-- Check size of off_t - done
-- Check size of size_t
-- Check size of size_t - done
-- Performing Test HAVE_FICLONERANGE
-- Performing Test HAVE_FICLONERANGE - Failed
-- Performing Test HAVE_NULLABLE
-- Performing Test HAVE_NULLABLE - Failed
-- Conan: Target declared 'ZLIB::ZLIB'
-- Conan: Target declared 'BZip2::BZip2'
-- Conan: Including build module from 'C:/Users/tcash/.conan2/p/b/bzip25800a3dd709c3/p/lib/cmake/conan-official-bzip2-variables.cmake'
-- Conan: Target declared 'LibLZMA::LibLZMA'
-- Conan: Including build module from 'C:/Users/tcash/.conan2/p/b/xz_ute2c4017e81714/p/lib/cmake/conan-official-xz_utils-variables.cmake'
-- Conan: Component target declared 'zstd::libzstd_static'
-- Looking for getopt
-- Looking for getopt - found
-- Configuring done (31.5s)
-- Generating done (0.1s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_SH


-- Build files have been written to: C:/Users/tcash/.conan2/p/b/libzi337ba3d6c0d71/b/build/Release

libzip/1.10.1: Running CMake.build()
libzip/1.10.1: RUN: cmake --build "C:/Users/tcash/.conan2/p/b/libzi337ba3d6c0d71/b/build/Release" -- -j20
libzip/1.10.1: Full command: "C:/Users/tcash/.conan2/p/b/libzi337ba3d6c0d71/b/build/Release/generators/conanbuild.bat" && cmake --build "C:/Users/tcash/.conan2/p/b/libzi337ba3d6c0d71/b/build/Release" -- -j20
[  0%] Generating zip_err_str.c
[  1%] Building C object lib/CMakeFiles/zip.dir/zip_add.c.obj
[[    33%]%]  BuiBludiilndgi nCg  oCb joebcjte clti bl/iCbM/aCkMaekFeiFlieles/sz/izp[.i dp.i dr3i/rz%/i]zp ip_Baud_idla_ddeinndtg_r dyCi. ro.bccj..eoobcjb[jt

 l4i%b]/ CMaBkueiFlidlieng sC/ zip.odirbje/czti pl_iabl/gCoMraiktehFmi_ldeesf/lzaitpe..d[ci .r o/5bz%ji
]p _buBfufielrd.icn.g obCj o
bject lib/CMakeFiles/zip.dir/zip_close.c.obj
[  6%] Building C object lib/CMakeFiles/zip.dir/zip_delete.c.obj
[  6%] Building C object lib/CMakeFiles/zip.dir/zip_dir_add.c.obj
[  7%] Building C object lib/CMakeFiles/zip.dir/zip_[d i r8e%n]t .cB.uoibljdi
ng C object lib/CMakeFiles/zip.dir/zip_discard.c.obj
[  9%] [  B9uil%di] ngB uCi lodbijnegc tC  loibbj/eCcMta kleiFbi/lCeMsa/kzeiFpi.ldeisr//zziipp._deinrt/zriyp._ce.rorbojr.
c.obj
[ 10%] Building C object lib/CMakeFiles/zip.dir/zip_error_clear.c.obj
[ 11%] Building C object lib/CMakeFiles/zip.dir/zip_error_get.c.obj
[ 12%] Building C object lib/CMakeFiles/zip[. d1i2r%/]z ip_eBruriolrd_ignegt _Cs yosb_jteycpte .lci.bo/bCjM
akeFiles/zip.dir/zip_e[ 13%] rrBouri_lsdtirnegr rCo ro.bcj.eobcjt
 lib/CMakeFi[l e1s4/%z]i p.diBru/izlidpi_negr rCo ro_btjoec_ts tlri.bc/.CoMbajk
eFiles/zip.dir/zip_extra_fi[e l15d%.]c .Boubijld
ing C object lib/CMake[F i1l5e%s]/ zip.Bduiirl/dziinpg_ eCx torbaj_efcite lldi_ba/pCiM.ack.eoFbijl
es/zip.dir/zip_fclose.c.obj
[ 16%] Building C object lib/CMakeFiles/zip.dir/zip_fdopen.c.obj
[ 17%] Building C object lib/CMakeFiles/zip.dir/zip_file_add.c.obj
[ 18%] Building C object lib/CMakeFiles/zip.dir/zip_file_error_clear.c.[o b1j8
%] Building C object lib/CMakeFiles/zip.dir/zi[p _1f9i%l]e _errBouri_lgdeitn.gc .C oobbjj
ect lib/CMakeFiles/zip.dir/zip_file_get_comme[n t2.0c%.]o bjB
uilding C object lib/CMakeFiles/zip.dir/zi[ p2_1%f]i le_Bgueitl_deixntge rCn aolb_jaetcttri lbiubt/eCsM.ack.eoFbijl
es/zip.dir/zip_f[i l2e1_%g]e t_oBfufisledti.ncg. oCb job
ject lib/CMakeFiles/zip.dir/zip_file_rename.c.obj
[ 22%] Building C object lib/CMakeFiles/zip.dir/zip_file_replace.c.obj
[ 23%] Building C object lib/CMakeFiles/zip.dir/zip_file_set_comment.[c .2o4b%j] 
Building C object lib/CMakeFiles/zip.[d i2r5/%z]i p_fiBluei_lsdeitn_g enCc roypbjetcito nl.icb./oCbMja
keFiles/zip.dir/zip_file_set_external_attributes.c.obj
[ 25%] Building C object lib/CMakeFiles/zip.dir/zip_fil[e _2s6e%t]_ mtimBeu.icl.doibnjg
 C object lib/CMakeFiles/zip.dir/zip_file_strer[r o2r7.%c]. objB
uilding C object lib/CMakeFiles/zip.dir/zip_fopen.c.obj
[ 28%] Building C object lib/CMakeFiles/zip.dir/zip_fope[n _2e8n%c] ryBputieldd.ic.nogb jC
 object lib/CMakeFiles[/ z2i9p%.]d ir/Bzuiipl_dfionpge Cn _oibnjdeecxt. cl.iobb/jCM
akeFiles/zip.dir/zip_fopen_index_encrypted.c.obj[
 30%] Building C object lib/CMakeFiles/zip.dir/zip_fread.c.obj[ 
31%] Building C object lib/CMakeFiles/zip.dir/zip_fseek.c.obj
[ 31%] Building C object lib/CMakeFiles/zip.dir/zip_ftell.c.obj
[ 32%] Building C object lib/CMakeFiles/zip.dir/zip_get_archive_comment.c.obj
[ 33%] Building C object lib/CMakeFiles/zip.dir/zip_get_archive_flag.c.obj
[ 34%] Building C object lib/CMakeFiles/zip.dir/zip_get_encryption_implementation.c.[o b3j4
%] Building C object lib/CMakeFiles/zip.dir/zip_ge[t _3f5i%l]e _coBmumielndti.ncg. oCb job
ject lib/CMakeFiles/zip.dir/zip_get_name.c.obj[
 36%] Building C object lib/CMakeFiles/zip.dir/zip_get_num[_ e3n7t%r]ie s.cB.uoibljdi
ng C object lib/CMakeFiles/zip.dir/zip_get_num_file[s .3c7.%o]b j
Building C object lib/CMakeFiles/zip.dir/zip_hash.c.obj
[ 38%] Building C object lib/CMakeFiles/zip.dir/zip_io_util.c.obj
[ 39%] Building C object lib/CMakeFiles/zip.dir/zip_libzip_versio[n .4c0.%o]b jB
uilding C ob[j e4c0t% l]i b/CBMuaikledFiinlge sC/ zoipb.jdeicrt/ zliipb_/mCeMmadkuepF.icl.eosb/jzi
p.dir/zip_name_locate.c.obj
[ 41%] Building C object lib/CMakeFiles/zip.dir/zip_new.c.obj
[ 42%] Building C object lib/CMakeFiles/zip.dir/zip_open.c.obj
[ 43%] Building C object lib/CMakeFiles/zip.dir/zip_pkware.c.obj
[ 43%] Building C object lib/CMakeFiles/zip.dir/zip_progress.c.obj
[ 44%] Building C object lib/CMakeFiles/zip.dir/zip_rename.c.obj
[ 45%] Building C object lib/CMakeFiles[/ z4i6%p]. dirB/uziilpd_irnegp lCa coeb.jce.cotb jl
ib/CMakeFiles/zip.dir/zip_se[t _4a6r%c]h iveB_uciolmdmienngt .Cc .oobjbejc
t lib/CMakeFiles/zip.dir/zip_set_archive_flag.c.obj
[ 47%] Building C object lib/CMakeFiles/zip.dir/zip_set_default_password.c.obj
[ 48%] Building C object lib/CMakeFiles/zip.dir/zip_set_file_comment.c.obj
[ 49%] Building C object lib/CMakeFiles/zip.dir/zip_set_file_compression.c.ob[j
50%] Building C object lib/CMakeFiles/zip.dir/zip_set_name.c.obj
[ 50%] Building C object lib/CMakeFiles/zip.dir/zip_source_[a c5c1e%p]t _emBputiyl.dci.nogb jC
 object lib/CMakeFiles/zip.di[r /5z2i%p]_ souBruciel_dbiegnign _Cw roibtjee.cct. olbijb
/CMakeFiles/zip.dir/zip_source_begin_wri[t e5_3c%l]o ninBgui.lcd.ionbgj
C object lib/CMakeFiles/zip.dir/zip_source_buffer.c.obj
[ 53%] Building C object lib/CMakeFiles/zip.dir/zip_source_call.c.obj
[ 54%] Building C object lib/CMakeFiles/zip.dir/zip_source_close.c.ob[j
55%] Building C object lib/CMakeFiles/zip.dir/zip_source_commit_write.c.o[b j5
6%] Building C object lib/CMakeFiles/zip.dir/zip_source_compress.[c .o5b6j%
] Building C object lib/CMakeFiles/zip.dir/zip_source_crc.c.obj
[ 57%] Building C object lib/CMakeFiles/zip.dir/zip_[so u5r8c%e]_ erBruoirl.dci.nogb jC 
object lib/CMakeFiles/zip.dir/zip_source_file_common.c.obj
[ 59%] Building C object lib/CMakeFiles/zip.dir/zip_source_file_s[t d5i9o%.]c .obBju
ilding C object lib/CMakeFiles/zip.dir/zip_source_free.c[. o6b0j%
] Building C object lib/CMakeFiles/zip.dir/zip_source_function.c.obj
[ 61%] Building C object lib/CMakeFiles/zip.dir/zip_[s o6u2r%c]e _getB_ufiilldei_nagt tCr iobbujteecst. cl.iobb/jCM
akeFiles/zip.dir/zip_[s o6u2r%c]e _isB_udielldeitnegd .Cc .oobbjje
ct lib/CM[a k6e3Fi%le]s /zBiupi.lddiirn/gz iCp _osbojuerccte _lliaby/eCrMeadk.ecF.iolbejs
/zip.dir/zip_source_open.c.obj
[ 64%] Building C object lib/CMakeFiles/zip.dir/zip_source_pass_to_lower_layer.c.obj
[ 65%] Building C object lib/CMakeFiles/zip.dir/zip_source_pkware_decode[. c.6o5%b]j 
Building C object lib/CMakeFiles/zip.dir/zip_source_pkware_encod[e .66c%.]ob j
Building C object lib/CMakeFiles/zip.dir/zip_source_re[a d6.7c%.]o bj
Building C object lib/CMakeFiles/zip.dir/zip_source_r[e m6o8ve%.]c .objBu
ilding C object lib/CMakeFiles/zip.dir/zip_source_roll[b a6c8k%_]w ritBeu.icl.doibnjg
 C object lib/CMakeFiles/zip.dir/zip_source_seek.[c .6o9b%j]
Building C object lib/CMakeFil[e s7/0z%i]p .dBiuri/lzdiinpg_ sCo uorbcjee_cste elki_bw/rCiMtaek.ecF.iolbejs/
zip.dir/zip_source_stat.c.obj
[ 71%] Building C object lib/CMakeFiles/zip.dir/zi[p _7s1o%u]r ceB_usiulpdpionrgt sC. co.obbjje
ct lib/CMakeFiles/zip.dir/zip_source_tell.c.obj
[ 72%] Building C object lib/CMakeFiles/zip.dir/zip_source_tell_write.c.obj
[ 73%] Building C object li[b /7C4M%a]k eFBiulielsd/iznigp .Cd iorb/jzeicpt_ sloiurb/CcMea_kweiFnidloews./cz.iopb.jd
ir/zip_source_write[. c7.5o%b]j
Building C object lib/CMakeFiles/zip.dir/zip_source_zip.c.obj
[ 75%] Building C object lib/CMakeFiles/zip.dir/zip_source_zip_new.c.obj
[ 76%] Building C object lib/CMakeFiles/zip.dir/zip_stat.c.obj
[ 77%] Building C object lib/CMakeFiles/zip.dir/zip_stat_index.c.obj
[ 78%] Building C object lib/CMakeFiles/zip.dir/zip_stat_init.c.obj
[ 78%] Building C object lib/CMakeFiles/zip.dir/zip_strerror.c.obj[
 79%] Building C object lib/CMakeFiles/zip.dir/zip_string[. c8.0o%b]j
Building C object lib/CMakeFiles/zip.dir/zip_unchange.c.obj
[ 81%] Building C object lib/CMakeFiles/zip.d[i r8/1z%i]p _unBcuhialndgien_ga lCl .ocb.joebcjt
 lib/CMakeFiles/zip.dir/zip_unchange_archive.c.obj
[ 82%] Building C object lib/CMakeFiles/zip.dir/zip_unchange_data.c.obj
[ 83%] Building C object lib/CMakeFiles/zip.dir/zip_utf-8.c.obj
[ 84%] Building C object lib/CMakeFiles/zip.dir/zip_err_str.c.obj
[ 84%] Building C object lib/CMakeFiles/zip.dir/zip_source_file_win32.c.o[b j8
5%] Building C object lib/CMakeFiles/zip.dir/zip_sourc[e _8f6i%l]e _winB3u2i_lndaimnegd .Cc .oobbjjec
t lib/CMa[k e8F7i%l]e s/zBiupi.ldidri/nzgi pC_ soobujreccet_ fliilbe/_CwMiank3e2F_iultefs1/6z.icp..odbijr/
zip_source_file_win32_utf8.c.obj
[ 87%] Building C object lib/CMakeFiles/zip.dir/zip_source_file_win32_ansi.c.obj
[ 88%] Building[  C8 9o%b]j ectB uliilbd/iCnMga kCe Foibljeesc/tz ilpi.bd/iCrM/azkiepF_irlaensd/ozmi_pw.idni3r2/.zci.po_bajl
gorithm_bzip2.c.obj
[ 90%] Building C object lib/CMakeFiles/zip.dir/zip_algorithm_xz.c.obj
[ 90%] Building C object lib/CMakeFiles/zip.dir/zip_algorithm_zstd.c.[o b9j1%
] Building C object lib/CMakeFiles/zip.[d i9r2/%z]i p_cBruyipltdoi_nwgi nC. co.bojbejct
 lib/CMakeFiles/zip.dir/zip_winzip_aes.c.obj
[ 93%] Building C object lib/CMakeFile[s /9z3i%p]. dirB/uziilpd_isnogur cCe _owbijnezcitp _laiebs/_CdMeackoedFei.lce.so/bzji
p.dir/zip_source_winzip_aes_encode.c.obj
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_utf16.c:46:5: error: initialization of 'void * (*)(const void *, DWORD,  DWORD,  struct _SECURITY_ATTRIBUTES *, DWORD,  DWORD,  void *)' {aka 'void * (*)(const void *, long unsigned int,  long unsigned int,  struct _SECURITY_ATTRIBUTES *, long unsigned int,  long unsigned int,  void *)'} from incompatible pointer type 'void * (*)(const char *, DWORD,  DWORD,  struct _SECURITY_ATTRIBUTES *, DWORD,  DWORD,  void *)' {aka 'void * (*)(const char *, long unsigned int,  long unsigned int,  struct _SECURITY_ATTRIBUTES *, long unsigned int,  long unsigned int,  void *)'} [-Wincompatible-pointer-types]      
   46 |     utf16_create_file,
      |     ^~~~~~~~~~~~~~~~~
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_utf16.c:46:5: note: (near initialization for 'ops_utf16.create_file')
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_utf16.c:47:5: error: initialization of 'BOOL (*)(const void *)' {aka 'int (*)(const void *)'} from incompatible pointer type 'WINBOOL (*)(const WCHAR *)' {aka 'int (*)(const short unsigned int *)'} [-Wincompatible-pointer-types]
   47 |     DeleteFileW,
      |     ^~~~~~~~~~~
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_utf16.c:47:5: note: (near initialization for 'ops_utf16.delete_file')
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_utf16.c:48:5: error: initialization of 'DWORD (*)(const void *)' {aka 'long unsigned int (*)(const void *)'} from incompatible pointer type 'DWORD (*)(const WCHAR *)' {aka 'long unsigned int (*)(const short unsigned int *)'} [-Wincompatible-pointer-types]
   48 |     GetFileAttributesW,
      |     ^~~~~~~~~~~~~~~~~~
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_utf16.c:48:5: note: (near initialization for 'ops_utf16.get_file_attributes')
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_utf16.c:49:5: error: initialization of 'BOOL (*)(const void *, GET_FILEEX_INFO_LEVELS,  void *)' {aka 'int (*)(const void *, GET_FILEEX_INFO_LEVELS,  void *)'} from incompatible pointer type 'WINBOOL (*)(const WCHAR *, GET_FILEEX_INFO_LEVELS,  void *)' {aka 'int (*)(const short unsigned int *, GET_FILEEX_INFO_LEVELS,  void *)'} [-Wincompatible-pointer-types]
   49 |     GetFileAttributesExW,
      |     ^~~~~~~~~~~~~~~~~~~~
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_utf16.c:49:5: note: (near initialization for 'ops_utf16.get_file_attributes_ex')
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_utf16.c:51:5: error: initialization of 'BOOL (*)(const void *, const void *, DWORD)' {aka 'int (*)(const void *, const void *, long unsigned int)'} from incompatible pointer type 'WINBOOL (*)(const WCHAR *, const WCHAR *, DWORD)' {aka 'int (*)(const short unsigned int *, const short unsigned int *, long unsigned int)'} [-Wincompatible-pointer-types]
   51 |     MoveFileExW,
      |     ^~~~~~~~~~~
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_utf16.c:51:5: note: (near initialization for 'ops_utf16.move_file')
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_utf16.c:52:5: error: initialization of 'BOOL (*)(const void *, DWORD)' {aka 'int (*)(const void *, long unsigned int)'} from incompatible pointer type 'WINBOOL (*)(const WCHAR *, DWORD)' {aka 'int (*)(const short unsigned int *, long unsigned int)'} [-Wincompatible-pointer-types]
   52 |     SetFileAttributesW,
      |     ^~~~~~~~~~~~~~~~~~
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_utf16.c:52:5: note: (near initialization for 'ops_utf16.set_file_attributes')
mingw32-make[2]: *** [lib\CMakeFiles\zip.dir\build.make:1762: lib/CMakeFiles/zip.dir/zip_source_file_win32_utf16.c.obj] Error 1
mingw32-make[2]: *** Waiting for unfinished jobs....
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_ansi.c:44:5: error: initialization of 'void * (*)(const void *, DWORD,  DWORD,  struct _SECURITY_ATTRIBUTES *, DWORD,  DWORD,  void *)' {aka 'void * (*)(const void *, long unsigned int,  long unsigned int,  struct _SECURITY_ATTRIBUTES *, long unsigned int,  long unsigned int,  void *)'} from incompatible pointer type 'void * (*)(const CHAR *, DWORD,  DWORD,  struct _SECURITY_ATTRIBUTES *, DWORD,  DWORD,  void *)' {aka 'void * (*)(const char *, long unsigned int,  long unsigned int,  struct _SECURITY_ATTRIBUTES *, long unsigned int,  long unsigned int,  void *)'} [-Wincompatible-pointer-types]       
   44 |     CreateFileA,
      |     ^~~~~~~~~~~
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_ansi.c:44:5: note: (near initialization for 'ops_ansi.create_file')
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_ansi.c:45:5: error: initialization of 'BOOL (*)(const void *)' {aka 'int (*)(const void *)'} from incompatible pointer type 'WINBOOL (*)(const CHAR * 
' {aka 'int (*)(const char *)'} [-Wincompatible-pointer-types]
   45 |     DeleteFileA,
      |     ^~~~~~~~~~~
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_ansi.c:45:5: note: (near initialization for 'ops_ansi.delete_file')
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_ansi.c:46:5: error: initialization of 'DWORD (*)(const void *)' {aka 'long unsigned int (*)(const void *)'} from incompatible pointer type 'DWORD (*)(const CHAR *)' {aka 'long unsigned int (*)(const char *)'} [-Wincompatible-pointer-types]
   46 |     GetFileAttributesA,
      |     ^~~~~~~~~~~~~~~~~~
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_ansi.c:46:5: note: (near initialization for 'ops_ansi.get_file_attributes')
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_ansi.c:47:5: error: initialization of 'BOOL (*)(const void *, GET_FILEEX_INFO_LEVELS,  void *)' {aka 'int (*)(const void *, GET_FILEEX_INFO_LEVELS,  void *)'} from incompatible pointer type 'WINBOOL (*)(const CHAR *, GET_FILEEX_INFO_LEVELS,  void *)' {aka 'int (*)(const char *, GET_FILEEX_INFO_LEVELS,  void *)'} [-Wincompatible-pointer-types]
   47 |     GetFileAttributesExA,
      |     ^~~~~~~~~~~~~~~~~~~~
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_ansi.c:47:5: note: (near initialization for 'ops_ansi.get_file_attributes_ex')
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_ansi.c:49:5: error: initialization of 'BOOL (*)(const void *, const void *, DWORD)' {aka 'int (*)(const void *, const void *, long unsigned int)'} from incompatible pointer type 'WINBOOL (*)(const CHAR *, const CHAR *, DWORD)' {aka 'int (*)(const char *, const char *, long unsigned int)'} [-Wincompatible-pointer-types]
   49 |     MoveFileExA,
      |     ^~~~~~~~~~~
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_ansi.c:49:5: note: (near initialization for 'ops_ansi.move_file')
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_ansi.c:50:5: error: initialization of 'BOOL (*)(const void *, DWORD)' {aka 'int (*)(const void *, long unsigned int)'} from incompatible pointer type 'WINBOOL (*)(const CHAR *, DWORD)' {aka 'int (*)(const char *, long unsigned int)'} [-Wincompatible-pointer-types]
   50 |     SetFileAttributesA,
      |     ^~~~~~~~~~~~~~~~~~
C:\Users\tcash\.conan2\p\b\libzi337ba3d6c0d71\b\src\lib\zip_source_file_win32_ansi.c:50:5: note: (near initialization for 'ops_ansi.set_file_attributes')
mingw32-make[2]: *** [lib\CMakeFiles\zip.dir\build.make:1792: lib/CMakeFiles/zip.dir/zip_source_file_win32_ansi.c.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:173: lib/CMakeFiles/zip.dir/all] Error 2
mingw32-make: *** [Makefile:145: all] Error 2

libzip/1.10.1: ERROR: 
Package 'd8495e7f374c565348dfedbfa4edfe5e316b1f11' build failed
libzip/1.10.1: WARN: Build folder C:/Users/tcash/.conan2/p/b/libzi337ba3d6c0d71/b/build/Release
Traceback (most recent call last):
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conan/internal/errors.py", line 35, in conanfile_exception_formatter
    yield
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conans/client/conanfile/build.py", line 14, in run_build_method
    conanfile.build()
  File "C:/Users/tcash/.conan2/p/libzi0a0ca0038b882/e/conanfile.py", line 112, in build
    cmake.build()
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conan/tools/cmake/cmake.py", line 184, in build
    self._build(build_type, target, cli_args, build_tool_args, stdout=stdout, stderr=stderr)
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conan/tools/cmake/cmake.py", line 163, in _build
    self._conanfile.run(command, env=env, stdout=stdout, stderr=stderr)
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conans/model/conan_file.py", line 367, in run
    raise ConanException("Error %d while executing" % retcode)
conan.errors.ConanException: Error 2 while executing

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conan/cli/cli.py", line 192, in run
    command.run(self._conan_api, args[0][1:])
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conan/cli/command.py", line 171, in run
    info = self._method(conan_api, parser, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conan/cli/commands/install.py", line 75, in install
    conan_api.install.install_binaries(deps_graph=deps_graph, remotes=remotes)
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conan/api/subapi/install.py", line 29, in install_binaries
    installer.install(deps_graph, remotes, install_order=install_order)
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conans/client/installer.py", line 260, in install
    self._handle_package(package, install_reference, handled_count, package_count)
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conans/client/installer.py", line 316, in _handle_package
    self._handle_node_build(package, package_layout)
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conans/client/installer.py", line 394, in _handle_node_build
    pref = builder.build_package(node, pkg_layout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conans/client/installer.py", line 162, in build_package
    raise exc
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conans/client/installer.py", line 155, in build_package
    self._build(conanfile, pref)
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conans/client/installer.py", line 104, in _build
    raise exc
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conans/client/installer.py", line 97, in _build
    run_build_method(conanfile, self._hook_manager)
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conans/client/conanfile/build.py", line 12, in run_build_method
    with conanfile_exception_formatter(conanfile, "build"):
  File "C:/msys64/mingw64/lib/python3.11/contextlib.py", line 158, in __exit__
    self.gen.throw(typ, value, traceback)
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conan/internal/errors.py", line 45, in conanfile_exception_formatter
    raise ConanException(m)
conan.errors.ConanException: Traceback (most recent call last):
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conan/internal/errors.py", line 35, in conanfile_exception_formatter
    yield
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conans/client/conanfile/build.py", line 14, in run_build_method
    conanfile.build()
  File "C:/Users/tcash/.conan2/p/libzi0a0ca0038b882/e/conanfile.py", line 112, in build
    cmake.build()
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conan/tools/cmake/cmake.py", line 184, in build
    self._build(build_type, target, cli_args, build_tool_args, stdout=stdout, stderr=stderr)
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conan/tools/cmake/cmake.py", line 163, in _build
    self._conanfile.run(command, env=env, stdout=stdout, stderr=stderr)
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conans/model/conan_file.py", line 367, in run
    raise ConanException("Error %d while executing" % retcode)
conan.errors.ConanException: Error 2 while executing

libzip/1.10.1: Error in build() method, line 112
        cmake.build()
        ConanException: Error 2 while executing

ERROR: Traceback (most recent call last):
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conan/internal/errors.py", line 35, in conanfile_exception_formatter
    yield
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conans/client/conanfile/build.py", line 14, in run_build_method
    conanfile.build()
  File "C:/Users/tcash/.conan2/p/libzi0a0ca0038b882/e/conanfile.py", line 112, in build
    cmake.build()
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conan/tools/cmake/cmake.py", line 184, in build
    self._build(build_type, target, cli_args, build_tool_args, stdout=stdout, stderr=stderr)
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conan/tools/cmake/cmake.py", line 163, in _build
    self._conanfile.run(command, env=env, stdout=stdout, stderr=stderr)
  File "C:/msys64/mingw64/lib/python3.11/site-packages/conans/model/conan_file.py", line 367, in run
    raise ConanException("Error %d while executing" % retcode)
conan.errors.ConanException: Error 2 while executing

libzip/1.10.1: Error in build() method, line 112
        cmake.build()
        ConanException: Error 2 while executing
@TrevorCash TrevorCash added the bug Something isn't working label Nov 25, 2024
@AbrilRBS
Copy link
Member

Hi @TrevorCash thanks a lot for your report.

I'm trying to reproduce with the following configuration:

[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=17
compiler.libcxx=libstdc++
compiler.threads=posix
compiler.version=13
os=Windows
[tool_requires]
*: mingw-builds/[*]
[conf]


Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=static
compiler.runtime_type=Release
compiler.version=194
os=Windows
[conf]

but my compilation attemps are succesful, see the log below. Can you spot any major differences in our setup that may lead to the errors you're seeing?

-------- Installing package libzip/1.10.1 (6 of 6) --------
libzip/1.10.1: Building from source
libzip/1.10.1: Package libzip/1.10.1:7e3d364d6aea7050b6f84ad7dade70e0249be2b8
libzip/1.10.1: Copying sources to build folder
libzip/1.10.1: Building your package in C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b
libzip/1.10.1: Calling generate()
libzip/1.10.1: Generators folder: C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\build\Release\generators
libzip/1.10.1: CMakeToolchain generated: conan_toolchain.cmake
libzip/1.10.1: CMakeToolchain generated: C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\build\Release\generators\CMakePresets.json
libzip/1.10.1: CMakeToolchain generated: C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\CMakeUserPresets.json
libzip/1.10.1: CMakeDeps necessary find_package() and targets for your CMakeLists.txt
    find_package(ZLIB)
    find_package(BZip2)
    find_package(LibLZMA)
    find_package(zstd)
    target_link_libraries(... ZLIB::ZLIB BZip2::BZip2 LibLZMA::LibLZMA zstd::libzstd_static)
libzip/1.10.1: Generating aggregated env files
libzip/1.10.1: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
libzip/1.10.1: Calling build()
libzip/1.10.1: Apply patch (conan): fix installation path of utilities
libzip/1.10.1: WARN: C:\Users\abril\.conan2\p\libzied6402ed61bc1\s\patches/1.7.3-0001-cmake-install-bundle.patch: file 1/1:       b'src/CMakeLists.txt'
libzip/1.10.1: WARN: C:\Users\abril\.conan2\p\libzied6402ed61bc1\s\patches/1.7.3-0001-cmake-install-bundle.patch:  hunk no.1 doesn't match source file at line 7
libzip/1.10.1: WARN: C:\Users\abril\.conan2\p\libzied6402ed61bc1\s\patches/1.7.3-0001-cmake-install-bundle.patch:   expected: b'    install(TARGETS ${PROGRAM} EXPORT ${PROJECT_NAME}-targets RUNTIME DESTINATION bin)'
libzip/1.10.1: WARN: C:\Users\abril\.conan2\p\libzied6402ed61bc1\s\patches/1.7.3-0001-cmake-install-bundle.patch:   actual  : b'    install(TARGETS ${PROGRAM} EXPORT ${PROJECT_NAME}-targets DESTINATION bin)'
libzip/1.10.1: WARN: C:\Users\abril\.conan2\p\libzied6402ed61bc1\s\patches/1.7.3-0001-cmake-install-bundle.patch: already patched  b'src/CMakeLists.txt'
libzip/1.10.1: Apply patch (conan): remove rpath feature
libzip/1.10.1: Running CMake.configure()
libzip/1.10.1: RUN: cmake -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/abril/.conan2/p/b/libzi918d60e1b254c/p" -DCMAKE_SH="CMAKE_SH-NOTFOUND" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "C:/Users/abril/.conan2/p/b/libzi918d60e1b254c/b/src"
-- Using Conan toolchain: C:/Users/abril/.conan2/p/b/libzi918d60e1b254c/b/build/Release/generators/conan_toolchain.cmake
-- Conan toolchain: Defining architecture flag: -m64
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- The C compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/abril/.conan2/p/mingwf3629a0c4f698/p/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for _close
-- Looking for _close - found
-- Looking for _dup
-- Looking for _dup - found
-- Looking for _fdopen
-- Looking for _fdopen - found
-- Looking for _fileno
-- Looking for _fileno - found
-- Looking for _setmode
-- Looking for _setmode - found
-- Looking for _snprintf
-- Looking for _snprintf - found
-- Looking for _snprintf_s
-- Looking for _snprintf_s - found
-- Looking for _snwprintf_s
-- Looking for _snwprintf_s - found
-- Looking for _strdup
-- Looking for _strdup - found
-- Looking for _stricmp
-- Looking for _stricmp - found
-- Looking for _strtoi64
-- Looking for _strtoi64 - found
-- Looking for _strtoui64
-- Looking for _strtoui64 - found
-- Looking for _unlink
-- Looking for _unlink - found
-- Looking for arc4random
-- Looking for arc4random - not found
-- Looking for clonefile
-- Looking for clonefile - not found
-- Looking for explicit_bzero
-- Looking for explicit_bzero - not found
-- Looking for explicit_memset
-- Looking for explicit_memset - not found
-- Looking for fchmod
-- Looking for fchmod - not found
-- Looking for fileno
-- Looking for fileno - found
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for ftello
-- Looking for ftello - found
-- Looking for getprogname
-- Looking for getprogname - not found
-- Looking for localtime_r
-- Looking for localtime_r - not found
-- Looking for localtime_s
-- Looking for localtime_s - found
-- Looking for memcpy_s
-- Looking for memcpy_s - found
-- Looking for random
-- Looking for random - not found
-- Looking for setmode
-- Looking for setmode - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for snprintf_s
-- Looking for snprintf_s - not found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strerror_s
-- Looking for strerror_s - found
-- Looking for strerrorlen_s
-- Looking for strerrorlen_s - not found
-- Looking for stricmp
-- Looking for stricmp - found
-- Looking for strncpy_s
-- Looking for strncpy_s - found
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for 3 include files sys/types.h, ..., fts.h
-- Looking for 3 include files sys/types.h, ..., fts.h - not found
-- Looking for include file stdbool.h
-- Looking for include file stdbool.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of __int8
-- Check size of __int8 - done
-- Check size of int8_t
-- Check size of int8_t - done
-- Check size of uint8_t
-- Check size of uint8_t - done
-- Check size of __int16
-- Check size of __int16 - done
-- Check size of int16_t
-- Check size of int16_t - done
-- Check size of uint16_t
-- Check size of uint16_t - done
-- Check size of __int32
-- Check size of __int32 - done
-- Check size of int32_t
-- Check size of int32_t - done
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Check size of __int64
-- Check size of __int64 - done
-- Check size of int64_t
-- Check size of int64_t - done
-- Check size of uint64_t
-- Check size of uint64_t - done
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of long long
-- Check size of long long - done
-- Check size of off_t
-- Check size of off_t - done
-- Check size of size_t
-- Check size of size_t - done
-- Performing Test HAVE_FICLONERANGE
-- Performing Test HAVE_FICLONERANGE - Failed
-- Performing Test HAVE_NULLABLE
-- Performing Test HAVE_NULLABLE - Failed
-- Conan: Target declared 'ZLIB::ZLIB'
-- Conan: Target declared 'BZip2::BZip2'
-- Conan: Including build module from 'C:/Users/abril/.conan2/p/b/bzip2f481ad4019c02/p/lib/cmake/conan-official-bzip2-variables.cmake'
-- Conan: Target declared 'LibLZMA::LibLZMA'
-- Conan: Including build module from 'C:/Users/abril/.conan2/p/b/xz_ut4ffe6583566ce/p/lib/cmake/conan-official-xz_utils-variables.cmake'
-- Conan: Component target declared 'zstd::libzstd_static'
-- Looking for getopt
-- Looking for getopt - found
-- Configuring done (18.0s)
-- Generating done (0.1s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_SH


-- Build files have been written to: C:/Users/abril/.conan2/p/b/libzi918d60e1b254c/b/build/Release

libzip/1.10.1: Running CMake.build()
libzip/1.10.1: RUN: cmake --build "C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\build\Release" -- -j4
[  0%] Generating zip_err_str.c
[  1%] Building C object lib/CMakeFiles/zip.dir/zip_add.c.obj
[  2%] Building C object lib/CMakeFiles/zip.dir/zip_add_dir.c.obj
[  3%] Building C object lib/CMakeFiles/zip.dir/zip_add_entry.c.obj
[  3%] Building C object lib/CMakeFiles/zip.dir/zip_algorithm_deflate.c.obj
[  4%] [  6%] [  5%] Building C object lib/CMakeFiles/zip.dir/zip_buffer.c.objBuilding C object lib/CMakeFiles/zip.dir/zip_delete.c.objBuilding C object lib/CMakeFiles/zip.dir/zip_close.c.obj


[  6%] Building C object lib/CMakeFiles/zip.dir/zip_dir_add.c.obj
[  7%] Building C object lib/CMakeFiles/zip.dir/zip_dirent.c.obj
[  8%] Building C object lib/CMakeFiles/zip.dir/zip_discard.c.obj
[  9%] Building C object lib/CMakeFiles/zip.dir/zip_entry.c.obj
[  9%] Building C object lib/CMakeFiles/zip.dir/zip_error.c.obj
[ 10%] Building C object lib/CMakeFiles/zip.dir/zip_error_clear.c.obj
[ 11%] Building C object lib/CMakeFiles/zip.dir/zip_error_get.c.obj
[ 12%] Building C object lib/CMakeFiles/zip.dir/zip_error_get_sys_type.c.obj
[ 12%] Building C object lib/CMakeFiles/zip.dir/zip_error_strerror.c.obj
[ 13%] Building C object lib/CMakeFiles/zip.dir/zip_error_to_str.c.obj
[ 14%] Building C object lib/CMakeFiles/zip.dir/zip_extra_field.c.obj
[ 15%] Building C object lib/CMakeFiles/zip.dir/zip_extra_field_api.c.obj
[ 15%] Building C object lib/CMakeFiles/zip.dir/zip_fclose.c.obj
[ 16%] Building C object lib/CMakeFiles/zip.dir/zip_fdopen.c.obj
[ 17%] Building C object lib/CMakeFiles/zip.dir/zip_file_add.c.obj
[ 18%] Building C object lib/CMakeFiles/zip.dir/zip_file_error_clear.c.obj
[ 18%] Building C object lib/CMakeFiles/zip.dir/zip_file_error_get.c.obj
[ 19%] Building C object lib/CMakeFiles/zip.dir/zip_file_get_comment.c.obj
[ 20%] Building C object lib/CMakeFiles/zip.dir/zip_file_get_external_attributes.c.obj
[ 21%] Building C object lib/CMakeFiles/zip.dir/zip_file_get_offset.c.obj
[ 21%] Building C object lib/CMakeFiles/zip.dir/zip_file_rename.c.obj
[ 22%] Building C object lib/CMakeFiles/zip.dir/zip_file_replace.c.obj
[ 23%] Building C object lib/CMakeFiles/zip.dir/zip_file_set_comment.c.obj
[ 24%] Building C object lib/CMakeFiles/zip.dir/zip_file_set_encryption.c.obj
[ 25%] Building C object lib/CMakeFiles/zip.dir/zip_file_set_external_attributes.c.obj
[ 25%] Building C object lib/CMakeFiles/zip.dir/zip_file_set_mtime.c.obj
[ 26%] Building C object lib/CMakeFiles/zip.dir/zip_file_strerror.c.obj
[ 27%] Building C object lib/CMakeFiles/zip.dir/zip_fopen.c.obj
[ 28%] Building C object lib/CMakeFiles/zip.dir/zip_fopen_encrypted.c.obj
[ 28%] Building C object lib/CMakeFiles/zip.dir/zip_fopen_index.c.obj
[ 29%] Building C object lib/CMakeFiles/zip.dir/zip_fopen_index_encrypted.c.obj
[ 30%] Building C object lib/CMakeFiles/zip.dir/zip_fread.c.obj
[ 31%] Building C object lib/CMakeFiles/zip.dir/zip_fseek.c.obj
[ 31%] Building C object lib/CMakeFiles/zip.dir/zip_ftell.c.obj
[ 32%] Building C object lib/CMakeFiles/zip.dir/zip_get_archive_comment.c.obj
[ 33%] Building C object lib/CMakeFiles/zip.dir/zip_get_archive_flag.c.obj
[ 34%] Building C object lib/CMakeFiles/zip.dir/zip_get_encryption_implementation.c.obj
[ 34%] Building C object lib/CMakeFiles/zip.dir/zip_get_file_comment.c.obj
[ 35%] Building C object lib/CMakeFiles/zip.dir/zip_get_name.c.obj
[ 36%] Building C object lib/CMakeFiles/zip.dir/zip_get_num_entries.c.obj
[ 37%] Building C object lib/CMakeFiles/zip.dir/zip_get_num_files.c.obj
[ 37%] Building C object lib/CMakeFiles/zip.dir/zip_hash.c.obj
[ 38%] Building C object lib/CMakeFiles/zip.dir/zip_io_util.c.obj
[ 39%] Building C object lib/CMakeFiles/zip.dir/zip_libzip_version.c.obj
[ 40%] Building C object lib/CMakeFiles/zip.dir/zip_memdup.c.obj
[ 40%] Building C object lib/CMakeFiles/zip.dir/zip_name_locate.c.obj
[ 41%] Building C object lib/CMakeFiles/zip.dir/zip_new.c.obj
[ 42%] Building C object lib/CMakeFiles/zip.dir/zip_open.c.obj
[ 43%] Building C object lib/CMakeFiles/zip.dir/zip_pkware.c.obj
[ 43%] Building C object lib/CMakeFiles/zip.dir/zip_progress.c.obj
[ 44%] Building C object lib/CMakeFiles/zip.dir/zip_rename.c.obj
[ 45%] Building C object lib/CMakeFiles/zip.dir/zip_replace.c.obj
[ 46%] Building C object lib/CMakeFiles/zip.dir/zip_set_archive_comment.c.obj
[ 46%] Building C object lib/CMakeFiles/zip.dir/zip_set_archive_flag.c.obj
[ 47%] Building C object lib/CMakeFiles/zip.dir/zip_set_default_password.c.obj
[ 48%] Building C object lib/CMakeFiles/zip.dir/zip_set_file_comment.c.obj
[ 49%] Building C object lib/CMakeFiles/zip.dir/zip_set_file_compression.c.obj
[ 50%] Building C object lib/CMakeFiles/zip.dir/zip_set_name.c.obj
[ 50%] Building C object lib/CMakeFiles/zip.dir/zip_source_accept_empty.c.obj
[ 51%] Building C object lib/CMakeFiles/zip.dir/zip_source_begin_write.c.obj
[ 52%] Building C object lib/CMakeFiles/zip.dir/zip_source_begin_write_cloning.c.obj
[ 53%] Building C object lib/CMakeFiles/zip.dir/zip_source_buffer.c.obj
[ 53%] Building C object lib/CMakeFiles/zip.dir/zip_source_call.c.obj
[ 54%] Building C object lib/CMakeFiles/zip.dir/zip_source_close.c.obj
[ 55%] Building C object lib/CMakeFiles/zip.dir/zip_source_commit_write.c.obj
[ 56%] Building C object lib/CMakeFiles/zip.dir/zip_source_compress.c.obj
[ 56%] Building C object lib/CMakeFiles/zip.dir/zip_source_crc.c.obj
[ 57%] Building C object lib/CMakeFiles/zip.dir/zip_source_error.c.obj
[ 58%] Building C object lib/CMakeFiles/zip.dir/zip_source_file_common.c.obj
[ 59%] Building C object lib/CMakeFiles/zip.dir/zip_source_file_stdio.c.obj
[ 59%] Building C object lib/CMakeFiles/zip.dir/zip_source_free.c.obj
[ 60%] Building C object lib/CMakeFiles/zip.dir/zip_source_function.c.obj
[ 61%] Building C object lib/CMakeFiles/zip.dir/zip_source_get_file_attributes.c.obj
[ 62%] Building C object lib/CMakeFiles/zip.dir/zip_source_is_deleted.c.obj
[ 62%] Building C object lib/CMakeFiles/zip.dir/zip_source_layered.c.obj
[ 63%] Building C object lib/CMakeFiles/zip.dir/zip_source_open.c.obj
[ 64%] Building C object lib/CMakeFiles/zip.dir/zip_source_pass_to_lower_layer.c.obj
[ 65%] Building C object lib/CMakeFiles/zip.dir/zip_source_pkware_decode.c.obj
[ 65%] Building C object lib/CMakeFiles/zip.dir/zip_source_pkware_encode.c.obj
[ 66%] Building C object lib/CMakeFiles/zip.dir/zip_source_read.c.obj
[ 67%] Building C object lib/CMakeFiles/zip.dir/zip_source_remove.c.obj
[ 68%] Building C object lib/CMakeFiles/zip.dir/zip_source_rollback_write.c.obj
[ 68%] Building C object lib/CMakeFiles/zip.dir/zip_source_seek.c.obj
[ 69%] Building C object lib/CMakeFiles/zip.dir/zip_source_seek_write.c.obj
[ 70%] Building C object lib/CMakeFiles/zip.dir/zip_source_stat.c.obj
[ 71%] Building C object lib/CMakeFiles/zip.dir/zip_source_supports.c.obj
[ 71%] Building C object lib/CMakeFiles/zip.dir/zip_source_tell.c.obj
[ 72%] Building C object lib/CMakeFiles/zip.dir/zip_source_tell_write.c.obj
[ 73%] Building C object lib/CMakeFiles/zip.dir/zip_source_window.c.obj
[ 74%] Building C object lib/CMakeFiles/zip.dir/zip_source_write.c.obj
[ 75%] Building C object lib/CMakeFiles/zip.dir/zip_source_zip.c.obj
[ 75%] Building C object lib/CMakeFiles/zip.dir/zip_source_zip_new.c.obj
[ 76%] Building C object lib/CMakeFiles/zip.dir/zip_stat.c.obj
[ 77%] Building C object lib/CMakeFiles/zip.dir/zip_stat_index.c.obj
[ 78%] Building C object lib/CMakeFiles/zip.dir/zip_stat_init.c.obj
[ 78%] Building C object lib/CMakeFiles/zip.dir/zip_strerror.c.obj
[ 79%] Building C object lib/CMakeFiles/zip.dir/zip_string.c.obj
[ 80%] Building C object lib/CMakeFiles/zip.dir/zip_unchange.c.obj
[ 81%] Building C object lib/CMakeFiles/zip.dir/zip_unchange_all.c.obj
[ 81%] Building C object lib/CMakeFiles/zip.dir/zip_unchange_archive.c.obj
[ 82%] Building C object lib/CMakeFiles/zip.dir/zip_unchange_data.c.obj
[ 83%] Building C object lib/CMakeFiles/zip.dir/zip_utf-8.c.obj
[ 84%] Building C object lib/CMakeFiles/zip.dir/zip_err_str.c.obj
[ 84%] Building C object lib/CMakeFiles/zip.dir/zip_source_file_win32.c.obj
[ 85%] Building C object lib/CMakeFiles/zip.dir/zip_source_file_win32_named.c.obj
[ 86%] Building C object lib/CMakeFiles/zip.dir/zip_source_file_win32_utf16.c.obj
[ 87%] Building C object lib/CMakeFiles/zip.dir/zip_source_file_win32_utf8.c.obj
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_utf16.c:46:5: warning: initialization of 'void * (*)(const void *, DWORD,  DWORD,  struct _SECURITY_ATTRIBUTES *, DWORD,  DWORD,  void *)' {aka 'void * (*)(const void *, long unsigned int,  long unsigned int,  struct _SECURITY_ATTRIBUTES *, long unsigned int,  long unsigned int,  void *)'} from incompatible pointer type 'void * (*)(const char *, DWORD,  DWORD,  struct _SECURITY_ATTRIBUTES *, DWORD,  DWORD,  void *)' {aka 'void * (*)(const char *, long unsigned int,  long unsigned int,  struct _SECURITY_ATTRIBUTES *, long unsigned int,  long unsigned int,  void *)'} [-Wincompatible-pointer-types]
   46 |     utf16_create_file,
      |     ^~~~~~~~~~~~~~~~~
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_utf16.c:46:5: note: (near initialization for 'ops_utf16.create_file')
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_utf16.c:47:5: warning: initialization of 'BOOL (*)(const void *)' {aka 'int (*)(const void *)'} from incompatible pointer type 'WINBOOL (*)(const WCHAR *)' {aka 'int (*)(const short unsigned int *)'} [-Wincompatible-pointer-types]
   47 |     DeleteFileW,
      |     ^~~~~~~~~~~
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_utf16.c:47:5: note: (near initialization for 'ops_utf16.delete_file')
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_utf16.c:48:5: warning: initialization of 'DWORD (*)(const void *)' {aka 'long unsigned int (*)(const void *)'} from incompatible pointer type 'DWORD (*)(const WCHAR *)' {aka 'long unsigned int (*)(const short unsigned int *)'} [-Wincompatible-pointer-types]
   48 |     GetFileAttributesW,
      |     ^~~~~~~~~~~~~~~~~~
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_utf16.c:48:5: note: (near initialization for 'ops_utf16.get_file_attributes')
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_utf16.c:49:5: warning: initialization of 'BOOL (*)(const void *, GET_FILEEX_INFO_LEVELS,  void *)' {aka 'int (*)(const void *, GET_FILEEX_INFO_LEVELS,  void *)'} from incompatible pointer type 'WINBOOL (*)(const WCHAR *, GET_FILEEX_INFO_LEVELS,  void *)' {aka 'int (*)(const short unsigned int *, GET_FILEEX_INFO_LEVELS,  void *)'} [-Wincompatible-pointer-types]
   49 |     GetFileAttributesExW,
      |     ^~~~~~~~~~~~~~~~~~~~
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_utf16.c:49:5: note: (near initialization for 'ops_utf16.get_file_attributes_ex')
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_utf16.c:51:5: warning: initialization of 'BOOL (*)(const void *, const void *, DWORD)' {aka 'int (*)(const void *, const void *, long unsigned int)'} from incompatible pointer type 'WINBOOL (*)(const WCHAR *, const WCHAR *, DWORD)' {aka 'int (*)(const short unsigned int *, const short unsigned int *, long unsigned int)'} [-Wincompatible-pointer-types]
   51 |     MoveFileExW,
      |     ^~~~~~~~~~~
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_utf16.c:51:5: note: (near initialization for 'ops_utf16.move_file')
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_utf16.c:52:5: warning: initialization of 'BOOL (*)(const void *, DWORD)' {aka 'int (*)(const void *, long unsigned int)'} from incompatible pointer type 'WINBOOL (*)(const WCHAR *, DWORD)' {aka 'int (*)(const short unsigned int *, long unsigned int)'} [-Wincompatible-pointer-types]
   52 |     SetFileAttributesW,
      |     ^~~~~~~~~~~~~~~~~~
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_utf16.c:52:5: note: (near initialization for 'ops_utf16.set_file_attributes')
[ 87%] Building C object lib/CMakeFiles/zip.dir/zip_source_file_win32_ansi.c.obj
[ 88%] Building C object lib/CMakeFiles/zip.dir/zip_random_win32.c.obj
[ 89%] Building C object lib/CMakeFiles/zip.dir/zip_algorithm_bzip2.c.obj
[ 90%] Building C object lib/CMakeFiles/zip.dir/zip_algorithm_xz.c.obj
[ 90%] Building C object lib/CMakeFiles/zip.dir/zip_algorithm_zstd.c.obj
[ 91%] Building C object lib/CMakeFiles/zip.dir/zip_crypto_win.c.obj
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_ansi.c:44:5: warning: initialization of 'void * (*)(const void *, DWORD,  DWORD,  struct _SECURITY_ATTRIBUTES *, DWORD,  DWORD,  void *)' {aka 'void * (*)(const void *, long unsigned int,  long unsigned int,  struct _SECURITY_ATTRIBUTES *, long unsigned int,  long unsigned int,  void *)'} from incompatible pointer type 'void * (*)(const CHAR *, DWORD,  DWORD,  struct _SECURITY_ATTRIBUTES *, DWORD,  DWORD,  void *)' {aka 'void * (*)(const char *, long unsigned int,  long unsigned int,  struct _SECURITY_ATTRIBUTES *, long unsigned int,  long unsigned int,  void *)'} [-Wincompatible-pointer-types]
   44 |     CreateFileA,
      |     ^~~~~~~~~~~
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_ansi.c:44:5: note: (near initialization for 'ops_ansi.create_file')
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_ansi.c:45:5: warning: initialization of 'BOOL (*)(const void *)' {aka 'int (*)(const void *)'} from incompatible pointer type 'WINBOOL (*)(const CHAR *)' {aka 'int (*)(const char *)'} [-Wincompatible-pointer-types]
   45 |     DeleteFileA,
      |     ^~~~~~~~~~~
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_ansi.c:45:5: note: (near initialization for 'ops_ansi.delete_file')
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_ansi.c:46:5: warning: initialization of 'DWORD (*)(const void *)' {aka 'long unsigned int (*)(const void *)'} from incompatible pointer type 'DWORD (*)(const CHAR *)' {aka 'long unsigned int (*)(const char *)'} [-Wincompatible-pointer-types]
   46 |     GetFileAttributesA,
      |     ^~~~~~~~~~~~~~~~~~
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_ansi.c:46:5: note: (near initialization for 'ops_ansi.get_file_attributes')
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_ansi.c:47:5: warning: initialization of 'BOOL (*)(const void *, GET_FILEEX_INFO_LEVELS,  void *)' {aka 'int (*)(const void *, GET_FILEEX_INFO_LEVELS,  void *)'} from incompatible pointer type 'WINBOOL (*)(const CHAR *, GET_FILEEX_INFO_LEVELS,  void *)' {aka 'int (*)(const char *, GET_FILEEX_INFO_LEVELS,  void *)'} [-Wincompatible-pointer-types]
   47 |     GetFileAttributesExA,
      |     ^~~~~~~~~~~~~~~~~~~~
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_ansi.c:47:5: note: (near initialization for 'ops_ansi.get_file_attributes_ex')
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_ansi.c:49:5: warning: initialization of 'BOOL (*)(const void *, const void *, DWORD)' {aka 'int (*)(const void *, const void *, long unsigned int)'} from incompatible pointer type 'WINBOOL (*)(const CHAR *, const CHAR *, DWORD)' {aka 'int (*)(const char *, const char *, long unsigned int)'} [-Wincompatible-pointer-types]
   49 |     MoveFileExA,
      |     ^~~~~~~~~~~
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_ansi.c:49:5: note: (near initialization for 'ops_ansi.move_file')
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_ansi.c:50:5: warning: initialization of 'BOOL (*)(const void *, DWORD)' {aka 'int (*)(const void *, long unsigned int)'} from incompatible pointer type 'WINBOOL (*)(const CHAR *, DWORD)' {aka 'int (*)(const char *, long unsigned int)'} [-Wincompatible-pointer-types]
   50 |     SetFileAttributesA,
      |     ^~~~~~~~~~~~~~~~~~
C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\src\lib\zip_source_file_win32_ansi.c:50:5: note: (near initialization for 'ops_ansi.set_file_attributes')
[ 92%] Building C object lib/CMakeFiles/zip.dir/zip_winzip_aes.c.obj
[ 93%] Building C object lib/CMakeFiles/zip.dir/zip_source_winzip_aes_decode.c.obj
[ 93%] Building C object lib/CMakeFiles/zip.dir/zip_source_winzip_aes_encode.c.obj
[ 94%] Linking C static library libzip.a
[ 94%] Built target zip
[ 95%] Building C object src/CMakeFiles/zipmerge.dir/zipmerge.c.obj
[ 96%] Building C object src/CMakeFiles/zipcmp.dir/zipcmp.c.obj
[ 97%] Building C object src/CMakeFiles/ziptool.dir/ziptool.c.obj
[ 98%] Building C object src/CMakeFiles/zipcmp.dir/diff_output.c.obj
[ 99%] Linking C executable zipmerge.exe
[ 99%] Linking C executable zipcmp.exe
[ 99%] Built target zipmerge
[100%] Linking C executable ziptool.exe
[100%] Built target zipcmp
[100%] Built target ziptool

libzip/1.10.1: Package '7e3d364d6aea7050b6f84ad7dade70e0249be2b8' built
libzip/1.10.1: Build folder C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\build\Release
libzip/1.10.1: Generating the package
libzip/1.10.1: Packaging in folder C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\p
libzip/1.10.1: Calling package()
libzip/1.10.1: Running CMake.install()
libzip/1.10.1: RUN: cmake --install "C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\b\build\Release" --prefix "C:/Users/abril/.conan2/p/b/libzi918d60e1b254c/p"
-- Install configuration: "Release"
-- Installing: C:/Users/abril/.conan2/p/b/libzi918d60e1b254c/p/lib/pkgconfig/libzip.pc
-- Installing: C:/Users/abril/.conan2/p/b/libzi918d60e1b254c/p/lib/cmake/libzip/modules/FindNettle.cmake
-- Installing: C:/Users/abril/.conan2/p/b/libzi918d60e1b254c/p/lib/cmake/libzip/modules/Findzstd.cmake
-- Installing: C:/Users/abril/.conan2/p/b/libzi918d60e1b254c/p/lib/cmake/libzip/modules/FindMbedTLS.cmake
-- Installing: C:/Users/abril/.conan2/p/b/libzi918d60e1b254c/p/include/zipconf.h
-- Installing: C:/Users/abril/.conan2/p/b/libzi918d60e1b254c/p/lib/cmake/libzip/libzip-config.cmake
-- Installing: C:/Users/abril/.conan2/p/b/libzi918d60e1b254c/p/lib/cmake/libzip/libzip-config-version.cmake
-- Installing: C:/Users/abril/.conan2/p/b/libzi918d60e1b254c/p/lib/cmake/libzip/libzip-targets.cmake
-- Installing: C:/Users/abril/.conan2/p/b/libzi918d60e1b254c/p/lib/cmake/libzip/libzip-targets-release.cmake
-- Installing: C:/Users/abril/.conan2/p/b/libzi918d60e1b254c/p/lib/libzip.a
-- Installing: C:/Users/abril/.conan2/p/b/libzi918d60e1b254c/p/include/zip.h
-- Installing: C:/Users/abril/.conan2/p/b/libzi918d60e1b254c/p/bin/zipcmp.exe
-- Installing: C:/Users/abril/.conan2/p/b/libzi918d60e1b254c/p/bin/zipmerge.exe
-- Installing: C:/Users/abril/.conan2/p/b/libzi918d60e1b254c/p/bin/ziptool.exe

libzip/1.10.1: package(): Packaged 3 '.exe' files: zipcmp.exe, zipmerge.exe, ziptool.exe
libzip/1.10.1: package(): Packaged 2 '.h' files: zip.h, zipconf.h
libzip/1.10.1: package(): Packaged 1 '.a' file: libzip.a
libzip/1.10.1: package(): Packaged 1 file: LICENSE
libzip/1.10.1: Created package revision 2cdfaeb14128188008e07ba742d73eb5
libzip/1.10.1: Package '7e3d364d6aea7050b6f84ad7dade70e0249be2b8' created
libzip/1.10.1: Full package reference: libzip/1.10.1#a08d76d390fc0ced4f842109b1cb565a:7e3d364d6aea7050b6f84ad7dade70e0249be2b8#2cdfaeb14128188008e07ba742d73eb5
libzip/1.10.1: Package folder C:\Users\abril\.conan2\p\b\libzi918d60e1b254c\p
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated:     'env_info' used in: bzip2/1.0.8, zstd/1.5.5, libzip/1.10.1, mingw-builds/13.2.0
WARN: deprecated:     'cpp_info.names' used in: zlib/1.3.1, bzip2/1.0.8, xz_utils/5.4.5, zstd/1.5.5
WARN: deprecated:     'cpp_info.build_modules' used in: bzip2/1.0.8, xz_utils/5.4.5

======== Launching test_package ========

======== Computing dependency graph ========
Graph root
    libzip/1.10.1 (test package): Z:\Users\abril\coding\conan-center-index\recipes\libzip\all\test_package\conanfile.py
Requirements
    bzip2/1.0.8#d00dac990f08d991998d624be81a9526 - Cache
    libzip/1.10.1#a08d76d390fc0ced4f842109b1cb565a - Cache
    xz_utils/5.4.5#f4bc8df2286b577e26325fe8ca32658a - Cache
    zlib/1.3.1#e20364c96c45455608a72543f3a53133 - Cache
    zstd/1.5.5#b87dc3b185caa4b122979ac4ae8ef7e8 - Cache
Build requirements
    7zip/19.00#6c39c38a52d3e8271deb7195ccc74fe8 - Cache
    lzma_sdk/9.20#f1fe20056422603432563a07b25f2ee3 - Cache
    mingw-builds/13.2.0#ab22f49d3346136be2b91fdeaf2f39c9 - Cache
    msys2/cci.latest#f6bb451a181a3f452024ea43ca744061 - Cache

======== Computing necessary packages ========
mingw-builds/13.2.0: WARN: Tool require 'mingw-builds' provides binaries for gcc with options.exception=seh, your profile:host declares settings.compiler.exception=None, please use the same value for both.
mingw-builds/13.2.0: WARN: Tool require 'mingw-builds' provides binaries for gcc with options.exception=seh, your profile:host declares settings.compiler.exception=None, please use the same value for both.
mingw-builds/13.2.0: WARN: Tool require 'mingw-builds' provides binaries for gcc with options.exception=seh, your profile:host declares settings.compiler.exception=None, please use the same value for both.
mingw-builds/13.2.0: WARN: Tool require 'mingw-builds' provides binaries for gcc with options.exception=seh, your profile:host declares settings.compiler.exception=None, please use the same value for both.
mingw-builds/13.2.0: WARN: Tool require 'mingw-builds' provides binaries for gcc with options.exception=seh, your profile:host declares settings.compiler.exception=None, please use the same value for both.
mingw-builds/13.2.0: WARN: Tool require 'mingw-builds' provides binaries for gcc with options.exception=seh, your profile:host declares settings.compiler.exception=None, please use the same value for both.
Requirements
    bzip2/1.0.8#d00dac990f08d991998d624be81a9526:0661fa84e4b7bfb06bad20a4887b64f285a98eca#e4838bedd2ad81efb88dec01f71de98b - Cache
    libzip/1.10.1#a08d76d390fc0ced4f842109b1cb565a:7e3d364d6aea7050b6f84ad7dade70e0249be2b8#2cdfaeb14128188008e07ba742d73eb5 - Cache
    xz_utils/5.4.5#f4bc8df2286b577e26325fe8ca32658a:d445b187f1798cf1ebdb6ac49de2040f8c70841f#3854e6d5ef2c03a733efdbe446e23a5a - Cache
    zlib/1.3.1#e20364c96c45455608a72543f3a53133:d445b187f1798cf1ebdb6ac49de2040f8c70841f#158ba9733247f869b406518e0b4d4185 - Cache
    zstd/1.5.5#b87dc3b185caa4b122979ac4ae8ef7e8:ee7f5bfdff449dcd4f5b79424f07cbd59615b4d7#84a8a8d7ec944a7777a503b8bd77e0e9 - Cache
Build requirements
    mingw-builds/13.2.0#ab22f49d3346136be2b91fdeaf2f39c9:f82b765f5ccc390bb8d409c50689a5c5ab3eb642#18755e0881ff245416a4541fd0f1fc34 - Cache
Skipped binaries
    7zip/19.00, lzma_sdk/9.20, msys2/cci.latest

======== Installing packages ========
mingw-builds/13.2.0: Already installed! (1 of 6)
mingw-builds/13.2.0: WARN: Tool require 'mingw-builds' provides binaries for gcc with options.exception=seh, your profile:host declares settings.compiler.exception=None, please use the same value for both.
bzip2/1.0.8: Already installed! (2 of 6)
xz_utils/5.4.5: Already installed! (3 of 6)
zlib/1.3.1: Already installed! (4 of 6)
zstd/1.5.5: Already installed! (5 of 6)
libzip/1.10.1: Already installed! (6 of 6)
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated:     'env_info' used in: bzip2/1.0.8, zstd/1.5.5, libzip/1.10.1, mingw-builds/13.2.0
WARN: deprecated:     'cpp_info.names' used in: zlib/1.3.1, bzip2/1.0.8, xz_utils/5.4.5, zstd/1.5.5
WARN: deprecated:     'cpp_info.build_modules' used in: bzip2/1.0.8, xz_utils/5.4.5

======== Testing the package ========
Removing previously existing 'test_package' build folder: Z:\Users\abril\coding\conan-center-index\recipes\libzip\all\test_package\build\gcc-13-x86_64-17-release
libzip/1.10.1 (test package): Test package build: build\gcc-13-x86_64-17-release
libzip/1.10.1 (test package): Test package build folder: Z:\Users\abril\coding\conan-center-index\recipes\libzip\all\test_package\build\gcc-13-x86_64-17-release
libzip/1.10.1 (test package): Writing generators to Z:\Users\abril\coding\conan-center-index\recipes\libzip\all\test_package\build\gcc-13-x86_64-17-release\generators
libzip/1.10.1 (test package): Generator 'CMakeToolchain' calling 'generate()'
libzip/1.10.1 (test package): CMakeToolchain generated: conan_toolchain.cmake
libzip/1.10.1 (test package): CMakeToolchain generated: Z:\Users\abril\coding\conan-center-index\recipes\libzip\all\test_package\build\gcc-13-x86_64-17-release\generators\CMakePresets.json
libzip/1.10.1 (test package): CMakeToolchain generated: Z:\Users\abril\coding\conan-center-index\recipes\libzip\all\test_package\CMakeUserPresets.json
libzip/1.10.1 (test package): Generator 'CMakeDeps' calling 'generate()'
libzip/1.10.1 (test package): CMakeDeps necessary find_package() and targets for your CMakeLists.txt
    find_package(libzip)
    target_link_libraries(... libzip::zip)
libzip/1.10.1 (test package): Generator 'VirtualRunEnv' calling 'generate()'
libzip/1.10.1 (test package): Generating aggregated env files
libzip/1.10.1 (test package): Generated aggregated env files: ['conanrun.bat', 'conanbuild.bat']

======== Testing the package: Building ========
libzip/1.10.1 (test package): Calling build()
libzip/1.10.1 (test package): Running CMake.configure()
libzip/1.10.1 (test package): RUN: cmake -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="Z:/Users/abril/coding/conan-center-index/recipes/libzip/all/test_package" -DCMAKE_SH="CMAKE_SH-NOTFOUND" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "Z:/Users/abril/coding/conan-center-index/recipes/libzip/all/test_package"
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Using Conan toolchain: Z:/Users/abril/coding/conan-center-index/recipes/libzip/all/test_package/build/gcc-13-x86_64-17-release/generators/conan_toolchain.cmake
-- Conan toolchain: Defining architecture flag: -m64
-- Conan toolchain: Adding glibcxx compile definition: _GLIBCXX_USE_CXX11_ABI=0
-- Conan toolchain: C++ Standard 17 with extensions OFF
-- The C compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/abril/.conan2/p/mingwf3629a0c4f698/p/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Conan: Component target declared 'libzip::zip'
-- Conan: Target declared 'ZLIB::ZLIB'
-- Conan: Target declared 'BZip2::BZip2'
-- Conan: Including build module from 'C:/Users/abril/.conan2/p/b/bzip2f481ad4019c02/p/lib/cmake/conan-official-bzip2-variables.cmake'
-- Conan: Target declared 'LibLZMA::LibLZMA'
-- Conan: Including build module from 'C:/Users/abril/.conan2/p/b/xz_ut4ffe6583566ce/p/lib/cmake/conan-official-xz_utils-variables.cmake'
-- Conan: Component target declared 'zstd::libzstd_static'
-- Configuring done (0.9s)
-- Generating done (0.0s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_SH


-- Build files have been written to: Z:/Users/abril/coding/conan-center-index/recipes/libzip/all/test_package/build/gcc-13-x86_64-17-release

libzip/1.10.1 (test package): Running CMake.build()
libzip/1.10.1 (test package): RUN: cmake --build "Z:\Users\abril\coding\conan-center-index\recipes\libzip\all\test_package\build\gcc-13-x86_64-17-release" -- -j4
[ 50%] Building C object CMakeFiles/test_package.dir/test_package.c.obj
[100%] Linking C executable test_package.exe
[100%] Built target test_package


======== Testing the package: Executing test ========
libzip/1.10.1 (test package): Running test()
libzip/1.10.1 (test package): RUN: .\test_package

@AbrilRBS AbrilRBS self-assigned this Nov 26, 2024
@TrevorCash
Copy link
Author

TrevorCash commented Nov 26, 2024

Hi @AbrilRBS ,

I dont have a
[tool_requires]
: mingw-builds/[]

I also am not specifying a profile build. (I see that you are specifying compiler=msvc)

I am targeting all building to be in the msys2 mingw64 enviroment with gcc as the compiler.

entry in my profile. my approach is open up a new MSYS2 MINGW64 terminal shell (provided shell from msys2)
and run:

conan install --requires=libzip/1.10.1 -pr:a=conan/windows-msys2-mingw.conan.profile --build=missing

which results in some messages related to incompatible pointer types.

It may be that this is really a libzip issue and not a conan issue with the code - but I know msys2 can build libzip as that is provided in their package repository: https://packages.msys2.org/packages/mingw-w64-x86_64-libzip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants