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

Chris Mueller christoph.mueller at dfki.de
Fri Oct 19 17:50:24 CEST 2012


On 19.10.2012 16:36, Sylvain Joyeux wrote:
> On 10/19/2012 04:00 PM, Chris Mueller wrote:
>> Hio,
>>
>> Thomas has made some really good steps setting up an autoproj
>> environment for cross-compilation to arm-processors
>> via Virtual Box / QEMU that massively speed ups development and cross
>> compilation for our gumstix.
> As far as I understand, you don't really do cross compilation. You 
> compile the stuff in a qemu emulating your ARM target. Is that right ?
Exactly
>> 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)
>
>> 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.

Chris



More information about the Rock-dev mailing list