[Tails-dev] rake build fails - NoMethodError: undefined meth…

Delete this message

Reply to this message
Autor: Tymek Majewski
Data:  
Para: Tails-dev@boum.org
Assunto: [Tails-dev] rake build fails - NoMethodError: undefined method `[]' for nil:NilClass
Hi,

I'm trying to follow https://tails.boum.org/contribute/build/
but I haven't managed to get far as `make rake` fails quickly.

I'm not from a rake background so it would take me aaages to figure this one out on my own and I hope you can help.

Full output:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tmaj@myhost:~/dev/tails$ rake build && rake vm:halt
rake aborted!
NoMethodError: undefined method `[]' for nil:NilClass
/home/tmaj/dev/tails/Rakefile:152:in `vm_state'
/home/tmaj/dev/tails/Rakefile:183:in `enough_free_memory_for_ram_build?'
/home/tmaj/dev/tails/Rakefile:210:in `block in <top (required)>'
Tasks: TOP => build => parse_build_options
(See full trace by running task with --trace)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tmaj@myhost:~/dev/tails$ rake build --trace
** Invoke build (first_time)
** Invoke parse_build_options (first_time)
** Execute parse_build_options
rake aborted!
NoMethodError: undefined method `[]' for nil:NilClass
/home/tmaj/dev/tails/Rakefile:152:in `vm_state'
/home/tmaj/dev/tails/Rakefile:183:in `enough_free_memory_for_ram_build?'
/home/tmaj/dev/tails/Rakefile:210:in `block in <top (required)>'
/usr/lib/ruby/vendor_ruby/rake/task.rb:271:in `block in execute'
/usr/lib/ruby/vendor_ruby/rake/task.rb:271:in `each'
/usr/lib/ruby/vendor_ruby/rake/task.rb:271:in `execute'
/usr/lib/ruby/vendor_ruby/rake/task.rb:213:in `block in invoke_with_call_chain'
/usr/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
/usr/lib/ruby/vendor_ruby/rake/task.rb:193:in `invoke_with_call_chain'
/usr/lib/ruby/vendor_ruby/rake/task.rb:237:in `block in invoke_prerequisites'
/usr/lib/ruby/vendor_ruby/rake/task.rb:235:in `each'
/usr/lib/ruby/vendor_ruby/rake/task.rb:235:in `invoke_prerequisites'
/usr/lib/ruby/vendor_ruby/rake/task.rb:212:in `block in invoke_with_call_chain'
/usr/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
/usr/lib/ruby/vendor_ruby/rake/task.rb:193:in `invoke_with_call_chain'
/usr/lib/ruby/vendor_ruby/rake/task.rb:182:in `invoke'
/usr/lib/ruby/vendor_ruby/rake/application.rb:160:in `invoke_task'
/usr/lib/ruby/vendor_ruby/rake/application.rb:116:in `block (2 levels) in top_level'
/usr/lib/ruby/vendor_ruby/rake/application.rb:116:in `each'
/usr/lib/ruby/vendor_ruby/rake/application.rb:116:in `block in top_level'
/usr/lib/ruby/vendor_ruby/rake/application.rb:125:in `run_with_threads'
/usr/lib/ruby/vendor_ruby/rake/application.rb:110:in `top_level'
/usr/lib/ruby/vendor_ruby/rake/application.rb:83:in `block in run'
/usr/lib/ruby/vendor_ruby/rake/application.rb:186:in `standard_exception_handling'
/usr/lib/ruby/vendor_ruby/rake/application.rb:80:in `run'
/usr/bin/rake:27:in `<main>'
Tasks: TOP => build => parse_build_options
tmaj@myhost:~/dev/tails$
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thanks
Tymek