I'm attempting to use buildroot to cross compile guile 3.0.2 for 32bit
arm (rpi3).

Note that guile runs fine with the jit disabled by
GUILE_JIT_THRESHOLD=-1

When guile starts, I get an "Illegal instruction".

# GUILE_JIT_LOG=3 guile
jit: allocated code arena, 0x74f43000-0x74f83000
jit: mcode: 0x74f43000,+44
jit: mcode: 0x74f43030,+56
jit: mcode: 0x74f43070,+8
jit: vcode: start=0xa2261c,+6 entry=+0
jit: Instruction first seen at vcode 0xa2261c: instrument-entry
jit: Instruction at vcode 0xa2261c: instrument-entry
jit: Instruction first seen at vcode 0xa22624: assert-nargs-ee
jit: Instruction at vcode 0xa22624: assert-nargs-ee
jit: Instruction first seen at vcode 0xa22628: subr-call
jit: Instruction at vcode 0xa22628: subr-call
jit: Instruction first seen at vcode 0xa2262c: handle-interrupts
jit: Instruction at vcode 0xa2262c: handle-interrupts
jit: Instruction first seen at vcode 0xa22630: return-values
jit: Instruction at vcode 0xa22630: return-values
jit: mcode: 0x74f43080,+200
jit: created /tmp/perf-287.map
jit: entering mcode: 0x74f43080
Illegal instruction

I got cross-gdb working. Here is another run, with the disassembled
code

jit: mcode: 0x74edb080,+200
jit: created /tmp/perf-252.map
jit: entering mcode: 0x74edb080

Dump of assembler code from 0x74edb080 to 0x74edb148:
 0x74edb080: 0d 1a subs r5, r1, r0
 0x74edb082: 20 2d cmp r5, #32
 0x74edb084: 40 f0 35 80 bne.w 0x74edb0f2

 0x74edb088: 4e f2 28 65 movw r5, #58920 ; 0xe628
 0x74edb08c: c0 f2 cb 05 movt r5, #203 ; 0xcb
 0x74edb090: 65 60 str r5, [r4, #4]
 0x74edb092: d0 f8 10 c0 ldr.w r12, [r0, #16]
 0x74edb096: 81 68 ldr r1, [r0, #8]
 0x74edb098: 02 68 ldr r2, [r0, #0]
 0x74edb09a: 60 46 mov r0, r12
 0x74edb09c: 00 f0 48 e8 blx 0x74edb130 ;  0x74edb130: 00 4f ldr r7,
[pc, #0] ; (0x74edb134)
 0x74edb132: bf 46 mov pc, r7 ; pc

Reply via email to