[package] openssl/1.1.1m: can't build with windows clang
See original GitHub issuePackage and Environment Details (include every applicable attribute)
- Package Name/Version: openssl/1.1.1m
- Operating System+version: Windows 10
- Compiler+version: clang 12
- Conan version: conan 1.46.0
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=Release
compiler=clang
compiler.runtime=MD
compiler.version=12
cppstd=17
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 openssl/1.1.1m@ --build missing -pr clang
Logs (Include/Attach if Applicable)
Click to expand log
> conan install --build missing -pr clang openssl/1.1.1m@
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=clang
compiler.runtime=MD
compiler.version=12
cppstd=17
os=Windows
os_build=Windows
pictofitstudio:build_type=RelWithDebInfo
pictofitcore:build_type=RelWithDebInfo
[options]
pictofitstudio*:with_sentry=True
[build_requires]
[env]
CC=clang-cl
CONAN_CMAKE_GENERATOR=Ninja
CXX=clang-cl
openssl/1.1.1m: WARN: Package binary is corrupted, removing: e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc
Installing package: openssl/1.1.1m
Requirements
openssl/1.1.1m from 'artifactory' - Cache
Packages
openssl/1.1.1m:e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc - Build
Build requirements
nasm/2.15.05 from 'artifactory' - Cache
strawberryperl/5.30.0.1 from 'artifactory' - Cache
Build requirements packages
nasm/2.15.05:0a420ff5c47119e668867cdb51baff0eca1fdb68 - Cache
strawberryperl/5.30.0.1:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Cache
Installing (downloading, building) binaries...
nasm/2.15.05: Already installed!
nasm/2.15.05: Appending PATH environment variable: D:\.conan\storage\nasm\2.15.05\_\_\package\0a420ff5c47119e668867cdb51baff0eca1fdb68\bin
strawberryperl/5.30.0.1: Already installed!
strawberryperl/5.30.0.1: Appending PATH environment variable: D:\.conan\fb39bb\1\bin
openssl/1.1.1m: Applying build-requirement: strawberryperl/5.30.0.1
openssl/1.1.1m: Applying build-requirement: nasm/2.15.05
openssl/1.1.1m: WARN: Build folder is dirty, removing it: D:\.conan\storage\openssl\1.1.1m\_\_\build\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc
openssl/1.1.1m: Copying sources to build folder
openssl/1.1.1m: Building your package in D:\.conan\storage\openssl\1.1.1m\_\_\build\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc
openssl/1.1.1m: Generator txt created conanbuildinfo.txt
openssl/1.1.1m: Aggregating env generators
openssl/1.1.1m: Calling build()
Found Visual Studio 16
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.11.11
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
openssl/1.1.1m: using target: VC-conan-Release-Windows-x86_64-clang-12 -> VC-WIN64A
openssl/1.1.1m: my %targets = (
"VC-conan-Release-Windows-x86_64-clang-12" => {
inherit_from => [ "VC-WIN64A" ],
cflags => add("-m64 -O3 -MD"),
cxxflags => add("-m64 -O3 -MD"),
defines => add("NDEBUG"),
includes => add("D:/.conan/fb39bb/1/include"),
lflags => add("-m64"),
cc => "clang-cl",
cxx => "clang-cl",
},
);
openssl/1.1.1m: ['"VC-conan-Release-Windows-x86_64-clang-12"', 'no-shared', '--prefix="D:\\.conan\\storage\\openssl\\1.1.1m\\_\\_\\package\\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc"', '--openssldir="D:\\.conan\\storage\\openssl\\1.1.1m\\_\\_\\package\\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc\\res"', 'no-unit-test', 'threads', 'PERL=D:\\.conan\\fb39bb\\1\\bin\\perl.exe', 'no-tests', '--release']
WARN: replace_in_file didn't find pattern '/MTd ' in 'Configurations\10-main.conf' file.
WARN: replace_in_file didn't find pattern '/MTd"' in 'Configurations\10-main.conf' file.
----Running------
> D:\.conan\fb39bb\1\bin\perl.exe ./Configure "VC-conan-Release-Windows-x86_64-clang-12" no-shared --prefix="D:\.conan\storage\openssl\1.1.1m\_\_\package\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc" --openssldir="D:\.conan\storage\openssl\1.1.1m\_\_\package\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc\res" no-unit-test threads PERL=D:\.conan\fb39bb\1\bin\perl.exe no-tests --release
-----------------
Configuring OpenSSL version 1.1.1m (0x101010dfL) for VC-conan-Release-Windows-x86_64-clang-12
Using os-specific seed configuration
Creating configdata.pm
Creating makefile
**********************************************************************
*** ***
*** OpenSSL has been successfully configured ***
*** ***
*** If you encounter a problem while building, please open an ***
*** issue on GitHub <https://github.com/openssl/openssl/issues> ***
*** and include the output from the following command: ***
*** ***
*** perl configdata.pm --dump ***
*** ***
*** (If you are new to OpenSSL, you might want to consult the ***
*** 'Troubleshooting' section in the INSTALL file first) ***
*** ***
**********************************************************************
----Running------
> nmake
-----------------
Microsoft (R) Program Maintenance Utility Version 14.29.30141.0
Copyright (C) Microsoft Corporation. All rights reserved.
"D:\.conan\fb39bb\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\crypto\bn_conf.h.in" > include\crypto\bn_conf.h
"D:\.conan\fb39bb\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\crypto\dso_conf.h.in" > include\crypto\dso_conf.h
"D:\.conan\fb39bb\1\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl" "-omakefile" "include\openssl\opensslconf.h.in" > include\openssl\opensslconf.h
"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\nmake.exe" / depend && "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\nmake.exe" / _all
Microsoft (R) Program Maintenance Utility Version 14.29.30141.0
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) Program Maintenance Utility Version 14.29.30141.0
Copyright (C) Microsoft Corporation. All rights reserved.
"clang-cl" /Zi /Fdossl_static.pdb / /Zl /Gs0 /GF /Gy -m64 -O3 -MD /W3 /wd4090 /nologo /O2 /I "." /I "include" -D"L_ENDIAN" -D"OPENSSL_PIC" -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2" -D"OPENSSL_BN_ASM_MONT" -D"OPENSSL_BN_ASM_MONT5" -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM" -D"SHA256_ASM" -D"SHA512_ASM" -D"KECCAK1600_ASM" -D"RC4_ASM" -D"MD5_ASM" -D"AESNI_ASM" -D"VPAES_ASM" -D"GHASH_ASM" -D"ECP_NISTZ256_ASM" -D"X25519_ASM" -D"POLY1305_ASM" -D"OPENSSLDIR=\"D:\\.conan\\storage\\openssl\\1.1.1m\\_\\_\\package\\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc\\res\"" -D"ENGINESDIR=\"D:\\.conan\\storage\\openssl\\1.1.1m\\_\\_\\package\\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc\\lib\\engines-1_1\"" -D"OPENSSL_SYS_WIN32" -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE" -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS" -D"NDEBUG" -D"NDEBUG" -I"D:/.conan/fb39bb/1/include" -c /Foapps\app_rand.obj "apps\app_rand.c"
clang-cl: error: cannot specify '/Foapps\app_rand.obj' when compiling multiple source files
clang-cl: warning: /: 'linker' input unused [-Wunused-command-line-argument]
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\Llvm\x64\bin\clang-cl.EXE"' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.
openssl/1.1.1m:
openssl/1.1.1m: ERROR: Package 'e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc' build failed
openssl/1.1.1m: WARN: Build folder D:\.conan\storage\openssl\1.1.1m\_\_\build\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc
ERROR: openssl/1.1.1m: Error in build() method, line 772
self._make()
while calling '_make', line 712
self._run_make()
while calling '_run_make', line 667
self.run(" ".join(command), win_bash=self._win_bash)
ConanException: Error 2 while executing nmake
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Compilation and Installation - OpenSSLWiki
You must use a C compiler to build the OpenSSL library. You cannot use a C++ compiler. Later, once the library is built,...
Read more >Homebrew refusing to link OpenSSL - Stack Overflow
I'm getting a /usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.0.0/System.Security.Cryptography.Native.dylib (No such file or directory) .
Read more >The OpenSSL security update story – how can you tell what ...
Organisations including Microsoft, Adobe, Oracle and Mozilla also ... to build 64-bit Windows executables only, and 64-bit code can't load ...
Read more >ODBC driver can't find correct openSSL version after ...
[08001][Microsoft][ODBC Driver 17 for SQL Server]SSL Provider: [OpenSSL library could not be loaded, make sure OpenSSL 1.0 or 1.1 is ...
Read more >I can't install this package - Install.packages("openssl") - General
nstall.packages("openssl") Installing package into '/home/shaam/R/x86_64-pc-linux-gnu-library/3.6' (as 'lib' is unspecified) trying URL ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
now it works for me. It seems, it was related to the time shift. pkg-config was also not working back then
I am getting endless build loop locally…