Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build hit error ijw.cpp(19): error C3611: “System::Numerics::INumb erBase::System::IUtf8SpanFormattable.TryFormat”: 密封函数不能具有纯说明符 #110243

Open
srxqds opened this issue Nov 28, 2024 · 10 comments
Labels
area-Infrastructure-coreclr untriaged New issue has not been triaged by the area owner

Comments

@srxqds
Copy link
Contributor

srxqds commented Nov 28, 2024

I build v9.0.0 tag local.
hit the ijw.cpp(19): error C3611: “System::Numerics::INumberBase::System::IUtf8SpanFormattable.TryFormat”: 密封函数不能具有纯说明符

I have upgrade vs to 17.12.2 version and install the c++/cli to 143 latest version

Image

the compiler version show below:

** Visual Studio 2022 Developer Command Prompt v17.12.2
  ** Copyright (c) 2022 Microsoft Corporation
  **********************************************************************
  [vcvarsall.bat] Environment initialized for: 'x64'
  BUILD: Regenerating the Visual Studio solution
  Calling "E:\work\netease-gitlab\dotnet\runtime\eng\native\gen-buildsys.cmd" "E:\work\netease-gitlab\dotnet\runtime\src\coreclr" "E:\work\netease-gitlab\dotnet\runtime\artifacts\obj\coreclr\windows.x64.Debug" vs2022 x64 windows "-DCMAKE_BUILD_TYPE=Debug" "-DCLR_CMAKE_TARGET_ARCH=x64" "-DCLR_CMAKE_TARGET_OS=windows" "-DCLI_CMAKE_FALLBACK_OS=win10" "-DCLR_CMAKE_PGO_INSTRUMENT=0" "-DCLR_CMAKE_OPTDATA_PATH=" "-DCLR_CMAKE_PGO_OPTIMIZE=0" "-DCDAC_BUILD_TOOL_BINARY_PATH=E:\work\netease-gitlab\dotnet\runtime\artifacts\bin\coreclr\windows.x64.Debug\cdac-build-tool\cdac-build-tool.dll" "-DCLR_DOTNET_HOST_PATH=E:\work\netease-gitlab\dotnet\runtime\.dotnet\dotnet.exe" 
  Not searching for unused variables given on the command line.
  -- The C compiler identification is MSVC 19.36.32546.0
  -- The CXX compiler identification is MSVC 19.36.32546.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- The ASM_MASM compiler identification is MSVC
  -- Found assembler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/ml64.exe
  -- Performing Test HAVE_DIRENT_D_TYPE
  -- Performing Test HAVE_DIRENT_D_TYPE - Failed
  -- Looking for getauxval
  -- Looking for getauxval - not found
  -- Looking for include file GSS/GSS.h
  -- Looking for include file GSS/GSS.h - not found
  -- Using CMake version 3.27.2
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Nov 28, 2024
Copy link
Contributor

Tagging subscribers to this area: @hoyosjs
See info in area-owners.md if you want to be subscribed.

@srxqds
Copy link
Contributor Author

srxqds commented Nov 28, 2024

the full build log log.txt

@MichalPetryka
Copy link
Contributor

Duplicate of #94998, .NET 8+ requires at least C++/CLI v14.38.

@srxqds
Copy link
Contributor Author

srxqds commented Nov 29, 2024

Duplicate of #94998, .NET 8+ requires at least C++/CLI v14.38.

I think you didn't look carefully the log details. and I have install the v143 c++/cli latest tools, you can find the picture shot.

@MichalPetryka
Copy link
Contributor

Duplicate of #94998, .NET 8+ requires at least C++/CLI v14.38.

I think you didn't look carefully the log details. and I have install the v143 c++/cli latest tools, you can find the picture shot.

Your VS has 14.36 installed and is using that for the build according to your log.

@srxqds
Copy link
Contributor Author

srxqds commented Nov 29, 2024

that for the build according

ok, but how can I solving it, due to I have installed v143 c++/cli latest tools

@srxqds
Copy link
Contributor Author

srxqds commented Nov 29, 2024

I have use Developer Command Prompt for vs2022, the error have gone. but how can I solving it without use the Prompt commandline

@srxqds
Copy link
Contributor Author

srxqds commented Nov 29, 2024

Duplicate of #94998, .NET 8+ requires at least C++/CLI v14.38.

I think you didn't look carefully the log details. and I have install the v143 c++/cli latest tools, you can find the picture shot.

Your VS has 14.36 installed and is using that for the build according to your log.

"Your VS has 14.36 installed" this is beacuse it hit the error before I installed the 14.36 version, so I try install this version.

so maybe the problem is the build script didn't use the latest tools.

@huoyaoyuan
Copy link
Member

I have use Developer Command Prompt for vs2022, the error have gone. but how can I solving it without use the Prompt commandline

In this case you should probably check your environment variables, or use where.exe to find which version of commands are used.

@huoyaoyuan
Copy link
Member

Additionally, why do you need to select 17.36 version of C++/CLI along with latest version? The latest version is 17.42 currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Infrastructure-coreclr untriaged New issue has not been triaged by the area owner
Projects
Status: No status
Development

No branches or pull requests

3 participants