Jussi Hakala wrote:
> The qemu you're using does not handle binaries your toolchain is
> producing. You could try the cvs version of qemu available in the
> development snapshot of cputransp package in [1].
>
> Regards,
>
>   Jussi
>
>
> [1] http://scratchbox.org/~jhakala/unofficial/
>
> Mickael Istria wrote:
>> Hello,
>>
>> I succeded to install toolchain and Scratchbox tools for codesourcery
>> arm-2005q3-linux-gnueabi without any problem following instrucion that
>> we can find on scratchbox wiki.
>>
>> I tried exactly the same thing with arm-2007q1, and I got warnings at
>> compilation time, and segfault at execution time. (I already modified
>> sb-toolchain-extras to support gcc-4.1-debian, so it may not be the
>> problem)
>>
>>
>> The massage that gcc always displays me (even when I am trying to
>> build Scratchbox tools for this target via sb-toolchain-extras/make)
>> is :
>>
>> cc1: warning: include location "/usr/include" is unsafe for
>> cross-compilation
>> /scratchbox/compilers/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/bin/ld:
>>
>> warning: library search path "/usr/local/lib" is unsafe for
>> cross-compilation
>> /scratchbox/compilers/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/bin/ld:
>>
>> warning: library search path "/lib" is unsafe for cross-compilation
>> /scratchbox/compilers/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/bin/ld:
>>
>> warning: library search path "/usr/lib" is unsafe for cross-compilation
>>
>> At execution, error is a simple segfault: qemu: uncaught target signal
>> 11 (Segmentation fault) - exiting
>> and this is the strace where the segfault is launched when I run a C
>> Hello World
>> [pid 23954] rt_sigaction(SIGRT_30, {0x804f840, ~[],
>> SA_RESTORER|SA_SIGINFO, 0x8085c70}, NULL, 8) = 0
>> [pid 23954] rt_sigaction(SIGRT_31, {0x804f840, ~[],
>> SA_RESTORER|SA_SIGINFO, 0x8085c70}, NULL, 8) = 0
>> [pid 23954] rt_sigaction(SIGRT_32, {0x804f840, ~[],
>> SA_RESTORER|SA_SIGINFO, 0x8085c70}, NULL, 8) = 0
>> [pid 23954] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
>> [pid 23954] rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0
>> [pid 23954] write(2, "qemu: uncaught target signal 11 "..., 63qemu:
>> uncaught target signal 11 (Segmentation fault) - exiting
>> ) = 63
>> [pid 23954] exit_group(-11)             = ?
>>
>>
>> Does anyone have any clue to solve this problème?
>>
>> Mickael
>>
>> _______________________________________________
>> Scratchbox-users mailing list
>> Scratchbox-users@lists.scratchbox.org
>> http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users
>
> _______________________________________________
> Scratchbox-users mailing list
> Scratchbox-users@lists.scratchbox.org
> http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Hello,

Actually, I had this problem because I was using the simple EABI
toolchain (no GNU/Linux...). I am sorry for polluting the mailing list
for such a mistake.

So I succeeded to install
arm-2007q1-21-arm-none-linux-gnueabi-i686-pc-linux-gnu (the real
GNU.Linux one, release 21).
But I now have a problem with Qemu as you mentioned (qemu: uncaught
target signal 6).  My binaries work on target. I tried with Qemu-CVS
from your (very useful) packages page, but I have the same error.

I tried with arm-2007q1-10 from tarball I found on your page, but I have
the same error...

Is there another version of Qemu that could fit to arm-gcc-4.2 ???
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to