RESOLVED WORKSFORME 184404
CMake 3.11 prints 2400 lines of warnings when run under JHBuild
https://bugs.webkit.org/show_bug.cgi?id=184404
Summary CMake 3.11 prints 2400 lines of warnings when run under JHBuild
Michael Catanzaro
Reported 2018-04-08 18:01:41 PDT
With CMake 3.11 I see a huge warning like this for every single build target, it's over 2400 lines total. Here's just one of the warnings: CMake Warning at Tools/TestWebKitAPI/CMakeLists.txt:186 (add_library): Cannot generate a safe runtime search path for target TestWebKitAPIInjectedBundle because files in some directories may conflict with libraries in implicit directories: runtime library [libxml2.so.2] in /usr/lib64 may be hidden by files in: /home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesGTK/Root/lib runtime library [libicudata.so.57] in /usr/lib64 may be hidden by files in: /home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesGTK/Root/lib runtime library [libicuuc.so.57] in /usr/lib64 may be hidden by files in: /home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesGTK/Root/lib runtime library [libicui18n.so.57] in /usr/lib64 may be hidden by files in: /home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesGTK/Root/lib runtime library [libcairo.so.2] in /usr/lib64 may be hidden by files in: /home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesGTK/Root/lib runtime library [libfontconfig.so.1] in /usr/lib64 may be hidden by files in: /home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesGTK/Root/lib runtime library [libfreetype.so.6] in /usr/lib64 may be hidden by files in: /home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesGTK/Root/lib runtime library [libharfbuzz.so.0] in /usr/lib64 may be hidden by files in: /home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesGTK/Root/lib runtime library [libharfbuzz-icu.so.0] in /usr/lib64 may be hidden by files in: /home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesGTK/Root/lib runtime library [libgcrypt.so.20] in /usr/lib64 may be hidden by files in: /home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesGTK/Root/lib runtime library [libatk-1.0.so.0] in /usr/lib64 may be hidden by files in: /home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesGTK/Root/lib runtime library [libgio-2.0.so.0] in /usr/lib64 may be hidden by files in: /home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesGTK/Root/lib runtime library [libgmodule-2.0.so.0] in /usr/lib64 may be hidden by files in: /home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesGTK/Root/lib runtime library [libgobject-2.0.so.0] in /usr/lib64 may be hidden by files in: /home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesGTK/Root/lib runtime library [libglib-2.0.so.0] in /usr/lib64 may be hidden by files in: /home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesGTK/Root/lib runtime library [libsoup-2.4.so.1] in /usr/lib64 may be hidden by files in: /home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesGTK/Root/lib Some of these libraries may not be found correctly. Of course, hiding system libraries is the entire purpose of JHBuild, so this is not very impressive. I don't think this is acceptable, so I consider CMake 3.11 to be fundamentally incompatible with JHBuild. I'm seriously considering attempting to bootstrap CMake 3.10 in in the JHBuild to shut it up. I don't know what else we can do here asides ask for this to be reverted or stop using CMake altogether.
Attachments
Konstantin Tokarev
Comment 1 2018-04-09 03:50:40 PDT
>I consider CMake 3.11 to be fundamentally incompatible with JHBuild FWIW, cmake is not aware of jhbuild at all so it cannot be incompatible.
Michael Catanzaro
Comment 2 2018-04-09 12:59:16 PDT
Looks incompatible to me, it's complaining that jhbuild is overriding the system libraries, which is all it does....
Konstantin Tokarev
Comment 3 2018-04-10 09:56:25 PDT
I've just downloaded cmake 3.11 and could not reproduce your problem, jhbuild libraries are found
Konstantin Tokarev
Comment 4 2018-04-10 09:56:46 PDT
Could you post your CMakeCache.txt?
Michael Catanzaro
Comment 5 2018-04-10 10:27:36 PDT
The errors are gone. :S I'll reopen if I see this again.
Michael Catanzaro
Comment 6 2018-05-09 10:21:33 PDT
Problem here was cmake run inconsistently both inside and outside of jhbuild. That's not expected to work, of course.
Note You need to log in before you can comment on or make changes to this bug.