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] zlib/1.2.12: Fails to build for Windows+Ninja+clang with build_type=Debug #10537

Open
kalj opened this issue Apr 28, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@kalj
Copy link

kalj commented Apr 28, 2022

Package and Environment Details

  • Package Name/Version: zlib/1.2.12
  • Operating System+version: Windows 10
  • Compiler+version: clang 11.0.1
  • Conan version: conan 1.45.0
  • Python version: Python 3.9.1
  • Ninja version: ninja 1.10.2
  • Cmake version: cmake 3.22.2

Conan profile

Configuration for profile default:

[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=Visual Studio
compiler.version=16
build_type=Release
[options]
[conf]
[build_requires]
[env]

Steps to reproduce

From a git bash:

CC=clang CCX=clang++ CONAN_CMAKE_GENERATOR=Ninja conan install zlib/1.2.12@ -s compiler=clang -s compiler.version=11 -s build_type=Debug --build=missing

Logs (Include/Attach if Applicable)

Click to expand log
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=clang
compiler.version=11
os=Windows
os_build=Windows
[options]
[build_requires]
[env]

Installing package: zlib/1.2.12
Requirements
    zlib/1.2.12 from 'conancenter' - Cache
Packages
    zlib/1.2.12:0778b007b0f73be7de0191eacba7188d2bc2bd5a - Build

Installing (downloading, building) binaries...
zlib/1.2.12: Copying sources to build folder
zlib/1.2.12: Building your package in C:\Users\<user>\.conan\data\zlib\1.2.12\_\_\build\0778b007b0f73be7de0191eacba7188d2bc2bd5a
zlib/1.2.12: Generator cmake created conanbuildinfo.cmake
zlib/1.2.12: Aggregating env generators
zlib/1.2.12: Calling build()
zlib/1.2.12: Found Visual Studio 16
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.9.2
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
-- The C compiler identification is Clang 11.0.1 with GNU-like command-line
-- The CXX compiler identification is Clang 11.0.1 with GNU-like command-line
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/LLVM/bin/clang.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/LLVM/bin/clang++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Conan: called by CMake conan helper
-- Conan: called inside local cache
-- Conan: Adjusting output directories
-- Conan: Using cmake global configuration
-- Conan: Adjusting language standard
-- Conan: Compiler Clang>=8, checking major version 11
-- Conan: Checking correct version: 11
-- 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 off64_t
-- Check size of off64_t - failed
-- Looking for fseeko
-- Looking for fseeko - not found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Renaming
--     C:/Users/<user>/.conan/data/zlib/1.2.12/_/_/build/0778b007b0f73be7de0191eacba7188d2bc2bd5a/source_subfolder/zconf.h
-- to 'zconf.h.included' because this file is included with zlib
-- but CMake generates it automatically in the build directory.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/<user>/.conan/data/zlib/1.2.12/_/_/build/0778b007b0f73be7de0191eacba7188d2bc2bd5a/build_subfolder
zlib/1.2.12: Found Visual Studio 16
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.9.2
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
[1/16] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/compress.c.obj
[2/16] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/adler32.c.obj
[3/16] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/crc32.c.obj
[4/16] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/gzclose.c.obj
[5/16] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/gzlib.c.obj
../source_subfolder/gzlib.c:195:15: warning: 'wcstombs' is deprecated: This function or variable may be unsafe. Consider using wcstombs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
        len = wcstombs(NULL, path, 0);
              ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\stdlib.h:1012:1: note: 'wcstombs' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE(
^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt.h:877:5: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE'
    __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE_EX(_DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2)
    ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt.h:1948:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec size_t __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2);
                ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h:320:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h:310:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
../source_subfolder/gzlib.c:210:13: warning: 'wcstombs' is deprecated: This function or variable may be unsafe. Consider using wcstombs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
            wcstombs(state->path, path, len + 1);
            ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\stdlib.h:1012:1: note: 'wcstombs' has been explicitly marked deprecated here
__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE(
^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt.h:877:5: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE'
    __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE_EX(_DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2)
    ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt.h:1948:17: note: expanded from macro '__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE_EX'
                _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec size_t __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2);
                ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h:320:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h:310:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
../source_subfolder/gzlib.c:245:20: warning: '_wopen' is deprecated: This function or variable may be unsafe. Consider using _wsopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
        fd == -2 ? _wopen(path, oflag, 0666) :
                   ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt_wio.h:253:20: note: '_wopen' has been explicitly marked deprecated here
    _Check_return_ _CRT_INSECURE_DEPRECATE(_wsopen_s)
                   ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h:320:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h:310:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
../source_subfolder/gzlib.c:247:9: warning: 'open' is deprecated: The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _open. See online help for details. [-Wdeprecated-declarations]
        open((const char *)path, oflag, 0666));
        ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt_io.h:517:24: note: 'open' has been explicitly marked deprecated here
        _Check_return_ _CRT_NONSTDC_DEPRECATE(_open) _CRT_INSECURE_DEPRECATE(_sopen_s)
                       ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt.h:414:50: note: expanded from macro '_CRT_NONSTDC_DEPRECATE'
        #define _CRT_NONSTDC_DEPRECATE(_NewName) _CRT_DEPRECATE_TEXT(             \
                                                 ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h:310:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
