[CMake] Fwd: [Bug 1394152] New: WebKitGTK+ build fails with cmake 3.6.x and 3.7.0 if using icecream and ninja
Orion Poplawski
orion at cora.nwra.com
Fri Nov 11 09:18:02 EST 2016
Does this issue seem familiar to anyone?
-------- Forwarded Message --------
Subject: [Bug 1394152] New: WebKitGTK+ build fails with cmake 3.6.x
and 3.7.0 if using icecream and ninja
Date: Fri, 11 Nov 2016 08:12:13 +0000
From: bugzilla at redhat.com
To: orion at cora.nwra.com
https://bugzilla.redhat.com/show_bug.cgi?id=1394152
Bug ID: 1394152
Summary: WebKitGTK+ build fails with cmake 3.6.x and 3.7.0 if
using icecream and ninja
Product: Fedora
Version: 25
Component: cmake
Assignee: orion at cora.nwra.com
Reporter: tpopela at redhat.com
QA Contact: extras-qa at fedoraproject.org
CC: fedora at besser82.io, helio at kde.org, jreznik at redhat.com,
orion at cora.nwra.com, rdieter at math.unl.edu
Created attachment 1219658
--> https://bugzilla.redhat.com/attachment.cgi?id=1219658&action=edit
cmake generated files from the build directory
Description of problem:
I'm using icecream (distributed compilation) and ninja together with
cmake to
build WebKitGTK+ (webkitgtk4 package). After updating to F25 (where is cmake
3.6.x) I cannot build it successfully anymore. The thing is that even if the
-fPIC is presented for every file in the generated build.ninja file,
when the
build is run then there is no -fPIC in the compilers (in this case gcc)
arguments (observed by looking on gcc processes during the compilation)
which
in the end leads to bunch of the following errors:
/usr/bin/ld.gold: error:
Source/ThirdParty/gtest/CMakeFiles/gtest.dir/src/gtest-typed-test.cc.o:
requires dynamic R_X86_64_PC32 reloc against
'_ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeIN7testing8internal6StringEEE8allocateEmPKv'
which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error:
Source/ThirdParty/gtest/CMakeFiles/gtest.dir/src/gtest-typed-test.cc.o:
requires dynamic R_X86_64_PC32 reloc against
'_ZSt7forwardIRKN7testing8internal6StringEEOT_RNSt16remove_referenceIS5_E4typeE'
which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error:
Source/ThirdParty/gtest/CMakeFiles/gtest.dir/src/gtest-typed-test.cc.o:
requires dynamic R_X86_64_PC32 reloc against
'_ZNK9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeIN7testing8internal6StringEEE8max_sizeEv'
which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error:
Source/ThirdParty/gtest/CMakeFiles/gtest.dir/src/gtest-typed-test.cc.o:
requires dynamic R_X86_64_PC32 reloc against
'_ZSt7forwardIRKN7testing8internal6StringEEOT_RNSt16remove_referenceIS5_E4typeE'
which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error:
Source/ThirdParty/gtest/CMakeFiles/gtest.dir/src/gtest-typed-test.cc.o:
requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile
with -fPIC
I also tried the 3.7 (rc2 and rc3), but the build fails in the same way.
I'm attaching the generated files from the build directory (the WebKit's
cmake
sources could be found on trac.webkit.org).
Also a note that it's not a Fedora specific as the guys from WebKit'
upstream
running on Debian are having the same issue.
In the meantime I had to rebuild the 3.5.x from F24, where it works.
How reproducible:
Always with 3.6.2 and 3.7.0 (rc2 and rc3). Not reproducible with 3.5.2.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the CMake
mailing list