Not sure if you want bugreports for new clang/llvm versions, but this is going to be relevant once it’s released anyway, so might as well report it now.
Did this occur when building a project or trying to build the engine? If this was when building a project were you building a new project or an existing one? Does this error occur with other versions of the engine as well?
I didn’t say but it was on linux and I did what the wiki says to compile the editor:
make UE4Editor UE4Game UnrealPak CrashReportClient ShaderCompileWorker UnrealLightmass
From the error message it’s in the third party jpeg-compressor library that is used by the editor.
Note: This is with a development version of clang 3.8 which is not yet released. I believe that with the current stable releases of clang this warning does not exist yet and the build succeeds (I haven’t tested it).
The code probably still relies on undefined behavior so fixing it wouldn’t be a bad thing anyway.
Not sure how this is supposed to help. It’s just something that should be fixed before the llvm/clang 3.8 releae. Considering 3.7 was only released about 2 days ago, that will be quite some time in the future, so lots of time until then…
Thank you for the information. It will help us fix this when we test with 3.8. If you come across a solution to fix this in the mean time then you can enter a pull request for your fix to be included into the engine.
Man, i have installer clang-3.7 for works with cry engine but i don’t know ho compile UnrealEngine with it.
When i do ./GenerateProjectFiles.sh i have the next error:
*** This version of the engine can only be compiled by clang - refusing to register the Linux toolchain.
Generating data for project indexing... 0%
UnrealBuildTool Exception: ERROR: GetPlatformToolChain: No tool chain found for Linux
Problem still present(Arch, clang 3.7.0-5, UE branch 4.10). Stupid but working solution just replace 569 line in Engine/Source/ThirdParty/libJPG/jpgd.cpp for
I’m glad you were able to find a solution that worked for you. The engine currently does not support versions of Clang beyond 3.6 however we do plan to include support for other versions in the future. It is recommended to use 3.6 for the time being, though as you’ve pointed out it is possible to edit the source code to work with other versions.
Would be nice to actually link to the pull request. I randomly found it: https://github.com/EpicGames/UnrealEngine/pull/1704 with a commit
“disable “-Wshift-negative-value” for clang >= 3.7.0 which makes possible to compile libJPG,”
I have just made the equivalent change in one of our internal streams, rather than disabling the warning. It will make its way into our GitHub repo at some future point, and presumably the 4.11 release.