4 warnings generated.
[6/16] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/deflate.c.obj
[7/16] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/gzwrite.c.obj
../source_subfolder/gzwrite.c:89:20: warning: 'write' is deprecated: The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _write. See online help for details. [-Wdeprecated-declarations]
            writ = write(state->fd, strm->next_in, put);
                   ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt_io.h:559:24: note: 'write' has been explicitly marked deprecated here
        _Check_return_ _CRT_NONSTDC_DEPRECATE(_write)
                       ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt.h:414:50: note: expanded from macro '_CRT_NONSTDC_DEPRECATE'
        #define _CRT_NONSTDC_DEPRECATE(_NewName) _CRT_DEPRECATE_TEXT(             \
                                                 ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h:310:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
../source_subfolder/gzwrite.c:91:42: warning: 'strerror' is deprecated: This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
                gz_error(state, Z_ERRNO, zstrerror());
                                         ^
../source_subfolder/gzguts.h:137:25: note: expanded from macro 'zstrerror'
#    define zstrerror() strerror(errno)
                        ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\string.h:177:16: note: 'strerror' has been explicitly marked deprecated here
_Check_return_ _CRT_INSECURE_DEPRECATE(strerror_s)
               ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h:320:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h:310:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
../source_subfolder/gzwrite.c:119:24: warning: 'write' is deprecated: The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _write. See online help for details. [-Wdeprecated-declarations]
                writ = write(state->fd, state->x.next, put);
                       ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt_io.h:559:24: note: 'write' has been explicitly marked deprecated here
        _Check_return_ _CRT_NONSTDC_DEPRECATE(_write)
                       ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt.h:414:50: note: expanded from macro '_CRT_NONSTDC_DEPRECATE'
        #define _CRT_NONSTDC_DEPRECATE(_NewName) _CRT_DEPRECATE_TEXT(             \
                                                 ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h:310:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
../source_subfolder/gzwrite.c:121:46: warning: 'strerror' is deprecated: This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
                    gz_error(state, Z_ERRNO, zstrerror());
                                             ^
../source_subfolder/gzguts.h:137:25: note: expanded from macro 'zstrerror'
#    define zstrerror() strerror(errno)
                        ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\string.h:177:16: note: 'strerror' has been explicitly marked deprecated here
_Check_return_ _CRT_INSECURE_DEPRECATE(strerror_s)
               ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h:320:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h:310:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
../source_subfolder/gzwrite.c:673:9: warning: 'close' is deprecated: The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _close. See online help for details. [-Wdeprecated-declarations]
    if (close(state->fd) == -1)
        ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt_io.h:460:28: note: 'close' has been explicitly marked deprecated here
        _Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_close)
                           ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt.h:414:50: note: expanded from macro '_CRT_NONSTDC_DEPRECATE'
        #define _CRT_NONSTDC_DEPRECATE(_NewName) _CRT_DEPRECATE_TEXT(             \
                                                 ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h:310:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
5 warnings generated.
[8/16] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/infback.c.obj
[9/16] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/uncompr.c.obj
[10/16] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/inftrees.c.obj
[11/16] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/gzread.c.obj
../source_subfolder/gzread.c:35:15: warning: 'read' is deprecated: The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _read. See online help for details. [-Wdeprecated-declarations]
        ret = read(state->fd, buf + *have, get);
              ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt_io.h:524:9: note: 'read' has been explicitly marked deprecated here
        _CRT_NONSTDC_DEPRECATE(_read)
        ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt.h:414:50: note: expanded from macro '_CRT_NONSTDC_DEPRECATE'
        #define _CRT_NONSTDC_DEPRECATE(_NewName) _CRT_DEPRECATE_TEXT(             \
                                                 ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h:310:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
../source_subfolder/gzread.c:41:34: warning: 'strerror' is deprecated: This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
        gz_error(state, Z_ERRNO, zstrerror());
                                 ^
