[Rock-dev] Cross-Compilation with Rock in QEMU

Sylvain Joyeux sylvain.joyeux at dfki.de
Fri Oct 19 17:56:15 CEST 2012


On 10/19/2012 05:50 PM, Chris Mueller wrote:
>>> I'm currently tackling a segmentation fault after an "autoproj build"
>>> command within QEMU where you might help
>>>
>>> Here are some observations:
>>>
>>> 1) cmake .. / make install on an individuell package runs smoothly.
>>>
>>> 2) The failure occurs rapidly using amake PACKAGE / autoproj build
>>> PACKAGE
>>>
>>> 3) I couldn't load and run the core file via gdb because gdb complains
>>> about an unknown file format for the core.
>> Try to run the ruby binary under gdb instead:
>>
>>    gdb -args /usr/bin/ruby1.9.1 $GEM_HOME/bin/autoproj build
> The process terminated with SIGSEGV. Unfortanetely, i've an empty BT
> stack (probably i have no debug symbols for ruby, i guess)
apt-get install ruby1.9.1-dbg or something like that.
>>> After stepping through the source code I have the conclusion this error
>>> could eventually arise due to some multi-threading
>>> issues,
>> That does not sound completely impossible. Can you try to replace the
>> begin..end block at lib/autobuild/config.rb:285 by the following code
>> ? It will turn multithreading off completely ...
>>
>>          phases.each do |phase|
>>              Rake::Task["#{buildname}-#{phase}"].invoke
>>          end
>>
> With this change, autoproj/autobuild works nicely without a problem on
> my current qemu bootstrap.
OK, then. I'll need to make the feature optional and disable it on ARM.

Sylvain


More information about the Rock-dev mailing list