conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
948 stars 1.73k forks source link

[package] lzma_sdk/9.20: VS2019 - 'ml64' is not recognized as an internal or external command #4250

Closed sourcedelica closed 3 years ago

sourcedelica commented 3 years ago

Package and Environment Details (include every applicable attribute)

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=Visual Studio
compiler.runtime=MDd
compiler.version=16
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
_CL_=/Z7

Steps to reproduce (Include if Applicable)

From current conan-center-index clone, in Visual Studio 2019 Developer Command Prompt:

conan create . lzma_sdk/9.20@

Logs (Include/Attach if Applicable)

Click to expand log ``` Exporting package recipe lzma_sdk/9.20 exports: File 'conandata.yml' found. Exporting it... lzma_sdk/9.20 exports: Copied 1 '.yml' file: conandata.yml lzma_sdk/9.20: A new conanfile.py version was exported lzma_sdk/9.20: Folder: C:\Users\EPederson\.conan\data\lzma_sdk\9.20\_\_\export lzma_sdk/9.20: Using the exported files summary hash as the recipe revision: e2f0db6d07dbfd51d1b937386030b4c6 lzma_sdk/9.20: Exported revision: e2f0db6d07dbfd51d1b937386030b4c6 Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Debug compiler=Visual Studio compiler.runtime=MDd compiler.version=16 os=Windows os_build=Windows [options] [build_requires] [env] _CL_=/Z7 lzma_sdk/9.20: Forced build from source lzma_sdk/9.20 (test package): Installing package Requirements lzma_sdk/9.20 from local cache - Cache Packages lzma_sdk/9.20:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Build Installing (downloading, building) binaries... lzma_sdk/9.20: Configuring sources in C:\Users\EPederson\.conan\data\lzma_sdk\9.20\_\_\source Downloading lzma920.tar.bz2 completed [521.56k] lzma_sdk/9.20: Copying sources to build folder lzma_sdk/9.20: Building your package in C:\Users\EPederson\.conan\data\lzma_sdk\9.20\_\_\build\ca33edce272a279b24f87dc0d4cf5bbdcffbc187 lzma_sdk/9.20: Generator txt created conanbuildinfo.txt lzma_sdk/9.20: Calling build() Conan:vcvars already set Microsoft (R) Program Maintenance Utility Version 14.24.28316.0 Copyright (C) Microsoft Corporation. All rights reserved. if not exist "AMD64" mkdir "AMD64" cl -D_7ZIP_PPMD_SUPPPORT -Gr -nologo -c -FoAMD64/ -EHsc -Gy -GR- -MDd -W4 -GS- -Zc:forScope -O1 7zMain.c 7zMain.c 7zMain.c(247): warning C4457: declaration of 's' hides function parameter 7zMain.c(223): note: see declaration of 's' cl -D_7ZIP_PPMD_SUPPPORT -Gr -nologo -c -FoAMD64/ -EHsc -Gy -GR- -MDd -W4 -GS- -Zc:forScope -O2 ../../7zAlloc.c 7zAlloc.c cl -D_7ZIP_PPMD_SUPPPORT -Gr -nologo -c -FoAMD64/ -EHsc -Gy -GR- -MDd -W4 -GS- -Zc:forScope -O2 ../../7zBuf.c 7zBuf.c ... cl -I ../../../ -DEXTERNAL_CODECS -DWIN_LONG_PATH -D_7ZIP_LARGE_PAGES -DSUPPORT_DEVICE_FILE -Gr -nologo -c -FoAMD64/ -EHsc -Gy -GR- -MDd -W4 -GS- -Zc:forScope -O2 ../../../../C/CpuArch.c CpuArch.c ../../../../C/CpuArch.c(150): warning C4996: 'GetVersionExA': was declared deprecated C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\sysinfoapi.h(387): note: see declaration of 'GetVersionExA' cl -I ../../../ -DEXTERNAL_CODECS -DWIN_LONG_PATH -D_7ZIP_LARGE_PAGES -DSUPPORT_DEVICE_FILE -Gr -nologo -c -FoAMD64/ -EHsc -Gy -GR- -MDd -W4 -GS- -Zc:forScope -O2 ../../../../C/Threads.c Threads.c cl -I ../../../ -DEXTERNAL_CODECS -DWIN_LONG_PATH -D_7ZIP_LARGE_PAGES -DSUPPORT_DEVICE_FILE -Gr -nologo -c -FoAMD64/ -EHsc -Gy -GR- -MDd -W4 -GS- -Zc:forScope -O2 ../../../../C/7zCrc.c 7zCrc.c ml64 -Dx64 -c -FoAMD64/ ../../../../Asm/x86/7zCrcOpt.asm 'ml64' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'ml64' : return code '0x1' Stop. lzma_sdk/9.20: lzma_sdk/9.20: ERROR: Package 'ca33edce272a279b24f87dc0d4cf5bbdcffbc187' build failed lzma_sdk/9.20: WARN: Build folder C:\Users\EPederson\.conan\data\lzma_sdk\9.20\_\_\build\ca33edce272a279b24f87dc0d4cf5bbdcffbc187 ERROR: lzma_sdk/9.20: Error in build() method, line 103 self._build_msvc() while calling '_build_msvc', line 65 self.run("nmake /f makefile NEW_COMPILER=1 CPU=%s" % self._msvc_cpu) ConanException: Error 2 while executing nmake /f makefile NEW_COMPILER=1 CPU=AMD64 ```
sourcedelica commented 3 years ago

Nevermind - I needed to start the Native x64 Tools command prompt.