Difference between revisions of "ktwebkit 5.7.1 fails to compile on gentoo"

From thelinuxwiki
Jump to: navigation, search
(Created page with "localhost ~ # emerge --oneshot --quiet =dev-qt/qtwebkit-5.7.1 <br>... <br>>>> Verifying ebuild manifests <br>>>> Emerging (1 of 1) dev-qt/qtwebkit-5.7.1::gentoo <br>>>> Faile...")
 
(problem)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
localhost ~ # emerge --oneshot --quiet =dev-qt/qtwebkit-5.7.1
+
 
 +
== problem ==
 +
ktwebkit version 5.7.1 fails to compile on gentoo
 +
 
 +
== error messages ==
 +
 
 +
ruby related error messages
 +
 
 +
similar problem found [https://forums.gentoo.org/viewtopic-t-1043412-start-0.html here]
 +
 
 +
 
 +
=== Example ===
 +
 
 +
localhost ~ # '''emerge --oneshot --quiet =dev-qt/qtwebkit-5.7.1'''
 
<br>...
 
<br>...
  
Line 8: Line 21:
  
 
<br>(error snippet)...
 
<br>(error snippet)...
<br>make[2]: Entering directory '/var/tmp/portage/dev-qt/qtwebkit-5.7.1/work/qtwebkit-opensource-src-5.7.1/Source/JavaScriptCore'ruby /var/tmp/portage/dev-qt/qtwebkit-5.7.1/work/qtwebkit-opensource-src-5.7.1/Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb llint/LowLevelInterpreter.asm LLIntDesiredOffsets.h/usr/lib64/ruby/2.0.0/rubygems.rb:15:in `require': cannot load such file -- rubygems/compatibility (LoadError)        from /usr/lib64/ruby/2.0.0/rubygems.rb:15:in `<top (required)>'        from <internal:gem_prelude>:1:in `require'        from <internal:gem_prelude>:1:in `<compiled>'make[2]: *** [Makefile.LLIntOffsetsExtractor:487: LLIntDesiredOffsets.h] Error 1make[2]: Leaving directory '/var/tmp/portage/dev-qt/qtwebkit-5.7.1/work/qtwebkit-opensource-src-5.7.1/Source/JavaScriptCore'make[1]: *** [Makefile.JavaScriptCore:42: sub-LLIntOffsetsExtractor-pro-make_first-ordered] Error 2make[1]: Leaving directory '/var/tmp/portage/dev-qt/qtwebkit-5.7.1/work/qtwebkit-opensource-src-5.7.1/Source/JavaScriptCore'make: *** [Makefile:93: sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered] Error 2
+
<br>make[2]: Entering directory '/var/tmp/portage/dev-qt/qtwebkit-5.7.1/work/qtwebkit-opensource-src-5.7.1/Source/JavaScriptCore'
 +
<br>ruby /var/tmp/portage/dev-qt/qtwebkit-5.7.1/work/qtwebkit-opensource-src-5.7.1/Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb llint/LowLevelInterpreter.asm LLIntDesiredOffsets.h
 +
<br>/usr/lib64/ruby/2.0.0/rubygems.rb:15:in `require': cannot load such file -- rubygems/compatibility (LoadError)         
 +
<br>    from /usr/lib64/ruby/2.0.0/rubygems.rb:15:in `<top (required)>'
 +
<br>       from <internal:gem_prelude>:1:in `require'
 +
<br>       from <internal:gem_prelude>:1:in `<compiled>'
 +
<br>make[2]: *** [Makefile.LLIntOffsetsExtractor:487: LLIntDesiredOffsets.h] Error 1
 +
<br>make[2]: Leaving directory '/var/tmp/portage/dev-qt/qtwebkit-5.7.1/work/qtwebkit-opensource-src-5.7.1/Source/JavaScriptCore'
 +
<br>make[1]: *** [Makefile.JavaScriptCore:42: sub-LLIntOffsetsExtractor-pro-make_first-ordered] Error 2
 +
<br>make[1]: Leaving directory '/var/tmp/portage/dev-qt/qtwebkit-5.7.1/work/qtwebkit-opensource-src-5.7.1/Source/JavaScriptCore'make: *** [Makefile:93: sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered] Error 2
 
<br>* ERROR: dev-qt/qtwebkit-5.7.1::gentoo failed (compile phase): *  emake failed *  
 
<br>* ERROR: dev-qt/qtwebkit-5.7.1::gentoo failed (compile phase): *  emake failed *  
 
<br>...
 
<br>...
  
<br>localhost ~ # eselect ruby list
+
 
 +
== solution ==
 +
 
 +
update ruby profile to one more recent
 +
 
 +
=== Example: ===
 +
 
 +
<br>localhost ~ # '''eselect ruby list'''
 
<br>Available Ruby profiles:   
 
<br>Available Ruby profiles:   
 
<br>    [1]  ruby20 *   
 
<br>    [1]  ruby20 *   
Line 19: Line 48:
 
<br>    [4]  ruby23 (with Rubygems)
 
<br>    [4]  ruby23 (with Rubygems)
  
<br>localhost  ~ # eselect ruby set 4
+
<br>localhost  ~ # '''eselect ruby set 4'''
  
 
<br>Successfully switched to profile:  ruby23
 
<br>Successfully switched to profile:  ruby23
  
<br>localhost  ~ # emerge --oneshot --quiet =dev-qt/qtwebkit-5.7.1
+
<br>localhost  ~ # '''emerge --oneshot --quiet =dev-qt/qtwebkit-5.7.1'''
  
 
<br>>>> Verifying ebuild manifests
 
<br>>>> Verifying ebuild manifests
Line 30: Line 59:
  
 
<br>!!! existing preserved libs found
 
<br>!!! existing preserved libs found
 +
 +
'''Success!'''

Latest revision as of 14:01, 30 December 2016

Contents

problem

ktwebkit version 5.7.1 fails to compile on gentoo

error messages

ruby related error messages

similar problem found here


Example

localhost ~ # emerge --oneshot --quiet =dev-qt/qtwebkit-5.7.1
...


>>> Verifying ebuild manifests
>>> Emerging (1 of 1) dev-qt/qtwebkit-5.7.1::gentoo
>>> Failed to emerge dev-qt/qtwebkit-5.7.1, Log file:
>>> '/var/tmp/portage/dev-qt/qtwebkit-5.7.1/temp/build.log'


(error snippet)...
make[2]: Entering directory '/var/tmp/portage/dev-qt/qtwebkit-5.7.1/work/qtwebkit-opensource-src-5.7.1/Source/JavaScriptCore'
ruby /var/tmp/portage/dev-qt/qtwebkit-5.7.1/work/qtwebkit-opensource-src-5.7.1/Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb llint/LowLevelInterpreter.asm LLIntDesiredOffsets.h
/usr/lib64/ruby/2.0.0/rubygems.rb:15:in `require': cannot load such file -- rubygems/compatibility (LoadError)
from /usr/lib64/ruby/2.0.0/rubygems.rb:15:in `<top (required)>'
from <internal:gem_prelude>:1:in `require'
from <internal:gem_prelude>:1:in `<compiled>'
make[2]: *** [Makefile.LLIntOffsetsExtractor:487: LLIntDesiredOffsets.h] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-qt/qtwebkit-5.7.1/work/qtwebkit-opensource-src-5.7.1/Source/JavaScriptCore'
make[1]: *** [Makefile.JavaScriptCore:42: sub-LLIntOffsetsExtractor-pro-make_first-ordered] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-qt/qtwebkit-5.7.1/work/qtwebkit-opensource-src-5.7.1/Source/JavaScriptCore'make: *** [Makefile:93: sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered] Error 2
* ERROR: dev-qt/qtwebkit-5.7.1::gentoo failed (compile phase): * emake failed *
...


solution

update ruby profile to one more recent

Example:


localhost ~ # eselect ruby list
Available Ruby profiles:
[1] ruby20 *
[2] ruby21 (with Rubygems)
[3] ruby22 (with Rubygems)
[4] ruby23 (with Rubygems)


localhost ~ # eselect ruby set 4


Successfully switched to profile: ruby23


localhost ~ # emerge --oneshot --quiet =dev-qt/qtwebkit-5.7.1


>>> Verifying ebuild manifests
>>> Emerging (1 of 1) dev-qt/qtwebkit-5.7.1::gentoo
>>> Installing (1 of 1) dev-qt/qtwebkit-5.7.1::gentoo


!!! existing preserved libs found

Success!