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.11 : compiler mismatch #6416

Closed
AndreyMlashkin opened this issue Jul 19, 2021 · 1 comment
Closed

[package] zlib/1.2.11 : compiler mismatch #6416

AndreyMlashkin opened this issue Jul 19, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@AndreyMlashkin
Copy link
Contributor

If I try to compiler with clang not in docker, but on my host system, despite I have overridden CC and CXX variables, still an MSVC toolset is used

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: zlib/1.2.11
  • Operating System+version: windows 10
  • Compiler+version: clang 12
  • Conan version: conan 1.38.0
  • Python version: Python 3.8.5

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=clang
compiler.version=12.0
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
CC=clang-cl
CONAN_CMAKE_GENERATOR=Ninja
CXX=clang-cl

Steps to reproduce (Include if Applicable)

conan install zlib/1.2.11@ --build * -pr clang

Logs (Include/Attach if Applicable)

Click to expand log
conan install zlib/1.2.11@ --build *  -pr clang
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=clang
compiler.version=12
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
CC=C:\Program Files\LLVM\bin\clang-cl.exe
CONAN_CMAKE_GENERATOR=Ninja
CXX=C:\Program Files\LLVM\bin\clang-cl.exe
zlib/1.2.11: Forced build from source
Installing package: zlib/1.2.11
Requirements
    zlib/1.2.11 from 'artifactory' - Cache
Packages
    zlib/1.2.11:bd500648356902bb5cb5a6961daa81fc25f3f22c - Build

Installing (downloading, building) binaries...
zlib/1.2.11: WARN: Build folder is dirty, removing it: E:\conan_new\zlib\1.2.11\_\_\build\bd500648356902bb5cb5a6961daa81fc25f3f22c
zlib/1.2.11: Copying sources to build folder
zlib/1.2.11: Building your package in E:\conan_new\zlib\1.2.11\_\_\build\bd500648356902bb5cb5a6961daa81fc25f3f22c
zlib/1.2.11: Generator cmake created conanbuildinfo.cmake
zlib/1.2.11: Calling build()
zlib/1.2.11: Found Visual Studio 16
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.10.3
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
-- The C compiler identification is Clang 12.0.0 with MSVC-like command-line
-- The CXX compiler identification is Clang 12.0.0 with MSVC-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-cl.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-cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Conan CMake Wrapper
-- Conan: called by CMake conan helper
-- Conan: called inside local cache
-- Conan: Adjusting output directories
-- Conan: Using cmake global configuration
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
-- Conan: Compiler Clang>=8, checking major version 12
-- Conan: Checking correct version: 12
-- 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
--     E:/conan_new/zlib/1.2.11/_/_/build/bd500648356902bb5cb5a6961daa81fc25f3f22c/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
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_INSTALL_BINDIR
    CMAKE_INSTALL_DATAROOTDIR
    CMAKE_INSTALL_INCLUDEDIR
    CMAKE_INSTALL_LIBDIR
    CMAKE_INSTALL_LIBEXECDIR
    CMAKE_INSTALL_OLDINCLUDEDIR
    CMAKE_INSTALL_SBINDIR


-- Build files have been written to: E:/conan_new/zlib/1.2.11/_/_/build/bd500648356902bb5cb5a6961daa81fc25f3f22c/build_subfolder
zlib/1.2.11: Found Visual Studio 16
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.10.3
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
[16/16] Linking C static library lib\zlibstaticd.lib
zlib/1.2.11: Package 'bd500648356902bb5cb5a6961daa81fc25f3f22c' built
zlib/1.2.11: Build folder E:\conan_new\zlib\1.2.11\_\_\build\bd500648356902bb5cb5a6961daa81fc25f3f22c
zlib/1.2.11: Generated conaninfo.txt
zlib/1.2.11: Generated conanbuildinfo.txt
zlib/1.2.11: Generating the package
zlib/1.2.11: Package folder E:\conan_new\zlib\1.2.11\_\_\package\bd500648356902bb5cb5a6961daa81fc25f3f22c
zlib/1.2.11: Calling package()
ERROR: zlib/1.2.11: Error in package() method, line 124
        self._rename_libraries()
while calling '_rename_libraries', line 97
        tools.rename(current_lib, os.path.join(lib_path, "zlib.lib"))
        ConanException: rename E:\conan_new\zlib\1.2.11\_\_\package\bd500648356902bb5cb5a6961daa81fc25f3f22c\lib\zlibstatic.lib to E:\conan_new\zlib\1.2.11\_\_\package\bd500648356902bb5cb5a6961daa81fc25f3f22c\lib\zlib.lib failed: [WinError 2] The system cannot find the file specified: 'E:\\conan_new\\zlib\\1.2.11\\_\\_\\package\\bd500648356902bb5cb5a6961daa81fc25f3f22c\\lib\\zlibstatic.lib' -> 'E:\\conan_new\\zlib\\1.2.11\\_\\_\\package\\bd500648356902bb5cb5a6961daa81fc25f3f22c\\lib\\zlib.lib'
@ruilvo
Copy link
Contributor

ruilvo commented Jul 20, 2021

Duplicate #6414.

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