Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

MinGW64 Build -- Configuring incomplete, errors occurred! #817

Closed
DeadManWalkingTO opened this issue Feb 28, 2018 · 34 comments
Closed

MinGW64 Build -- Configuring incomplete, errors occurred! #817

DeadManWalkingTO opened this issue Feb 28, 2018 · 34 comments

Comments

@DeadManWalkingTO
Copy link
Contributor

At new master

CMake Error at CMakeLists.txt:3 (include):
  include could not find load file:
    cmake/cable/bootstrap.cmake
CMake Error at CMakeLists.txt:5 (include):
  include could not find load file:
    CableBuildInfo
CMake Error at CMakeLists.txt:6 (include):
  include could not find load file:
    CableBuildType
CMake Error at CMakeLists.txt:7 (include):
  include could not find load file:
    CableToolchains
CMake Error at CMakeLists.txt:9 (cable_configure_toolchain):
  Unknown CMake command "cable_configure_toolchain".
-- Configuring incomplete, errors occurred

Any ideas?

@SnowLeopard71
Copy link
Contributor

Run: git submodule update --init --recursive
And then try again.

@DeadManWalkingTO
Copy link
Contributor Author

MinGW

$ git submodule update --init --recursive
': not a valid identifierγραμμή 88: export: `dashless
fatal: Not a git repository (or any of the parent directories): .git

@SnowLeopard71
Copy link
Contributor

Sorry, it fixed that problem for me earlier today (which was to get the "cable" stuff needed for the latest commit).

@DeadManWalkingTO DeadManWalkingTO changed the title Build -- Configuring incomplete, errors occurred! MinGW64 Build -- Configuring incomplete, errors occurred! Feb 28, 2018
@Davesmacer
Copy link
Contributor

Davesmacer commented Feb 28, 2018

Hello,

By some reason, new cable folder under cmake is not pulling automatically, I had to pull it with a git fetch and then it worked. Otherwise, download folder zip and paste it under cmake/cable

@DeadManWalkingTO
Copy link
Contributor Author

$ git submodule update --init --recursive

