Advertisement
Guest User

Untitled

a guest
Jan 29th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. Build error:
  2. ...
  3. | Building native extensions. This could take a while...
  4. | ERROR: Error installing ruby-augeas-0.5.0.gem:
  5. | ERROR: Failed to build gem native extension.
  6. |
  7. | current directory:
  8. ...build/arago-tmp/work/armv7ahf-neon-poky-linux-gnueabi/ruby-augeas/0.5.0-r0/image/usr/lib/ruby/gems/2.4.0/gems/ruby-augeas-0.5.0/ext/augeas
  9. | ...build/arago-tmp/work/armv7ahf-neon-poky-linux-gnueabi/ruby-augeas/0.5.0-r0/recipe-sysroot-native/usr/bin/ruby
  10. -r ./siteconf20190129-83521-qp9ixi.rb extconf.rb
  11. | *** extconf.rb failed ***
  12. | Could not create Makefile due to some reason, probably lack of necessary
  13. | libraries and/or headers. Check the mkmf.log file for more details. You may
  14. | need configuration options.
  15. |
  16. | Provided configuration options:
  17. | --with-opt-dir
  18. | --without-opt-dir
  19. | --with-opt-include
  20. | --without-opt-include=${opt-dir}/include
  21. | --with-opt-lib
  22. | --without-opt-lib=${opt-dir}/lib
  23. | --with-make-prog
  24. | --without-make-prog
  25. | --srcdir=.
  26. | --curdir
  27. | --ruby=.../build/arago-tmp/work/armv7ahf-neon-poky-linux-gnueabi/ruby-augeas/0.5.0-r0/recipe-sysroot-native/usr/bin/$(RUBY_BASE_NAME)
  28. | --with-augeas-config
  29. | --without-augeas-config
  30. | --with-pkg-config
  31. | --without-pkg-config
  32. | extconf.rb:27:in `<main>': augeas-devel not installed (RuntimeError)
  33. |
  34. | To see why this extension failed to compile, please check the
  35. mkmf.log which can be found here:
  36.  
  37. Abbreviated output of mkmf.log:
  38.  
  39. "pkg-config --exists augeas"
  40. | pkg-config --libs augeas
  41. => "-laugeas\n"
  42. ...
  43. build/arago-tmp/work/armv7ahf-neon-poky-linux-gnueabi/ruby-augeas/0.5.0-r0/recipe-sysroot-native/lib
  44. -Wl,-O1 -fstack-protector -rdynamic -Wl,-export-dynamic -lruby
  45. -laugeas -lpthread -ldl -lcrypt -lm -lc"
  46. ...build/arago-tmp/hosttools/ld: cannot find -laugeas
  47. collect2: error: ld returned 1 exit status
  48. checked program was:
  49. /* begin */
  50. 1: #include "ruby.h"
  51. 2:
  52. 3: int main(int argc, char **argv)
  53. 4: {
  54. 5: return 0;
  55. 6: }
  56. /* end */
  57.  
  58. package configuration for augeas is not found
  59.  
  60. And the recipe:
  61.  
  62. SUMMARY = "Shadow Password Module"
  63. HOMEPAGE = "http://download.augeas.net/ruby"
  64. LICENSE = "LGPLv2.1"
  65. LIC_FILES_CHKSUM = "file://COPYING;md5=bbb461211a33b134d42ed5ee802b37ff"
  66.  
  67. SRC_URI = "http://download.augeas.net/ruby/ruby-augeas-${PV}.tgz \
  68. file://add_ruby_augeas_gemspec.patch \
  69. "
  70. SRCREV = "4231a4838fd50022b112838f114ee0586e119605"
  71.  
  72. SRC_URI[md5sum] = "a132eace43ce13ccd059e22c0b1188ac"
  73. SRC_URI[sha256sum] =
  74. "b82189dcc5cfa18ffaf906f1c5d57e4c3a06054d84100a0699d15fe7d92d9be1"
  75.  
  76. S = "${WORKDIR}/ruby-augeas-${PV}"
  77.  
  78. inherit ruby
  79.  
  80. DEPENDS += " \
  81. ruby \
  82. augeas \
  83. "
  84.  
  85. RDEPENDS_${PN} += " \
  86. ruby \
  87. "
  88.  
  89. RUBY_INSTALL_GEMS = "ruby-augeas-${PV}.gem"
  90.  
  91. do_compile_prepend() {
  92. cp ${S}/ext/augeas/extconf.rb ${S}
  93. }
  94.  
  95. I have also installed the ruby class cross compile patch:
  96. https://lists.yoctoproject.org/pipermail/meta-virtualization/2016-January/001685.html
  97. This patch looks for the extconf.rb file in the root directory, hence
  98. the do_compile_prepend in the recipe.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement