foss-for-synopsys-dwc-arc-processors / toolchain

Repository containing releases of prebuilt GNU toolchains for DesignWare ARC Processors from Synopsys (available from "releases" link below).
http://www.synopsys.com/IP/ProcessorIP/ARCProcessors/Pages/default.aspx
GNU General Public License v3.0
91 stars 48 forks source link

[arc64] LMBench scripts/config-run bailing : msleep segfaulting #377

Closed vineetgarc closed 3 years ago

vineetgarc commented 3 years ago

LMbench configurator script config-run is failing

# cd /lmbench/bin/
# ../scripts/config-run 
...
Hang on, we are calculating your timing granularity.
../scripts/config-run: line 135: ../bin//msleep: not found
...
# /lmbench/bin/arc64/msleep 
potentially unexpected fatal signal 11.
Path: /lmbench/bin/arc64/msleep
CPU: 0 PID: 132 Comm: msleep Not tainted 5.6.0-00224-g8e1b159f529e #36
Invalid Read @ 0x00000000 by insn @ 0x2005550e
  @off 0x3350e in [/lib/libc-2.32.so]  VMA: 0x20022000 to 0x20127000
ECR: 0x00050100 EFA: 0x00000000 ERET: 0x2005550e
STAT32: 0x80080a82 [IE U     ]   BTA: 0x20055474
 SP: 0x5ffffba8  FP: 0x00000000 BLK: 0x10438
r00: 0x00000000 r01: 0x00000000 r02: 0x0000000a
r03: 0x200fea70 r04: 0x2012d218 r05: 0x2000d890
r06: 0xffffffffffffffe0 r07: 0xffffffffffffffff r08: 0x2012da50
r09: 0xfffffffffffffff0 r10: 0x20012c64 r11: 0x20021190
r12: 0x00010424 r13: 0x5fffff43 r14: 0x00010514
r15: 0x00000000 r16: 0x00000000 r17: 0x00000000
r18: 0x000cc670 r19: 0x00000000 r20: 0x00000000
r21: 0x00000000 r22: 0xffffffff r23: 0x000cfe70
r24: 0x00000000 r25: 0x00000000
Segmentation fault

This is seen on both FPGA and Qemu thus looks like a hrdware issue

vineetgarc commented 3 years ago

False alarm, snafu in recent buildroot changes to scripts/os

-       echo "export OS=${ARCH}" >  $(TARGET_DIR)/lmbench/scripts/os
+       echo "echo ${ARCH}" >  $(TARGET_DIR)/lmbench/scripts/os