dbhi / qus

qemu-user-static (qus) and containers, non-invasive minimal working setups

Home Page:https://dbhi.github.io/qus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Execution hangs on arm (while success on real raspberry pi)

alexkutsan opened this issue · comments

Hi,
I am trying to compile bdwgc (for crystal lang on rpi).
But it hangs on make check step. I was trying the same on real raspberry pi (armv7), and it executes successfully.

My steps :

  1. Run aptman/qus
docker run --rm --privileged aptman/qus -s -- -p arm
  1. Build dockerfile :
FROM --platform=linux/arm/v5 debian

ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Kiev
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN apt update && apt-get install -y \
    automake build-essential git libbsd-dev libedit-dev \
    libevent-dev libgmp-dev libgmpxx4ldbl libpcre3-dev \
    libssl-dev libtool libxml2-dev libyaml-dev \
    lld llvm llvm-dev

RUN git clone -b v8.0.6 https://github.com/ivmai/bdwgc.git && \
    cd bdwgc && \
    git clone https://github.com/ivmai/libatomic_ops.git && \
    autoreconf -vif && \
    ./configure --enable-static --disable-shared && \
    make -j && \
    make check

It hangs forever on make check step (host system x86_64).

ng -o disclaim_weakmap_test tests/disclaim_weakmap_test.o  ./.libs/libgc.a -lpthread -ldl
make[2]: 'libstaticrootslib_test.la' is up to date.
make[2]: 'libstaticrootslib2_test.la' is up to date.
make[2]: Leaving directory '/bdwgc'
/usr/bin/make  check-TESTS
make[2]: Entering directory '/bdwgc'
make[3]: Entering directory '/bdwgc'
PASS: cordtest

Not sure if this is bug in https://github.com/ivmai/bdwgc.git or in quemu. But on raspberrypi it works (both on host and using the same dockerfile)

Reproduced also via github actions : https://github.com/alexkutsan/arm_actions/runs/5584613559?check_suite_focus=true