I am getting below mentioned error while trying to build the project on windows machine.
Could you please provide some advise?
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.tar gets(171,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Users\levon.hunte r_Base\0056188\a1cca18\834ecbe\Build\OpenSSL\Build\OpenSSL.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:22.23
[hunter * FATAL ERROR *] Build step failed (dir: C:/Users/levon/.hunter/_Base/ 0056188/a1cca18/834ecbe/Build/OpenSSL
[hunter * FATAL ERROR *] [Directory:C:/Users/levon/.hunter/_Base/Download/Hunt er/0.21.9/0056188/Unpacked/cmake/projects/OpenSSL]
One hint. IIRC, OpenSSL required perl to build. It was enough for me to install perl on Windows with default installation options.
i also get an OpenSSL build error with cmake.
@chfast do you mean ActivePerl or StrawberryPerl?
i installed MSVC2017 Community Edition, made sure to also include the MSVC2015 compiler, and used the build command cmake .. -DETHASHCL=ON -DETHASHCUDA=OFF, both with and without the -G "Visual Studio 15 2017 Win64" -Tv140 arguments, and without, it makes little difference,
here's the relevant console output:
Project "C:\.hunter\_Base\0056188\a1cca18\834ecbe\Build\OpenSSL\Build\ALL_BUILD.vcxproj" (1) is building "C:\.hunter\_Base\0056188\a1cca18\834ecbe\Build\OpenSSL\Build\OpenSSL.vcxproj" (3) on node 1 (default targets).
PrepareForBuild:
Creating directory "x64\Debug\OpenSSL\".
Creating directory "x64\Debug\OpenSSL\OpenSSL.tlog\".
InitializeBuildStatus:
Creating "x64\Debug\OpenSSL\OpenSSL.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ComputeCustomBuildOutput:
Creating directory "C:\.hunter\_Base\0056188\a1cca18\834ecbe\Build\OpenSSL\Build\OpenSSL-prefix\src\OpenSSL-stamp\Debug\".
Creating directory "C:\.hunter\_Base\0056188\a1cca18\834ecbe\Build\OpenSSL\Build\CMakeFiles\Debug\".
CustomBuild:
Creating directories for 'OpenSSL'
Building Custom Rule C:/.hunter/_Base/0056188/a1cca18/834ecbe/Build/OpenSSL/CMakeLists.txt
CMake does not need to re-run because C:/.hunter/_Base/0056188/a1cca18/834ecbe/Build/OpenSSL/Build/CMakeFiles/generate.stamp is up-to-date.
Performing download step (download, verify and extract) for 'OpenSSL'
-- Downloading...
dst='C:/.hunter/_Base/Download/OpenSSL/1.1.0h/2168c88/OpenSSL_1_1_0h.tar.gz'
timeout='none'
-- Using src='https://github.com/openssl/openssl/archive/OpenSSL_1_1_0h.tar.gz'
-- verifying file...
file='C:/.hunter/_Base/Download/OpenSSL/1.1.0h/2168c88/OpenSSL_1_1_0h.tar.gz'
-- Downloading... done
-- extracting...
src='C:/.hunter/_Base/Download/OpenSSL/1.1.0h/2168c88/OpenSSL_1_1_0h.tar.gz'
dst='C:/.hunter/_Base/0056188/a1cca18/834ecbe/Build/OpenSSL/Source'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
CMake Error at Build/OpenSSL-prefix/src/OpenSSL-stamp/extract-OpenSSL.cmake:51 (file):
file RENAME failed to rename
C:/.hunter/_Base/0056188/a1cca18/834ecbe/Build/OpenSSL/ex-OpenSSL1234/openssl-OpenSSL_1_1_0h
to
C:/.hunter/_Base/0056188/a1cca18/834ecbe/Build/OpenSSL/Source
because: No such file or directory
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 1. [C:\.hunter\_Base\0056188\a1cca18\834ecbe\Build\OpenSSL\Build\OpenSSL.vcxproj]
Done Building Project "C:\.hunter\_Base\0056188\a1cca18\834ecbe\Build\OpenSSL\Build\OpenSSL.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\.hunter\_Base\0056188\a1cca18\834ecbe\Build\OpenSSL\Build\ALL_BUILD.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\.hunter\_Base\0056188\a1cca18\834ecbe\Build\OpenSSL\Build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\.hunter\_Base\0056188\a1cca18\834ecbe\Build\OpenSSL\Build\OpenSSL.vcxproj" (default target) (3) ->
(CustomBuild target) ->
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 1. [C:\.hunter\_Base\0056188\a1cca18\834ecbe\Build\OpenSSL\Build\OpenSSL.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:15.37
[hunter ** FATAL ERROR **] Build step failed (dir: C:/.hunter/_Base/0056188/a1cca18/834ecbe/Build/OpenSSL
[hunter ** FATAL ERROR **] [Directory:C:/.hunter/_Base/Download/Hunter/0.21.9/0056188/Unpacked/cmake/projects/OpenSSL]
------------------------------ WIKI -------------------------------
https://github.com/ruslo/hunter/wiki/error.external.build.failed
-------------------------------------------------------------------
CMake Error at C:/.hunter/_Base/Download/Hunter/0.21.9/0056188/Unpacked/cmake/modules/hunter_wiki.cmake:12 (message):
Call Stack (most recent call first):
C:/.hunter/_Base/Download/Hunter/0.21.9/0056188/Unpacked/cmake/modules/hunter_fatal_error.cmake:20 (hunter_wiki)
C:/.hunter/_Base/Download/Hunter/0.21.9/0056188/Unpacked/cmake/modules/hunter_download.cmake:672 (hunter_fatal_error)
C:/.hunter/_Base/Download/Hunter/0.21.9/0056188/Unpacked/cmake/projects/OpenSSL/hunter.cmake:380 (hunter_download)
C:/.hunter/_Base/Download/Hunter/0.21.9/0056188/Unpacked/cmake/modules/hunter_add_package.cmake:53 (include)
libpoolprotocols/CMakeLists.txt:10 (hunter_add_package)
-- Configuring incomplete, errors occurred!
See also "C:/ethminer_source/build/CMakeFiles/CMakeOutput.log".
See also "C:/ethminer_source/build/CMakeFiles/CMakeError.log".
C:\ethminer_source\build>
@chfast i installed ActivePerl, and i stil get the openssl rename build error. =/
Personally I'm using StrawberryPerl. Also make sure that Perl is in your PATH.
set "PERL_PATH=C:\Perl\perl\bin"
set "PATH=%PERL_PATH%;%PATH%"
I have tried to run cmake using ActivePerl and StrawberryPerl but in both cases getting the same erorr.
And there is an interesting thing when I am opening the file E:/miner/energiminer/build/CMakeFiles/CMakeError.log
The file shows following results
Determining if the include file pthread.h exists failed with the following output:
Change Dir: E:/miner/energiminer/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/Program Files (x86)/Microsoft Visual tudio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe" "cmTC_d5082.vcxproj" /p:Configuration=Debug" "/p:VisualStudioVersion=15.0"
Microsoft (R) Build Engine version 15.7.179.6572 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 6/4/2018 12:05:34 PM.
Project "E:\miner\energiminer\build\CMakeFiles\CMakeTmp\cmTC_d5082.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "cmTC_d5082.dir\Debug\".
Creating directory "E:\miner\energiminer\build\CMakeFiles\CMakeTmp\Debug\".
Creating directory "cmTC_d5082.dir\Debug\cmTC_d5082.tlog\".
InitializeBuildStatus:
Creating "cmTC_d5082.dir\Debug\cmTC_d5082.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_d5082.dir\Debug\\" /Fd"cmTC_d5082.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue E:\miner\energiminer\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24234.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_d5082.dir\Debug\\" /Fd"cmTC_d5082.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue E:\miner\energiminer\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c
CheckIncludeFile.c
E:\miner\energiminer\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [E:\miner\energiminer\build\CMakeFiles\CMakeTmp\cmTC_d5082.vcxproj]
Done Building Project "E:\miner\energiminer\build\CMakeFiles\CMakeTmp\cmTC_d5082.vcxproj" (default targets) -- FAILED.
Build FAILED.
"E:\miner\energiminer\build\CMakeFiles\CMakeTmp\cmTC_d5082.vcxproj" (default target) (1) ->
(ClCompile target) ->
E:\miner\energiminer\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [E:\miner\energiminer\build\CMakeFiles\CMakeTmp\cmTC_d5082.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.37
It looks the build also requires pthread library.
I have to ask you to report this problem in Hunter.
E:/miner/energiminer/build/CMakeFiles/CMakeError.log
It's an internal checks. "Cannot open include file: 'pthread.h': No such file or directory" saying that pthread.h is not available for Visual Studio compiler, I kind of expect that.
I have worked on Git bash which had it`s own perl, please see info below.
$ perl --version
This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-msys-thread-multi
Copyright 1987-2017, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
After discussion on Hunters gitter chanell @ruslo gave my advise to change my perl environment.
So to be shot it initially was a perl issue.
@levongh Dear friend, how did you resolve this problem at last? I come across the same problem now, but I still failed after set the new perl in git bash.
Thanks!
@syslink As I can remember everything was fixed after fixing the perl environment. Please double-check perl environment paths on Windows environment list.
Thanks
Most helpful comment
I have worked on
Git bashwhich had it`s own perl, please see info below.After discussion on Hunters gitter chanell @ruslo gave my advise to change my perl environment.
So to be shot it initially was a perl issue.