conan-io / conan-center-index

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

[nasm/2.16.01] <nasm>/<2.16.01>: build error #24872

Open edidada opened 1 month ago

edidada commented 1 month ago

Description

os:win server 2022 conan install . --build=missing -pr=default 编译nasm报错

Package and Environment Details

Conan profile

arch=x86_64 build_type=Release compiler=msvc compiler.cppstd=14 compiler.runtime=dynamic compiler.version=193 os=Windows conan2 profiles [settings] arch=x86_64 build_type=Debug compiler=msvc compiler.cppstd=17 compiler.runtime=dynamic compiler.version=193 os=Windows

Steps to reproduce

      conan install . --build=missing -pr=default

Logs

-------- Installing package nasm/2.16.01 (5 of 10) -------- nasm/2.16.01: Building from source nasm/2.16.01: Package nasm/2.16.01:e87e09fb175a1b4a35981cd53c3cf142cb86410f nasm/2.16.01: Copying sources to build folder nasm/2.16.01: Building your package in C:\Users\runneradmin.conan2\p\b\nasmf12b0622d06a2\b nasm/2.16.01: Calling generate() nasm/2.16.01: Generators folder: C:\Users\runneradmin.conan2\p\b\nasmf12b0622d06a2\b\build-debug\conan nasm/2.16.01: Generating aggregated env files nasm/2.16.01: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat'] nasm/2.16.01: Calling build() nasm/2.16.01: Apply patch (file): patches/2.16.01-0001-disable-newly-integrated-dependency-tracking.patch nasm/2.16.01: RUN: nmake /f Mkfiles\msvc.mak conanvcvars.bat: Activating environment Visual Studio 17 - amd64 - winsdk_version=None - vcvars_ver=14.3 [ERROR:vcvars.bat] Toolset directory for version '14.3' was not found. [ERROR:VsDevCmd.bat] VsDevCmd.bat encountered errors. Environment may be incomplete and/or incorrect. [ERROR:VsDevCmd.bat] In an uninitialized command prompt, please 'set VSCMD_DEBUG=[value]' and then re-run [ERROR:VsDevCmd.bat] vsdevcmd.bat [args] for additional details. [ERROR:VsDevCmd.bat] Where [value] is: [ERROR:VsDevCmd.bat] 1 : basic debug logging [ERROR:VsDevCmd.bat] 2 : detailed debug logging [ERROR:VsDevCmd.bat] 3 : trace level logging. Redirection of output to a file when using this level is recommended. [ERROR:VsDevCmd.bat] Example: set VSCMD_DEBUG=3 [ERROR:VsDevCmd.bat] vsdevcmd.bat > vsdevcmd.trace.txt 2>&1

nasm/2.16.01: ERROR: Package 'e87e09fb175a1b4a35981cd53c3cf142cb86410f' build failed nasm/2.16.01: WARN: Build folder C:\Users\runneradmin.conan2\p\b\nasmf12b0622d06a2\b\build-debug ERROR: nasm/2.16.01: Error in build() method, line 84 self.run(f'nmake /f {os.path.join("Mkfiles", "msvc.mak")}') ConanException: Error 1 while executing

jcar87 commented 1 month ago

Hi @edidada , thanks for reporting this

could you paste the output of running "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" in a cmd.exe prompt?

Thanks!

vasama commented 3 weeks ago

I'm encountering the same issue.

Visual Studio Locator version 3.1.7+f39851e70f [query version 3.11.2133.16870]
Copyright (C) Microsoft Corporation. All rights reserved.

instanceId: b5a156ef
installDate: 17/08/2024 18.05.29
installationName: VisualStudio/17.11.0+35208.52
installationPath: C:\Program Files\Microsoft Visual Studio\2022\Community
installationVersion: 17.11.35208.52
productId: Microsoft.VisualStudio.Product.Community
productPath: C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe
state: 4294967295
isComplete: 1
isLaunchable: 1
isPrerelease: 0
isRebootRequired: 0
displayName: Visual Studio Community 2022
description: Powerful IDE, free for students, open-source contributors, and individuals
channelId: VisualStudio.17.Release
channelUri: https://aka.ms/vs/17/release/channel
enginePath: C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service
installedChannelId: VisualStudio.17.Release
installedChannelUri: https://aka.ms/vs/17/release/channel
releaseNotes: https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes-v17.11#17.11.0
resolvedInstallationPath: C:\Program Files\Microsoft Visual Studio\2022\Community
thirdPartyNotices: https://go.microsoft.com/fwlink/?LinkId=661288
updateDate: 2024-08-17T15:05:29.7465761Z
catalog_buildBranch: d17.11
catalog_buildVersion: 17.11.35208.52
catalog_id: VisualStudio/17.11.0+35208.52
catalog_localBuild: build-lab
catalog_manifestName: VisualStudio
catalog_manifestType: installer
catalog_productDisplayVersion: 17.11.0
catalog_productLine: Dev17
catalog_productLineVersion: 2022
catalog_productMilestone: RTW
catalog_productMilestoneIsPreRelease: False
catalog_productName: Visual Studio
catalog_productPatchVersion: 0
catalog_productPreReleaseMilestoneSuffix: 8.0
catalog_productSemanticVersion: 17.11.0+35208.52
catalog_requiredEngineVersion: 3.11.2177.7163
properties_campaignId: 2030:6e542d54bd61437dbb0bf1cb5bb0c4a2
properties_channelManifestId: VisualStudio.17.Release/17.11.0+35208.52
properties_includeRecommended: 1
properties_nickname:
properties_setupEngineFilePath: C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe
vasama commented 3 weeks ago

Seems that it was caused by bad configuration of the MSVC compiler version. I had compiler.version=193 in my profile. conan profile detect gave compiler.version=194 instead.