Skip to content

[Build] build error for windows #23166

Open
@ChaoII

Description

Describe the issue

Assembling: D:\onnxruntime\onnxruntime\core\mlas\lib\amd64\cvtfp16Avx.asm
D:\onnxruntime\onnxruntime\core\mlas\lib\amd64\cvtfp16Avx.asm(67) : error A2008:syntax error : ymm0
D:\onnxruntime\onnxruntime\core\mlas\lib\amd64\cvtfp16Avx.asm(68) : error A2008:syntax error : ymm1
D:\onnxruntime\onnxruntime\core\mlas\lib\amd64\cvtfp16Avx.asm(89) : error A2008:syntax error : xmm2
D:\onnxruntime\onnxruntime\core\mlas\lib\amd64\cvtfp16Avx.asm(90) : error A2008:syntax error : xmm1
D:\onnxruntime\onnxruntime\core\mlas\lib\amd64\cvtfp16Avx.asm(105) : error A2008:syntax error : xmm2
D:\onnxruntime\onnxruntime\core\mlas\lib\amd64\cvtfp16Avx.asm(106) : error A2008:syntax error : xmm1

Urgency

No response

Target platform

windows 11 MSVC 2022 x64

Build script

build command:

python .\tools\ci_build\build.py ^
  --cmake_generator "Ninja" ^
  --build_dir ./target/ ^
  --config Release ^
  --parallel 16 ^
  --enable_lto ^
  --enable_msvc_static_runtime ^
  --skip_tests ^
  --skip_submodule_sync ^
  --compile_no_warning_as_error

Error / output

Assembling: D:\onnxruntime\onnxruntime\core\mlas\lib\amd64\cvtfp16Avx.asm
D:\onnxruntime\onnxruntime\core\mlas\lib\amd64\cvtfp16Avx.asm(67) : error A2008:syntax error : ymm0
D:\onnxruntime\onnxruntime\core\mlas\lib\amd64\cvtfp16Avx.asm(68) : error A2008:syntax error : ymm1
D:\onnxruntime\onnxruntime\core\mlas\lib\amd64\cvtfp16Avx.asm(89) : error A2008:syntax error : xmm2
D:\onnxruntime\onnxruntime\core\mlas\lib\amd64\cvtfp16Avx.asm(90) : error A2008:syntax error : xmm1
D:\onnxruntime\onnxruntime\core\mlas\lib\amd64\cvtfp16Avx.asm(105) : error A2008:syntax error : xmm2
D:\onnxruntime\onnxruntime\core\mlas\lib\amd64\cvtfp16Avx.asm(106) : error A2008:syntax error : xmm1

Visual Studio Version

2022

GCC / Compiler Version

No response

Metadata

Assignees

No one assigned

    Labels

    buildbuild issues; typically submitted using templateplatform:windowsissues related to the Windows platformstaleissues that have not been addressed in a while; categorized by a bot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions