Skip to content

[MSVC] Root is failed with error G694476FC: static_assert failed "Unexpected size" #15321

Description

@NEIL-smtg

Check duplicate issues.

  • Checked for duplicates

Description

We've been using MSVC to build ROOT, and we've recently encountered the following error:

error G694476FC: static_assert failed "Unexpected size"

Our developer has suggested the compiler that was used needs to implement the Defect Report https://cplusplus.github.io/CWG/issues/2518.html (which has been implemented by MSVC and Clang).

Reproducer

Repro step:

  1. Open "x64 Native Tools Command Prompt for VS 2022"
  2. git clone https://github.com/root-project/root.git
  3. mkdir root\build_amd64
  4. cd /d root\build_amd64
  5. set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64
  6. python.exe -m pip install pytest 2>&1
  7. cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.22621.0 -Dtesting=ON -Droottest=ON -Droofit=off .. 2>&1
  8. msbuild /m /p:Platform=x64 /p:Configuration=Release ALL_BUILD.vcxproj /t:Rebuild 2>&1

Expected result:

Build succesfully.

ROOT version

We are using the latest commit.

Installation method

git

Operating system

Windows server 2022 data center

Additional context

Detailed log:
Build.log

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions