Bug 184404
Summary: | CMake 3.11 prints 2400 lines of warnings when run under JHBuild | ||
---|---|---|---|
Product: | WebKit | Reporter: | Michael Catanzaro <mcatanzaro> |
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WORKSFORME | ||
Severity: | Normal | CC: | annulen, aperez, lforschler, mcatanzaro |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | PC | ||
OS: | Linux |
Michael Catanzaro
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Konstantin Tokarev
>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
Looks incompatible to me, it's complaining that jhbuild is overriding the system libraries, which is all it does....
Konstantin Tokarev
I've just downloaded cmake 3.11 and could not reproduce your problem, jhbuild libraries are found
Konstantin Tokarev
Could you post your CMakeCache.txt?
Michael Catanzaro
The errors are gone. :S
I'll reopen if I see this again.
Michael Catanzaro
Problem here was cmake run inconsistently both inside and outside of jhbuild. That's not expected to work, of course.