': not a valid identifierline 88: export: `dashless
Submodule 'cmake/Hunter/disabled-mode' (/~https://github.com/hunter-packages/disabled-mode) registered for path 'cmake/Hunter/disabled-mode'
Submodule 'cmake/cable' (/~https://github.com/ethereum/cable) registered for path 'cmake/cable'
Cloning into '/home/user/ethminer/cmake/Hunter/disabled-mode'...
Cloning into '/home/user/ethminer/cmake/cable'...
': not a valid identifierline 88: export: `sha1
': not a valid identifierline 88: export: `displaypath
Submodule path '': checked out '5f88a3d7565e8e2d61f7d2a3247068a9a9fe2c4b'
': not a valid identifierline 88: export: `sha1
': not a valid identifierline 88: export: `displaypath
Submodule path '': checked out '41e43d44457168dcbe2e00bb86b0d000cd8d58a0'

@DeadManWalkingTO
Copy link
Contributor Author

Solution
In MSYS shell run

- pacman -Sy pacman-mirrors
- pacman -S git make diffutils tar mingw-w64-x86_64-python2 mingw-w64-x86_64-cmake mingw-w64-x86_64-gcc
- pacman -S gettext

After that create /mingw64/bin/git shell script with the following content:

#!/bin/sh
PATH=/bin git "$@"

So far so good!

Now
': not a valid identifierline 88: export: dashless`
error gone!

@DeadManWalkingTO
Copy link
Contributor Author

I am getting new errors now...

@smurfy
Copy link
Collaborator

smurfy commented Feb 28, 2018

I had to remove my old build folder

@DeadManWalkingTO
Copy link
Contributor Author

Need to remove .hunter folder to fix some errors.

@DeadManWalkingTO
Copy link
Contributor Author

Now

git clone /~https://github.com/ethereum-mining/ethminer.git
git submodule update --init --recursive

run without errors

@DeadManWalkingTO
Copy link
Contributor Author

Now!

cmake .. -G "Visual Studio 14 2015 Win64" -T v140,host=x64 -DETHASHCUDA=ON -DETHASHCL=OFF -DETHSTRATUM=ON -DAPICORE=OFF
[hunter ** FATAL ERROR **] Build step failed (dir: C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL
[hunter ** FATAL ERROR **] [Directory:C:/msys64/home/user/.hunter/_Base/Download/Hunter/0.19.213/59b2b88/Unpacked/cmake/projects/OpenSSL]

CMakeError.log
CMakeOutput.log
monitor-out.log
out.log

@Davesmacer
Copy link
Contributor

You have to install PERL to get that library working

@DeadManWalkingTO
Copy link
Contributor Author

Package name? Version? Any info?
Thanks

@Davesmacer
Copy link
Contributor

I installed the latest version on the web. @smurfy told me I needed it:
http://downloads.activestate.com/ActivePerl/releases/5.24.3.2404/ActivePerl-5.24.3.2404-MSWin32-x64-404865.exe

@DeadManWalkingTO
Copy link
Contributor Author

$ perl -v

This is perl 5, version 24, subversion 1 (v5.24.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.

@smurfy
Copy link
Collaborator

smurfy commented Feb 28, 2018

why mingw?

@DeadManWalkingTO
Copy link
Contributor Author

I Love it. lol

@DeadManWalkingTO
Copy link
Contributor Author

It's broken the openssl package.
I try manual compile but it seems broken.

@DeadManWalkingTO
Copy link
Contributor Author

DeadManWalkingTO commented Feb 28, 2018

I have installed other version on MinGW, but hunter want to install OpenSSL_1_1_0g.

$ openssl version
OpenSSL 1.0.2n  7 Dec 2017

@DeadManWalkingTO
Copy link
Contributor Author

How i can exclude openssl from hunter?

@DeadManWalkingTO
Copy link
Contributor Author

CMake Error at C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/Build/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-configure-Debug.cmake:16 (message):
    Command failed: 1

     'C:/msys64/mingw64/bin/cmake.exe' '-Dmake=' '-Dconfig=Debug' '-P' 'C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/Build/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-configure-Debug-impl.cmake'

    See also

      C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/Build/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-configure-*.log

OpenSSL-configure-err.log
OpenSSL-configure-out.log

@DeadManWalkingTO
Copy link
Contributor Author

Cmake manual find OpenSSL:

-DOPENSSL_ROOT_DIR=/usr/ssl -DOPENSSL_LIBRARIES=/usr/lib/openssl

@DeadManWalkingTO
Copy link
Contributor Author

Cmake manual find OpenSSL not working.
Hunter's OpenSSL package maybe broken.

@DeadManWalkingTO
Copy link
Contributor Author

@ruslo (github.com/ruslo/hunter owner) say:

It's a CMake ExternalProject_Add glitch, you can report the error to https://gitlab.kitware.com/cmake/cmake/issues

As a workaround simply restart build again.

@ruslo
Copy link
Contributor

ruslo commented Mar 1, 2018

Just for the reference I was talking about this error:

  CMake Error at Build/OpenSSL-prefix/src/OpenSSL-stamp/extract-OpenSSL.cmake:51 (file):
    file RENAME failed to rename
      C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/ex-OpenSSL1235/openssl-OpenSSL_1_1_0g
    to
      C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/Source
    because: No such file or directory

See /~https://github.com/ruslo/hunter/issues/1363#issuecomment-369677278

@DeadManWalkingTO
Copy link
Contributor Author

Here
c:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\
i try
$ cmake --build Build
and the same error always occurs.

Full output:

MINGW64 ~/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL
$ cmake --build Build
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 2/3/2018 12:57:51 ▒▒.
Project "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ALL_BUILD.vcxproj" on node 1 (default targets).
Project "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ALL_BUILD.vcxproj" (1) is building "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
InitializeBuildStatus:
  Creating "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  All outputs are up-to-date.
FinalizeBuildStatus:
  Deleting file "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
  Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
Done Building Project "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ZERO_CHECK.vcxproj" (default targets).
Project "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ALL_BUILD.vcxproj" (1) is building "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\OpenSSL.vcxproj" (3) on node 1 (default targets).
InitializeBuildStatus:
  Touching "x64\Debug\OpenSSL\OpenSSL.tlog\unsuccessfulbuild".
CustomBuild:
  Building Custom Rule C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/CMakeLists.txt
  CMake does not need to re-run because C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/Build/CMakeFiles/generate.stamp is up-to-date.
  Creating directories for 'OpenSSL'
  Performing download step (download, verify and extract) for 'OpenSSL'
  -- verifying file...
         file='C:/msys64/home/user/.hunter/_Base/Download/OpenSSL/1.1.0g/07a8861/OpenSSL_1_1_0g.tar.gz'
  -- File already exists and hash match (skip download):
    file='C:/msys64/home/user/.hunter/_Base/Download/OpenSSL/1.1.0g/07a8861/OpenSSL_1_1_0g.tar.gz'
    SHA1='07a8861dfb51d3ba983668f0f8daeac49bf3dbc3'
  -- extracting...
       src='C:/msys64/home/user/.hunter/_Base/Download/OpenSSL/1.1.0g/07a8861/OpenSSL_1_1_0g.tar.gz'
       dst='C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/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:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/ex-OpenSSL1242/openssl-OpenSSL_1_1_0g

    to

      C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/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:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\OpenSSL.vcxproj]
Done Building Project "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\OpenSSL.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ALL_BUILD.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\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:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\OpenSSL.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:06.72

Error:

  CMake Error at Build/OpenSSL-prefix/src/OpenSSL-stamp/extract-OpenSSL.cmake:51 (file):
    file RENAME failed to rename

      C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/ex-OpenSSL1242/openssl-OpenSSL_1_1_0g

    to

      C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/Source

    because: No such file or directory

In the c:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\ directory after the first failed run, a folder appears.
The folder name is ex-OpenSSL1234.
After each failed run, a new folder appears.
The folder name is ex-OpenSSLxxxx. "xxxx" the number "1234" plus 1 for every failed run.
All ex-OpenSSLxxxx folders have the same sub folder openssl-OpenSSL_1_1_0g witch contains the source code of "OpenSSL v1.1.0g"

Any suggestions to solve problem manually?
Thank you!

@DeadManWalkingTO
Copy link
Contributor Author

Antivirus = Off
Reboot = Every time

New update info:
The directory:
c:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Source\
contains a file NUL witch is 45 bytes and can't be delete.
The only way to delete that file is dualboot Ubuntu and delete without any problem.
At Windows it's impossible.
Command type (Windows) / cat (Linux) din't show anything.

@DeadManWalkingTO
Copy link
Contributor Author

  1. I have compile openssl-OpenSSL_1_1_0g.
    I have copy
  • /dist/bin
  • /dist/include
  • /dist/lib
  • /dist/share
  • /dist/ssl
    to c:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Install\.
  1. I have erase all files at
    c:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\
    exept
  • DONE
  • internal_deps.id
  • types.info
  1. I have put the cache.sha1 with the right sha at the folder.

  2. I have try to compile the project but i have get the following output:

cmake .. -G Visual Studio 14 2015 Win64 -T v140,host=x64 -DETHASHCUDA=ON -DETHASHCL=OFF -DETHSTRATUM=ON -DAPICORE=OFF
-- Found PythonInterp: C:/msys64/usr/bin/python2.7.exe (found version "2.7.13")
-- The C compiler identification is MSVC 19.0.24210.0
-- The CXX compiler identification is MSVC 19.0.24210.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- [cable] Configurations: Release;RelWithDebInfo;Debug
-- [hunter] Calculating Toolchain-SHA1
-- [hunter] Calculating Config-SHA1
-- [hunter] HUNTER_ROOT: C:/msys64/home/user/.hunter
-- [hunter] [ Hunter-ID: 59b2b88 | Toolchain-ID: a1e037f | Config-ID: aa3cb20 ]
-- [hunter] BOOST_ROOT: C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Install (ver.: 1.64.0)
-- [hunter] BOOST_ROOT: C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Install (ver.: 1.64.0)
-- Boost version: 1.64.0
-- Found the following Boost libraries:
--   system
-- [hunter] JSONCPP_ROOT: C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Install (ver.: 1.8.0)
-- [hunter] LIBJSON-RPC-CPP_ROOT: C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Install (ver.: 0.7.0-p3)
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Found ZLIB: ZLIB::zlib
------------------------------------------------------------------------
-- CMake 3.10.2
-- Build  / Windows
------------------------------------------------------------- components
-- ETHASHCL         Build OpenCL components                  OFF
-- ETHASHCUDA       Build CUDA components                    ON
-- ETHDBUS          Build D-Bus components                   OFF
-- APICORE          Build API Server components              OFF
------------------------------------------------------------------------

-- Found Git: C:/msys64/usr/bin/git.exe (found version "2.16.2")
-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1 (found version "9.1")
-- [hunter] OPENSSL_ROOT: C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Install (ver.: 1.1.0g)
CMake Error at C:/msys64/mingw64/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES) (found
  version "1.1.0g")
Call Stack (most recent call first):
  C:/msys64/mingw64/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  C:/msys64/home/user/.hunter/_Base/Download/Hunter/0.19.213/59b2b88/Unpacked/cmake/find/FindOpenSSL.cmake:349 (find_package_handle_standard_args)
  libpoolprotocols/CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred!
See also "C:/msys64/home/user/ethminer/build/CMakeFiles/CMakeOutput.log".
See also "C:/msys64/home/user/ethminer/build/CMakeFiles/CMakeError.log".

Something is missing and openssl cannot be found.
I have try to set the openssl path at cmake command with several ways. Nothing happens.
What i missing?
Thank you!

@Davesmacer
Copy link
Contributor

At Windows it's impossible.

I followed steps there to delete the file, so it is possible (only with cmd.exe not with powershell):
https://stackoverflow.com/questions/17883481/delete-a-file-named-nul-on-windows

@Davesmacer
Copy link
Contributor

All I can tell you is that when I had your error, all I did was to delete everything (.hunter folder and build) and after rebooting after PERL installation, I fetched everything in git repo and compiled and everything worked (I'm using VS 2015 compilers)

@DeadManWalkingTO
Copy link
Contributor Author

Success compile from cmd? or mingw shell?

@Davesmacer
Copy link
Contributor

Windows powershell...

@DeadManWalkingTO
Copy link
Contributor Author

Finally...
Problem solved.
Check ETHminerBuildScriptDmW.

@62f
Copy link

62f commented Dec 16, 2020

Having this same cmake error except with Alpine Linux, MinGW is Windows, I believe.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants