Error building Ruby for Qt demo with Yocto

For SAMA5D2 Xplained, SAMA5D3 Xplained and SAMA5D4 Xplained

Moderator: nferre

artk2002
Posts: 5
Joined: Fri Oct 13, 2017 1:52 am

Error building Ruby for Qt demo with Yocto

Sat Nov 11, 2017 5:04 pm

System: Fedora 26 (Yes, an untested version)

Build of core-minimal runs fine, but building atmel-qt5-demo-image failes building Ruby doc. I'm not familiar with Ruby so it's hard to tell what's gone wrong. Here is a snippet from the log.

Code: Select all

|  98% [953/966]  .../x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/doc/regexp.rdoc
|  98% [954/966]  ...86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/doc/security.rdoc
| ERROR: oe_runmake failed
|  98% [955/966]  ...nux/ruby-native/2.2.5-r0/ruby-2.2.5/doc/standard_library.rdoc
|  98% [956/966]  .../x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/doc/syntax.rdoc
|  99% [957/966]  ...ux/ruby-native/2.2.5-r0/ruby-2.2.5/doc/syntax/assignment.rdoc
|  99% [958/966]  ...by-native/2.2.5-r0/ruby-2.2.5/doc/syntax/calling_methods.rdoc
|  99% [959/966]  ...ative/2.2.5-r0/ruby-2.2.5/doc/syntax/control_expressions.rdoc
|  99% [960/966]  ...ux/ruby-native/2.2.5-r0/ruby-2.2.5/doc/syntax/exceptions.rdoc
|  99% [961/966]  ...inux/ruby-native/2.2.5-r0/ruby-2.2.5/doc/syntax/literals.rdoc
|  99% [962/966]  ...linux/ruby-native/2.2.5-r0/ruby-2.2.5/doc/syntax/methods.rdoc
|  99% [963/966]  ...ruby-native/2.2.5-r0/ruby-2.2.5/doc/syntax/miscellaneous.rdoc
|  99% [964/966]  ...ative/2.2.5-r0/ruby-2.2.5/doc/syntax/modules_and_classes.rdoc
|  99% [965/966]  ...ux/ruby-native/2.2.5-r0/ruby-2.2.5/doc/syntax/precedence.rdoc
| 100% [966/966]  ...x/ruby-native/2.2.5-r0/ruby-2.2.5/doc/syntax/refinements.rdoc
| 
| Generating RI format into /home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/build/.ext/rdoc...
| Marshal.dump reentered at marshal_dump
| /home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/store.rb:890:in `dump'
| 	/home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/store.rb:890:in `save_method'
| 	/home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/store.rb:752:in `block (2 levels) in save'
| 	/home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/context.rb:731:in `block in each_method'
| 	/home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/context.rb:731:in `each'
| 	/home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/context.rb:731:in `each_method'
| 	/home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/store.rb:751:in `block in save'
| 	/home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/store.rb:748:in `each'
| 	/home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/store.rb:748:in `save'
| 	/home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/generator/ri.rb:26:in `generate'
| 	/home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/rdoc.rb:530:in `block in generate'
| 	/home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/rdoc.rb:525:in `chdir'
| 	/home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/rdoc.rb:525:in `generate'
| 	/home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/rdoc.rb:508:in `document'
| 	../ruby-2.2.5/bin/rdoc:20:in `<main>'
| 
| 
| make: *** [uncommon.mk:428: rdoc] Error 1
| ERROR: Function failed: do_compile (log file is located at /home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/temp/log.do_compile.27583)
ERROR: Task (virtual:native:/home/artkauf/poky/meta/recipes-devtools/ruby/ruby_2.2.5.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1556 tasks of which 1553 didn't need to be rerun and 1 failed.
Questions:
1. Is the Ruby doc essential?
2. If not, can I disable it?
3. If it is essential, what's going wrong and how do I fix it.

Yes, I could switch to an earlier version of Fedora, but I'd prefer to save that as the last resort.
blue_z
Location: USA
Posts: 1547
Joined: Thu Apr 19, 2007 10:15 pm

Re: Error building Ruby for Qt demo with Yocto

Mon Nov 13, 2017 10:42 pm

Your "snippet from the log" has no error to evaluate. You need to look further back, or fetch the logfile.
The last two Linux4SAM demos, versions 5.6 and 5.7, do not include any Ruby project AFAICT.
Using the latest distro release for a build system is IMO foolish; the goal is a stable system, rather than the latest and greatest multimedia features.

Regards
artk2002
Posts: 5
Joined: Fri Oct 13, 2017 1:52 am

Re: Error building Ruby for Qt demo with Yocto

Thu Nov 16, 2017 11:36 pm

This sure looks like an error to me. Did you scroll down in the snippet?

| Generating RI format into /home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/build/.ext/rdoc...
| Marshal.dump reentered at marshal_dump
| /home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/store.rb:890:in `dump'
| /home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/store.rb:890:in `save_method'
| /home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/store.rb:752:in `block (2 levels) in save'
| /home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/context.rb:731:in `block in each_method'
| /home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/context.rb:731:in `each'
| /home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/context.rb:731:in `each_method'
| /home/artkauf/poky/build/tmp/work/x86_64-linux/ruby-native/2.2.5-r0/ruby-2.2.5/lib/rdoc/store.rb:751:in `block in sav

I picked the '26' distro because that was what was available most easily. I didn't realize that it was untested with Yocto until Yocto complained. In any case, I had to reinstall on a new hard drive and switched to Fedora 24 and got past this.

Return to “SAMA5 Xplained”

Who is online

Users browsing this forum: Georgearera and 1 guest