bitcoin: MSVC 17.12.0 internal compiler error
The latest version of MSVC causes an internal compiler error in src/test/fuzz/utxo_snapshot.cpp for both “Release” and “Debug” configurations:
< snip >
utxo_snapshot.cpp
C:\Users\hebasto\source\repos\bitcoin\src\test\fuzz\utxo_snapshot.cpp(45,1): error C1001: Internal compiler error. [C:\Users\hebasto\source\repos\bitcoin\build-static\src\test\fuzz\fuzz.vcxproj]
C:\Users\hebasto\source\repos\bitcoin\src\test\fuzz\utxo_snapshot.cpp(45,1): error C1001: (compiler file 'D:\a\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\symbols.c', line 33772) [C:\Users\hebasto\source\repos\bitcoin\build-static\src\test\fuzz\fuzz.vcxproj]
C:\Users\hebasto\source\repos\bitcoin\src\test\fuzz\utxo_snapshot.cpp(45,1): error C1001: To work around this problem, try simplifying or changing the program near the locations listed above. [C:\Users\hebasto\source\repos\bitcoin\build-static\src\test\fuzz\fuzz.vcxproj]
C:\Users\hebasto\source\repos\bitcoin\src\test\fuzz\utxo_snapshot.cpp(45,1): error C1001: If possible please provide a repro here: https://developercommunity.visualstudio.com [C:\Users\hebasto\source\repos\bitcoin\build-static\src\test\fuzz\fuzz.vcxproj]
C:\Users\hebasto\source\repos\bitcoin\src\test\fuzz\utxo_snapshot.cpp(45,1): error C1001: Please choose the Technical Support command on the Visual C++ [C:\Users\hebasto\source\repos\bitcoin\build-static\src\test\fuzz\fuzz.vcxproj]
C:\Users\hebasto\source\repos\bitcoin\src\test\fuzz\utxo_snapshot.cpp(45,1): error C1001: Help menu, or open the Technical Support help file for more information [C:\Users\hebasto\source\repos\bitcoin\build-static\src\test\fuzz\fuzz.vcxproj]
According to Microsoft docs:
If the file has a cxxfe …, it is probably a parser error.
The issue also occurs in recent CI jobs using the image version 20241113.3.0.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19 (18 by maintainers)
Commits related to this issue
- build: Temporarily disable compiling `fuzz/utxo_snapshot.cpp` with MSVC Visual Studio 2022 version 17.12 introduced a bug that causes an internal compiler error. See: https://github.com/bitcoin/bitc... — committed to hebasto/bitcoin by hebasto 2 years ago
- Merge bitcoin/bitcoin#31307: build: Temporarily disable compiling `fuzz/utxo_snapshot.cpp` with MSVC b2d536100282bd901d3e0be7f7f4a6966e0ef817 build: Temporarily disable compiling `fuzz/utxo_snapshot.... — committed to bitcoin/bitcoin by fanquake 2 years ago
- build: Temporarily disable compiling `fuzz/utxo_snapshot.cpp` with MSVC Visual Studio 2022 version 17.12 introduced a bug that causes an internal compiler error. See: https://github.com/bitcoin/bitc... — committed to BitgesellOfficial/bitgesell by hebasto 2 years ago
I’ve managed to provide a proper repro and submitted another issue: https://developercommunity.visualstudio.com/t/C1001:-Internal-compiler-error-with-st/10830350.
I dug through the logs for yesterday’s nightly run, and the trunk compiler built
utxo_snapshot.cppjust fine. I see: we onboarded bitcoin on 2024-10-22. It’s likely the 17.12 compilers have never seen it. Sorry about the regression; go ahead and file a report at https://developercommunity.visualstudio.com/cpp/report and we’ll see if we can get it serviced quickly.https://developercommunity.visualstudio.com/t/C1001:-Internal-compiler-error-in-the-Bi/10797559
Thanks! Looks like it is already pending a release.
@sipsorcery
Just configure with
-DBUILD_FUZZ_BINARY=ONand build thefuzztarget.cc @sipsorcery @davidgumberg @hodlinator