You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When invoking conan install wirth --build=missing is start building glew, but it fails with the following error message:
glew/2.2.0: RUN: cmake --build "C:\Users\rudol\.conan2\p\b\glew63c7a5ae9d532\b\build\Debug" -- -j16
[1/6] Building RC object CMakeFiles/glew.dir/C_/Users/rudol/.conan2/p/b/glew63c7a5ae9d532/b/src/build/glew.rc.res
FAILED: CMakeFiles/glew.dir/C_/Users/rudol/.conan2/p/b/glew63c7a5ae9d532/b/src/build/glew.rc.res
"C:\Program Files\CMake\bin\cmake.exe" -E cmake_llvm_rc C:/Users/rudol/.conan2/p/b/glew63c7a5ae9d532/b/src/build/glew.rc CMakeFiles/glew.dir/C_/Users/rudol/.conan2/p/b/glew63c7a5ae9d532/b/src/build/glew.rc.res.pp C:\PROGRA~1\LLVM\bin\clang.exe -DGLEW_BUILD -DGLEW_NO_GLU -Dglew_EXPORTS -DRC_INVOKED -I C:/Users/rudol/.conan2/p/b/glew63c7a5ae9d532/b/src/build/cmake/../../include -MD -MF CMakeFiles\glew.dir\C_\Users\rudol\.conan2\p\b\glew63c7a5ae9d532\b\src\build\glew.rc.res.d -x c -E -- C:/Users/rudol/.conan2/p/b/glew63c7a5ae9d532/b/src/build/glew.rc ++ C:\PROGRA~1\LLVM\bin\llvm-rc.exe -DGLEW_BUILD -DGLEW_NO_GLU -Dglew_EXPORTS -I SOURCE_DIR -I C:/Users/rudol/.conan2/p/b/glew63c7a5ae9d532/b/src/build/cmake/../../include -MD -MF CMakeFiles\glew.dir\C_\Users\rudol\.conan2\p\b\glew63c7a5ae9d532\b\src\build\glew.rc.res.d /fo CMakeFiles/glew.dir/C_/Users/rudol/.conan2/p/b/glew63c7a5ae9d532/b/src/build/glew.rc.res CMakeFiles/glew.dir/C_/Users/rudol/.conan2/p/b/glew63c7a5ae9d532/b/src/build/glew.rc.res.pp
llvm-rc: Error in VERSIONINFO statement (ID 1):
Non-ASCII 8-bit codepoint (�) can't be interpreted in the current codepage
[2/6] Building RC object CMakeFiles/glew_s.dir/C_/Users/rudol/.conan2/p/b/glew63c7a5ae9d532/b/src/build/glew.rc.res
FAILED: CMakeFiles/glew_s.dir/C_/Users/rudol/.conan2/p/b/glew63c7a5ae9d532/b/src/build/glew.rc.res
"C:\Program Files\CMake\bin\cmake.exe" -E cmake_llvm_rc C:/Users/rudol/.conan2/p/b/glew63c7a5ae9d532/b/src/build/glew.rc CMakeFiles/glew_s.dir/C_/Users/rudol/.conan2/p/b/glew63c7a5ae9d532/b/src/build/glew.rc.res.pp C:\PROGRA~1\LLVM\bin\clang.exe -DGLEW_NO_GLU -DGLEW_STATIC -DRC_INVOKED -I C:/Users/rudol/.conan2/p/b/glew63c7a5ae9d532/b/src/build/cmake/../../include -MD -MF CMakeFiles\glew_s.dir\C_\Users\rudol\.conan2\p\b\glew63c7a5ae9d532\b\src\build\glew.rc.res.d -x c -E -- C:/Users/rudol/.conan2/p/b/glew63c7a5ae9d532/b/src/build/glew.rc ++ C:\PROGRA~1\LLVM\bin\llvm-rc.exe -DGLEW_NO_GLU -DGLEW_STATIC -I SOURCE_DIR -I C:/Users/rudol/.conan2/p/b/glew63c7a5ae9d532/b/src/build/cmake/../../include -MD -MF CMakeFiles\glew_s.dir\C_\Users\rudol\.conan2\p\b\glew63c7a5ae9d532\b\src\build\glew.rc.res.d /fo CMakeFiles/glew_s.dir/C_/Users/rudol/.conan2/p/b/glew63c7a5ae9d532/b/src/build/glew.rc.res CMakeFiles/glew_s.dir/C_/Users/rudol/.conan2/p/b/glew63c7a5ae9d532/b/src/build/glew.rc.res.pp
llvm-rc: Error in VERSIONINFO statement (ID 1):
Non-ASCII 8-bit codepoint (�) can't be interpreted in the current codepage
[4/6] Building C object CMakeFiles/glew.dir/C_/Users/rudol/.conan2/p/b/glew63c7a5ae9d532/b/src/src/glew.c.obj
ninja: build stopped: subcommand failed.
I think it is actually an issue with the CMakeLists.txt file in the original repository, since it always includes .rc files on Windows, and probably they should only be included with MSVC. I did a quick test locally and then it worked with clang if those .rc files were not included.
Hi @rudolfheszele - thanks so much for opening this issue and even more so for reaching out to upstream.
However, I can see that CMake is correctly using llvm-rc to process the file - I think the logic in is perfectly valid if CMake knows to redirect the compilation to the resource compiler regardless of the compiler.
The issue seems similar to this: curl/curl#7765 , where it has issues with the unicode copyright character
VALUE "LegalCopyright", "� 2002-2019 Nigel Stewart & Milan Ikits & Marcelo Magallon\0"
Description
Looks like the package cannot be built on Windows using clang.
Here is the profile I am using:
When invoking
conan install
wirth--build=missing
is start building glew, but it fails with the following error message:I think it is actually an issue with the
CMakeLists.txt
file in the original repository, since it always includes.rc
files on Windows, and probably they should only be included with MSVC. I did a quick test locally and then it worked with clang if those.rc
files were not included.Package and Environment Details
Conan profile
Steps to reproduce
See description
Logs
The text was updated successfully, but these errors were encountered: