[jira] [Updated] (XERCESC-2252) Unable to compile with clang-cl on Windows
"Scott Cantor (Jira)" <[email protected]> Mon, 30 Sep 2024 16:10:00 +0000 (UTC)
| Newsgroups | gmane.text.xml.xerces-c.devel |
|---|---|
| Message-ID | <[email protected]> |
[ https://issues.apache.org/jira/browse/XERCESC-2252?page=3Dcom.atlass=
ian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Cantor updated XERCESC-2252:
----------------------------------
Fix Version/s: (was: 3.3.0)
> Unable to compile with clang-cl on Windows
> ------------------------------------------
>
> Key: XERCESC-2252
> URL: https://issues.apache.org/jira/browse/XERCESC-2252
> Project: Xerces-C++
> Issue Type: Bug
> Components: Build
> Affects Versions: 3.2.5
> Reporter: Mark
> Assignee: Scott Cantor
> Priority: Major
>
> The following error happens when trying to build on Windows, using LLVM 1=
7.0.6:
> =C2=A0
> =C2=A0
> {code:java}
> [287/299] Building RC object src\CMakeFiles\xerces-c.dir\Release\xercesc\=
util\version.rc.res
> FAILED: src/CMakeFiles/xerces-c.dir/Release/xercesc/util/version.rc.res=
=20
> "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\C=
ommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E cmake_llvm_rc D:\co=
nan\p\b\xerce57c5f34a11450\b\build\src\xercesc\util\version.rc src\CMakeFil=
es\xerces-c.dir\Release\xercesc\util\version.rc.res.pp C:\PROGRA~1\LLVM\bin=
\clang-cl.exe -DHAVE_CONFIG_H=3D1 -DXERCES_BUILDING_LIBRARY=3D1 -DXERCES_DL=
L_NAME=3D\"xerces-c_3_2.dll\0\" -D_THREAD_SAFE=3D1 -Dxerces_c_EXPORTS -DCMA=
KE_INTDIR=3D\"Release\" -DRC_INVOKED -I D:\conan\p\b\xerce57c5f34a11450\b\b=
uild -I D:\conan\p\b\xerce57c5f34a11450\b\src\src -I D:\conan\p\b\xerce57c5=
f34a11450\b\build\src -DWIN32 -clang:-MD -clang:-MF -clang:src\CMakeFiles\x=
erces-c.dir\Release\xercesc\util\version.rc.res.d -E -- D:\conan\p\b\xerce=
57c5f34a11450\b\build\src\xercesc\util\version.rc ++ llvm-rc -DHAVE_CONFIG_=
H=3D1 -DXERCES_BUILDING_LIBRARY=3D1 -DXERCES_DLL_NAME=3D\"xerces-c_3_2.dll\=
0\" -D_THREAD_SAFE=3D1 -Dxerces_c_EXPORTS -DCMAKE_INTDIR=3D\"Release\" -I S=
OURCE_DIR -I D:\conan\p\b\xerce57c5f34a11450\b\build -I D:\conan\p\b\xerce5=
7c5f34a11450\b\src\src -I D:\conan\p\b\xerce57c5f34a11450\b\build\src -DWIN=
32 -clang:-MD -clang:-MF -clang:src\CMakeFiles\xerces-c.dir\Release\xercesc=
\util\version.rc.res.d /fo src\CMakeFiles\xerces-c.dir\Release\xercesc\util=
\version.rc.res src\CMakeFiles\xerces-c.dir\Release\xercesc\util\version.rc=
.res.pp
> llvm-rc: Error in VERSIONINFO statement (ID 1):=20
> Non-ASCII 8-bit codepoint (=C2=B4=E2=94=90=C2=A2) can't be interpreted in=
the current codepage {code}
> =C2=A0
> =C2=A0
> This is caused by [llvm-rc chokes on cp1252 =C2=B7 Issue #57367 =C2=B7 ll=
vm/llvm-project (github.com)|https://github.com/llvm/llvm-project/issues/57=
367]
> =C2=A0
> And can be easily fixed by adding these lines to the CMakeLists.txt:
> {code:java}
> if (WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
> set(CMAKE_RC_FLAGS=3D"-C 1252")
> endif() {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)