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: [email protected]
To: [email protected]
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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected], [email protected],
[email protected], [email protected]
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.
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake