Issue 208901
Summary [libcxx] unknwn.h and windows.h should be lowercase
Labels libc++
Assignees
Reporter trcrsired
    ```
[7/103] Building CXX object libcxx/src/CMakeFiles/cxx_shared.dir/exception.cpp.obj
FAILED: [code=1] libcxx/src/CMakeFiles/cxx_shared.dir/exception.cpp.obj
/home/cqwrteur/toolchains/llvm/x86_64-linux-gnu/llvm/bin/clang++ --target=x86_64-unknown-windows-msvc -DLIBC_NAMESPACE=__llvm_libc_common_utils -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -D_ALLOW_MSC_VER_MISMATCH -D_CRTBLD -D_CRT_SECURE_NO_WARNINGS -D_CRT_STDIO_ISO_WIDE_SPECIFIERS -D_LIBCPP_AVAILABILITY_MINIMUM_HEADER_VERSION=2 -D_LIBCPP_BUILDING_LIBRARY -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D_LIBCPP_REMOVE_TRANSITIVE_INCLUDES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/cqwrteur/toolchains_build/llvm-project/libcxx/src -I/home/cqwrteur/toolchains_build/toolchainbuildscripts/llvm/.llvmwindowsmsvclibcxxartifacts/x86_64-unknown-windows-msvc/runtimes/include/c++/v1 -isystem /home/cqwrteur/toolchains_build/llvm-project/cmake/Modules/../../libc -fuse-ld=lld -flto=thin -D_DLL=1 -stdlib=libc++ -Wno-unused-command-line-argument -lmsvcrt -lmsvcprt --sysroot=/home/cqwrteur/toolchains/windows-msvc-sysroot -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -O3 -DNDEBUG -std=gnu++17 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -std=c++26 -faligned-allocation -nostdinc++ -fvisibility-inlines-hidden -fvisibility=hidden -fsized-deallocation -Wall -Wextra -Wnewline-eof -Wshadow -Wwrite-strings -Wno-unused-parameter -Wno-long-long -Werror=return-type -Wextra-semi -Wundef -Wunused-template -Wformat-nonliteral -Wzero-length-array -Wdeprecated-redundant-constexpr-static-def -Wno-nullability-completeness -Wmissing-prototypes -Wno-user-defined-literals -Wno-covered-switch-default -Wno-suggest-override -Wno-error -fdebug-prefix-map=/home/cqwrteur/toolchains_build/toolchainbuildscripts/llvm/.llvmwindowsmsvclibcxxartifacts/x86_64-unknown-windows-msvc/runtimes/include/c++/v1=/home/cqwrteur/toolchains_build/llvm-project/libcxx/include -MD -MT libcxx/src/CMakeFiles/cxx_shared.dir/exception.cpp.obj -MF libcxx/src/CMakeFiles/cxx_shared.dir/exception.cpp.obj.d -o libcxx/src/CMakeFiles/cxx_shared.dir/exception.cpp.obj -c /home/cqwrteur/toolchains_build/llvm-project/libcxx/src/exception.cpp
In file included from /home/cqwrteur/toolchains_build/llvm-project/libcxx/src/exception.cpp:16:
/home/cqwrteur/toolchains_build/llvm-project/libcxx/src/support/runtime/exception_pointer_msvc.ipp:17:10: fatal error: 'Unknwn.h' file not found
   17 | #include <Unknwn.h>
      | ^~~~~~~~~~
1 error generated.
```
We should use unknwn.h and windows.h instead of Unknwn.h and Windows.h. On Linux and others, the filesystem is case sensitive, unlike windows which is case insensitive. Both mingw-w64-crt and windows-msvc-sysroot ensures all windows headers to full lowercase.

https://github.com/ninja-build/ninja/issues/2542

Here was a similar issue i reported before to ninja
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to