- 
                Notifications
    
You must be signed in to change notification settings  - Fork 15
 
Open
Description
Hi,
I'm struggling to build a wheel locally on windows 10 (executed from Developer cmd for VS2019). It's not going so easy but after overcoming many missing dependencies I ended up here. the error doesn't provide any good information I can proceed with and I thought it might be interesting to investigate.
Here is the last part of the execution, where it fails:
 **********************************************************************
  ***                                                                ***
  ***   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)         ***
  ***                                                                ***
  **********************************************************************
>  [6/8] Performing build step for 'openssl'
>   FAILED: openssl-prefix/src/openssl-stamp/openssl-build
>   cmd.exe /C "cd /D C:\gitHub\clones\xeus-python-wheel\_skbuild\win-amd64-3.7\cmake-build\OpenSSL-download\openssl-src && nmake && C:\Users\cohenniv\AppData\Local\Temp\pip-build-env-2mu1z1bg\overlay\Lib\site-packages\cmake\data\bin\cmake.exe -E touch C:/gitHub/clones/xeus-python-wheel/_skbuild/win-amd64-3.7/cmake-build/OpenSSL-download/openssl-prefix/src/openssl-stamp/openssl-build"
> 
>   Microsoft (R) Program Maintenance Utility Version 14.22.27905.0
>   Copyright (C) Microsoft Corporation.  All rights reserved.
> 
>         "C:\Strawberry\perl\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl"  "-omakefile" "crypto\include\internal\bn_conf.h.in" > crypto\include\internal\bn_conf.h
>         "C:\Strawberry\perl\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl"  "-omakefile" "crypto\include\internal\dso_conf.h.in" > crypto\include\internal\dso_conf.h
>         "C:\Strawberry\perl\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\Community\VC\Tools\MSVC\14.22.27905\bin\HostX86\x86\nmake.exe" /                   depend && "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.22.27905\bin\HostX86\x86\nmake.exe" /
> 
>  crypto\aes\aesni-mb-x86_64.obj : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86'
>   Could Not Find C:\gitHub\clones\xeus-python-wheel\_skbuild\win-amd64-3.7\cmake-build\OpenSSL-download\openssl-src\libcrypto-1_1-x64.*
>   NMAKE : fatal error U1077: 'link' : return code '0x1'
>   Stop.
>   NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.22.27905\bin\HostX86\x86\nmake.exe"' : return code '0x2'
>   Stop.
>   ninja: build stopped: subcommand failed.
>   CMake Error at CMakeLists.txt:47 (message):
>     CMake step for OpenSSL failed: 1
> 
> 
>   -- Configuring incomplete, errors occurred!
>   See also "C:/gitHub/clones/xeus-python-wheel/_skbuild/win-amd64-3.7/cmake-build/CMakeFiles/CMakeOutput.log".
>   c:\users\cohenniv\appdata\local\programs\python\python37\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'cmake_process_manifest_hook'
>     warnings.warn(msg)
>     File "C:\Users\cohenniv\AppData\Local\Temp\pip-build-env-2mu1z1bg\overlay\Lib\site-packages\skbuild\setuptools_wrap.py", line 586, in setup
>       languages=cmake_languages
>     File "C:\Users\cohenniv\AppData\Local\Temp\pip-build-env-2mu1z1bg\overlay\Lib\site-packages\skbuild\cmaker.py", line 240, in configure
>       os.path.abspath(CMAKE_BUILD_DIR())))
> 
> 
>   --------------------------------------------------------------------------------
>   -- Trying "Ninja (Visual Studio 15 2017 Win64 v141)" generator
>   --------------------------------
>   ---------------------------
>   ----------------------
>   -----------------
>   ------------
>   -------
>   --
>   --
>   -------
>   ------------
>   -----------------
>   ----------------------
>   ---------------------------
>   --------------------------------
>   -- Trying "Ninja (Visual Studio 15 2017 Win64 v141)" generator - success
>   --------------------------------------------------------------------------------
> 
> Configuring Project
>     Working directory:
>       C:\gitHub\clones\xeus-python-wheel\_skbuild\win-amd64-3.7\cmake-build
>     Command:
>       cmake 'C:\gitHub\clones\xeus-python-wheel' -G Ninja '-DCMAKE_INSTALL_PREFIX:PATH=C:\gitHub\clones\xeus-python-wheel\_skbuild\win-amd64-3.7\cmake-install' '-DPYTHON_EXECUTABLE:FILEPATH=c:\users\cohenniv\appdata\local\programs\python\python37\python.exe' -DPYTHON_VERSION_STRING:STRING=3.7.4 '-DPYTHON_INCLUDE_DIR:PATH=c:\users\cohenniv\appdata\local\programs\python\python37\Include' '-DPYTHON_LIBRARY:FILEPATH=c:\users\cohenniv\appdata\local\programs\python\python37\libs\python37.lib' -DSKBUILD:BOOL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\cohenniv\AppData\Local\Temp\pip-build-env-6jnztj50\overlay\Lib\site-packages\skbuild\resources\cmake' -DCMAKE_INSTALL_LIBDIR=lib '-DPYTHON_EXECUTABLE:FILEPATH=c:\users\cohenniv\appdata\local\programs\python\python37\python.exe' -DCMAKE_BUILD_TYPE:STRING=Release
> 
>   Traceback (most recent call last):
> 
>   An error occurred while configuring with CMake.
>     Command:
>       cmake 'C:\gitHub\clones\xeus-python-wheel' -G Ninja '-DCMAKE_INSTALL_PREFIX:PATH=C:\gitHub\clones\xeus-python-wheel\_skbuild\win-amd64-3.7\cmake-install' '-DPYTHON_EXECUTABLE:FILEPATH=c:\users\cohenniv\appdata\local\programs\python\python37\python.exe' -DPYTHON_VERSION_STRING:STRING=3.7.4 '-DPYTHON_INCLUDE_DIR:PATH=c:\users\cohenniv\appdata\local\programs\python\python37\Include' '-DPYTHON_LIBRARY:FILEPATH=c:\users\cohenniv\appdata\local\programs\python\python37\libs\python37.lib' -DSKBUILD:BOOL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\cohenniv\AppData\Local\Temp\pip-build-env-6jnztj50\overlay\Lib\site-packages\skbuild\resources\cmake' -DCMAKE_INSTALL_LIBDIR=lib '-DPYTHON_EXECUTABLE:FILEPATH=c:\users\cohenniv\appdata\local\programs\python\python37\python.exe' -DCMAKE_BUILD_TYPE:STRING=Release
>     Source directory:
>       C:\gitHub\clones\xeus-python-wheel
>     Working directory:
>       C:\gitHub\clones\xeus-python-wheel\_skbuild\win-amd64-3.7\cmake-build
>   Please see CMake's output for more information.
>   Building wheel for xeus-python (PEP 517) ... error
>   ERROR: Failed building wheel for xeus-python
> Failed to build xeus-python
> ERROR: Failed to build one or more wheels
> 
Metadata
Metadata
Assignees
Labels
No labels