Hello.
I made this question with automatic translation.
I am trying to do a Kaleidoscope tutorial on windows 11.
Referencing Getting Started with the LLVM System using Microsoft Visual Studio — LLVM 15.0.0git documentation
I built llvm-project in Visual Studio 2022.
(I added a few cmake options.)
Then I built the check-all project according to item 14 of the tutorial above, and two tests failed.
The errors are as follows
133>FAIL: LLVM-Unit :: Support/Release/SupportTests.exe/5/13 (57379 of 57535)
133>******************** TEST 'LLVM-Unit :: Support/Release/SupportTests.exe/5/13' FAILED ********************
133>Script(shard):
133>--
133>GTEST_OUTPUT=json:C:\llvm-project\build\unittests\Support\Release\SupportTests.exe-LLVM-Unit-13704-5-13.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=13 GTEST_SHARD_INDEX=5 C:\llvm-project\build\unittests\Support\Release\SupportTests.exe
133>--
133>
133>Script:
133>--
133>C:\llvm-project\build\unittests\Support\Release\SupportTests.exe --gtest_filter=FormatVariadicTest.BigTest
133>--
133>C:\llvm-project\llvm\unittests\Support\FormatVariadicTest.cpp(549): error : Expected equality of these values:
133> Expected
133> Which is: "There are {14} items in the tuple, and {2} tuple(s) in the array.\n Char| HexInt| Str | Ref | std::str | double| float| pointer|comma | exp| bigint| bigint2| limit|byte\n a| 0x1| Str | | | 3.142|-17.53%|0x00000000|123,456|6.0200E+23|-908,234,908,423| 908234908422234| nan|0xAB\n x| 0xDDB5B|LongerStr | Strin | std::string | -2.700| 8.21%|0x00000000|0 |6.6200E-34|-908,234,908,423| 908234908422234| INF| 0x0\n"
133> S
133> Which is: "There are {14} items in the tuple, and {2} tuple(s) in the array.\n Char| HexInt| Str | Ref | std::str | double| float| pointer|comma | exp| bigint| bigint2| limit|byte\n a| 0x1| Str | | | 3.142|-17.53%|0x00000000|123,456|6.0200E+23|-908,234,908,423| 908234908422234| nan|0xAB\n x| 0xDDB5B|LongerStr | Strin | std::string | -2.700| 8.21%|0x00000000|0 |6.6200E-34|-908,234,908,423| 908234908422234| inf| 0x0\n"
133>With diff:
133>@@ -2,3 +2,3 @@
133> Char| HexInt| Str | Ref | std::str | double| float| pointer|comma | exp| bigint| bigint2| limit|byte
133> a| 0x1| Str | | | 3.142|-17.53%|0x00000000|123,456|6.0200E+23|-908,234,908,423| 908234908422234| nan|0xAB
133>- x| 0xDDB5B|LongerStr | Strin | std::string | -2.700| 8.21%|0x00000000|0 |6.6200E-34|-908,234,908,423| 908234908422234| INF| 0x0\n
133>+ x| 0xDDB5B|LongerStr | Strin | std::string | -2.700| 8.21%|0x00000000|0 |6.6200E-34|-908,234,908,423| 908234908422234| inf| 0x0\n
133>
133>
133>C:\llvm-project\llvm\unittests\Support\FormatVariadicTest.cpp:549
133>Expected equality of these values:
133> Expected
133> Which is: "There are {14} items in the tuple, and {2} tuple(s) in the array.\n Char| HexInt| Str | Ref | std::str | double| float| pointer|comma | exp| bigint| bigint2| limit|byte\n a| 0x1| Str | | | 3.142|-17.53%|0x00000000|123,456|6.0200E+23|-908,234,908,423| 908234908422234| nan|0xAB\n x| 0xDDB5B|LongerStr | Strin | std::string | -2.700| 8.21%|0x00000000|0 |6.6200E-34|-908,234,908,423| 908234908422234| INF| 0x0\n"
133> S
133> Which is: "There are {14} items in the tuple, and {2} tuple(s) in the array.\n Char| HexInt| Str | Ref | std::str | double| float| pointer|comma | exp| bigint| bigint2| limit|byte\n a| 0x1| Str | | | 3.142|-17.53%|0x00000000|123,456|6.0200E+23|-908,234,908,423| 908234908422234| nan|0xAB\n x| 0xDDB5B|LongerStr | Strin | std::string | -2.700| 8.21%|0x00000000|0 |6.6200E-34|-908,234,908,423| 908234908422234| inf| 0x0\n"
133>With diff:
133>@@ -2,3 +2,3 @@
133> Char| HexInt| Str | Ref | std::str | double| float| pointer|comma | exp| bigint| bigint2| limit|byte
133> a| 0x1| Str | | | 3.142|-17.53%|0x00000000|123,456|6.0200E+23|-908,234,908,423| 908234908422234| nan|0xAB
133>- x| 0xDDB5B|LongerStr | Strin | std::string | -2.700| 8.21%|0x00000000|0 |6.6200E-34|-908,234,908,423| 908234908422234| INF| 0x0\n
133>+ x| 0xDDB5B|LongerStr | Strin | std::string | -2.700| 8.21%|0x00000000|0 |6.6200E-34|-908,234,908,423| 908234908422234| inf| 0x0\n
133>
133>
133>
133>********************
133>FAIL: LLVM-Unit :: Support/Release/SupportTests.exe/10/13 (57495 of 57535)
133>******************** TEST 'LLVM-Unit :: Support/Release/SupportTests.exe/10/13' FAILED ********************
133>Script(shard):
133>--
133>GTEST_OUTPUT=json:C:\llvm-project\build\unittests\Support\Release\SupportTests.exe-LLVM-Unit-13704-10-13.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=13 GTEST_SHARD_INDEX=10 C:\llvm-project\build\unittests\Support\Release\SupportTests.exe
133>--
133>
133>Script:
133>--
133>C:\llvm-project\build\unittests\Support\Release\SupportTests.exe --gtest_filter=NativeFormatTest.BoundaryTests
133>--
133>C:\llvm-project\llvm\unittests\Support\NativeFormatTests.cpp(127): error : Expected equality of these values:
133> "INF"
133> format_number(std::numeric_limits<double>::infinity(), FloatStyle::Fixed)
133> Which is: "inf"
133>C:\llvm-project\llvm\unittests\Support\NativeFormatTests.cpp(129): error : Expected equality of these values:
133> "-INF"
133> format_number(-std::numeric_limits<double>::infinity(), FloatStyle::Fixed)
133> Which is: "-inf"
133>
133>C:\llvm-project\llvm\unittests\Support\NativeFormatTests.cpp:127
133>Expected equality of these values:
133> "INF"
133> format_number(std::numeric_limits<double>::infinity(), FloatStyle::Fixed)
133> Which is: "inf"
133>C:\llvm-project\llvm\unittests\Support\NativeFormatTests.cpp:129
133>Expected equality of these values:
133> "-INF"
133> format_number(-std::numeric_limits<double>::infinity(), FloatStyle::Fixed)
133> Which is: "-inf"
133>
133>
133>********************
133>********************
133>Failed Tests (2):
133> LLVM-Unit :: Support/Release/SupportTests.exe/FormatVariadicTest/BigTest
133> LLVM-Unit :: Support/Release/SupportTests.exe/NativeFormatTest/BoundaryTests
133>
133>
133>Testing Time: 1509.36s
133> Skipped : 68
133> Unsupported : 23667
133> Passed : 55173
133> Expectedly Failed: 94
133> Failed : 2
These errors seem to be caused by the difference between INF and inf.
Does this need to be resolved?
If so, how can this be resolved?
Thank you.