[Buildroot] Analysis of build failures
will.newton at gmail.com
Mon Nov 11 10:25:27 UTC 2013
On Mon, Nov 11, 2013 at 10:17 AM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Dear Will Newton,
> On Mon, 11 Nov 2013 10:01:17 +0000, Will Newton wrote:
>> >> arm | valgrind-3.8.1 | NOK | http://autobuild.buildroot.net/results/f174541ac06aeeac82b8399686a8d4371532760d/
>> > /tmp/cceJNtCh.s: Assembler messages:
>> > /tmp/cceJNtCh.s:200: Error: r15 not allowed here -- `str r15,[r3,#+0]'
>> > make: *** [libcoregrind_arm_linux_a-m_libcassert.o] Error 1
>> > make: *** Waiting for unfinished jobs....
>> > Not sure what's going on here. Anyone to have a look?
>> valgrind uses inline assembly that is not Thumb compatible. It seems
>> it isn't expected to build it in Thumb mode (although it emulates
>> Thumb mode). It might be quite simple to fix but would need
>> coordination with upstream etc.
> Are you talking about Thumb, or Thumb-2 ? Because here the
> configuration has:
> so it's an ARMv7-A with -mthumb, so that means Thumb-2, right?
Yes, Thumb-2. Only those crazy microcontroller guys care about Thumb-1. ;-)
ARM ARM A8.8.203 is the relevant page, Thumb-2 cannot store pc/r15
directly. It should be possible to use a temporary to achieve the same
effect but it would need thorough testing.
More information about the buildroot