../source_subfolder/gzguts.h:137:25: note: expanded from macro 'zstrerror'
#    define zstrerror() strerror(errno)
                        ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\string.h:177:16: note: 'strerror' has been explicitly marked deprecated here
_Check_return_ _CRT_INSECURE_DEPRECATE(strerror_s)
               ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h:320:55: note: expanded from macro '_CRT_INSECURE_DEPRECATE'
        #define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT(    \
                                                      ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h:310:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
../source_subfolder/gzread.c:649:11: warning: 'close' is deprecated: The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _close. See online help for details. [-Wdeprecated-declarations]
    ret = close(state->fd);
          ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt_io.h:460:28: note: 'close' has been explicitly marked deprecated here
        _Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_close)
                           ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt.h:414:50: note: expanded from macro '_CRT_NONSTDC_DEPRECATE'
        #define _CRT_NONSTDC_DEPRECATE(_NewName) _CRT_DEPRECATE_TEXT(             \
                                                 ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\vcruntime.h:310:47: note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
                                              ^
3 warnings generated.
[12/16] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/inffast.c.obj
[13/16] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/inflate.c.obj
[14/16] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/trees.c.obj
[15/16] Building C object source_subfolder/CMakeFiles/zlibstatic.dir/zutil.c.obj
[16/16] Linking C static library lib\zlibstatic.lib
zlib/1.2.12: Package '0778b007b0f73be7de0191eacba7188d2bc2bd5a' built
zlib/1.2.12: Build folder C:\Users\<user>\.conan\data\zlib\1.2.12\_\_\build\0778b007b0f73be7de0191eacba7188d2bc2bd5a
zlib/1.2.12: Generated conaninfo.txt
zlib/1.2.12: Generated conanbuildinfo.txt
zlib/1.2.12: Generating the package
zlib/1.2.12: Package folder C:\Users\<user>\.conan\data\zlib\1.2.12\_\_\package\0778b007b0f73be7de0191eacba7188d2bc2bd5a
zlib/1.2.12: Calling package()
zlib/1.2.12: Found Visual Studio 16
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.9.2
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
[0/1] Install the project...
-- Install configuration: "Debug"
-- Installing: C:/Users/<user>/.conan/data/zlib/1.2.12/_/_/package/0778b007b0f73be7de0191eacba7188d2bc2bd5a/lib/zlibstatic.lib
-- Installing: C:/Users/<user>/.conan/data/zlib/1.2.12/_/_/package/0778b007b0f73be7de0191eacba7188d2bc2bd5a/include/zconf.h
-- Installing: C:/Users/<user>/.conan/data/zlib/1.2.12/_/_/package/0778b007b0f73be7de0191eacba7188d2bc2bd5a/include/zlib.h

ERROR: zlib/1.2.12: Error in package() method, line 122
        self._rename_libraries()
while calling '_rename_libraries', line 105
        tools.rename(current_lib, os.path.join(lib_path, "zlib.lib"))
        ConanException: rename C:\Users\<user>\.conan\data\zlib\1.2.12\_\_\package\0778b007b0f73be7de0191eacba7188d2bc2bd5a\lib\zlibstaticd.lib
 to C:\Users\<user>\.conan\data\zlib\1.2.12\_\_\package\0778b007b0f73be7de0191eacba7188d2bc2bd5a\lib\zlib.lib failed: [WinError 2] The system c
annot find the file specified: 'C:\\Users\\<user>\\.conan\\data\\zlib\\1.2.12\\_\\_\\package\\0778b007b0f73be7de0191eacba7188d2bc2bd5a\\lib\\zl
ibstaticd.lib' -> 'C:\\Users\\<user>\\.conan\\data\\zlib\\1.2.12\\_\\_\\package\\0778b007b0f73be7de0191eacba7188d2bc2bd5a\\lib\\zlib.lib'
@kalj kalj added the bug Something isn't working label Apr 28, 2022
@kalj
Copy link
Author

kalj commented Apr 28, 2022

Clearly, the recipe expects the debug output library to be called zlibstaticd.lib, whereas it actually is called zlibstatic.lib. Probably these lines need tweaking:
https://github.com/conan-io/conan-center-index/blob/master/recipes/zlib/all/conanfile.py#L93-L109
or something int the cmake patch?

@SpaceIm
Copy link
Contributor

SpaceIm commented Apr 28, 2022

This logic has been added in #9807 to fix... clang-cl

/cc @AndreyMlashkin & @SSE4

@AndreyMlashkin
Copy link
Contributor

There should be a decision taken, how to differentiate different clang installations
conan-io/conan#10955

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

3 participants