[clang] [clang][lex] Fix non-portability diagnostics with absolute path (PR #74782)

Jeremy Wong via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 2 16:56:42 PST 2024


jrmwng wrote:

492>Failed Tests (1):
492>  Clang :: Lexer/case-insensitive-include-absolute.c

I built with "clang", "X86" and "AArch64" under Windows 11 and VS2022 community edition

```
492>------ Build started: Project: check-all, Configuration: Release x64 ------
492>Running all regression tests
492>llvm-lit.py: C:\GitHub\llvm-project\llvm\utils\lit\lit\llvm\config.py:46: note: using lit tools: C:\Program Files\Git\usr\bin
492>llvm-lit.py: C:\GitHub\llvm-project\llvm\utils\lit\lit\llvm\config.py:488: note: using clang: c:\github\llvm-project\build\release\bin\clang.exe
492>-- Testing: 70944 tests, 32 workers --
492>FAIL: Clang :: Lexer/case-insensitive-include-absolute.c (1 of 70944)
492>******************** TEST 'Clang :: Lexer/case-insensitive-include-absolute.c' FAILED ********************
492>Exit Code: 2
492>
492>Command Output (stdout):
492>--
492># RUN: at line 3
492>rm -rf C:\GitHub\llvm-project\build\tools\clang\test\Lexer\Output\case-insensitive-include-absolute.c.tmp && split-file C:\GitHub\llvm-project\clang\test\Lexer\case-insensitive-include-absolute.c C:\GitHub\llvm-project\build\tools\clang\test\Lexer\Output\case-insensitive-include-absolute.c.tmp
492># executed command: rm -rf 'C:\GitHub\llvm-project\build\tools\clang\test\Lexer\Output\case-insensitive-include-absolute.c.tmp'
492># executed command: split-file 'C:\GitHub\llvm-project\clang\test\Lexer\case-insensitive-include-absolute.c' 'C:\GitHub\llvm-project\build\tools\clang\test\Lexer\Output\case-insensitive-include-absolute.c.tmp'
492># RUN: at line 4
492>sed "s|DIR|C:/GitHub/llvm-project/build/tools/clang/test/Lexer/Output/case-insensitive-include-absolute.c.tmp|g" C:\GitHub\llvm-project\build\tools\clang\test\Lexer\Output\case-insensitive-include-absolute.c.tmp/tu.c.in > C:\GitHub\llvm-project\build\tools\clang\test\Lexer\Output\case-insensitive-include-absolute.c.tmp/tu.c
492># executed command: sed 's|DIR|C:/GitHub/llvm-project/build/tools/clang/test/Lexer/Output/case-insensitive-include-absolute.c.tmp|g' 'C:\GitHub\llvm-project\build\tools\clang\test\Lexer\Output\case-insensitive-include-absolute.c.tmp/tu.c.in'
492># RUN: at line 5
492>c:\github\llvm-project\build\release\bin\clang.exe -cc1 -internal-isystem F:\GitHub\llvm-project\build\Release\lib\clang\18\include -nostdsysteminc -fsyntax-only C:\GitHub\llvm-project\build\tools\clang\test\Lexer\Output\case-insensitive-include-absolute.c.tmp/tu.c 2>&1 | c:\github\llvm-project\build\release\bin\filecheck.exe C:\GitHub\llvm-project\clang\test\Lexer\case-insensitive-include-absolute.c --DDIR=C:/GitHub/llvm-project/build/tools/clang/test/Lexer/Output/case-insensitive-include-absolute.c.tmp
492># executed command: 'c:\github\llvm-project\build\release\bin\clang.exe' -cc1 -internal-isystem 'F:\GitHub\llvm-project\build\Release\lib\clang\18\include' -nostdsysteminc -fsyntax-only 'C:\GitHub\llvm-project\build\tools\clang\test\Lexer\Output\case-insensitive-include-absolute.c.tmp/tu.c'
492># executed command: 'c:\github\llvm-project\build\release\bin\filecheck.exe' 'C:\GitHub\llvm-project\clang\test\Lexer\case-insensitive-include-absolute.c' --DDIR=C:/GitHub/llvm-project/build/tools/clang/test/Lexer/Output/case-insensitive-include-absolute.c.tmp
492># .---command stderr------------
492>CUSTOMBUILD : # | FileCheck error : '<stdin>' is empty.
492># | FileCheck command line:  c:\github\llvm-project\build\release\bin\filecheck.exe C:\GitHub\llvm-project\clang\test\Lexer\case-insensitive-include-absolute.c --DDIR=C:/GitHub/llvm-project/build/tools/clang/test/Lexer/Output/case-insensitive-include-absolute.c.tmp
492># `-----------------------------
492>CUSTOMBUILD : # error : command failed with exit status: 2
492>
492>--
492>
492>********************
492>********************
492>Failed Tests (1):
492>  Clang :: Lexer/case-insensitive-include-absolute.c
492>
492>
492>Testing Time: 434.26s
492>
492>Total Discovered Tests: 92696
492>  Skipped          :    90 (0.10%)
492>  Unsupported      : 24219 (26.13%)
492>  Passed           : 68283 (73.66%)
492>  Expectedly Failed:   103 (0.11%)
492>  Failed           :     1 (0.00%)
492>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'C:\GitHub\llvm-project\build\CMakeFiles\5344a242bf0d5667ee3e0d3564612537\check-all.rule;C:\GitHub\llvm-project\llvm\CMakeLists.txt' exited with code 1.
492>Done building project "check-all.vcxproj" -- FAILED.
========== Build: 491 succeeded, 1 failed, 55 up-to-date, 0 skipped ==========
```

https://github.com/llvm/llvm-project/pull/74782


More information about the cfe-commits mailing list