Bug#915333: git-annex: Illegal Instruction on armel (Fujitsu Q700 like QNAP TS-21x/TS-22x)
Darshaka Pathirana
dpat at syn-net.org
Sun Apr 7 13:01:33 BST 2019
Hey,
On Mon, 11 Mar 2019 12:05:55 +0200 Adrian Bunk <bunk at debian.org> wrote:
> On Thu, Jan 31, 2019 at 08:12:17PM +0100, Bernhard Übelacker wrote:
> > Hello Everyone,
> > I own a qnap ts-119pII with a similar cpu.
> >
> > See attached file with several debugging attempts.
I took some time and wanted to reproduce and test this issue.
> > If I read [1] right, then the UXTH instruction is just supported
> > on ARMv6 or later.
>
> Looking at the code, the bug seems to be in
> https://sources.debian.org/src/ghc/8.4.4+dfsg1-2/debian/patches/llvm-arm-unknown-linux-gnueabi.patch/
>
> ARM1136JF-S is ARM11, which is ARMv6.
> arm9e would be correct here instead of arm1136jf-s.
>
> Due to the static-only nature of the ghc ecosystem the fix would then
> require a complete rebuild of all Haskell packages on armel, but with
> the buildds otherwise mostly idle now this should be finished within
> 2-3 days.
First I tried to reproduce the crash on one of our porterboxes[4]
`amdahl` (where I could not reproduce the bug, git-annex runs just
fine), but I only much later figured out that it run armv8l:
[4] https://db.debian.org/machines.cgi?host=amdahl
dpat at amdahl ~ % export sessionid=913555
dpat at amdahl ~ % schroot -b -c sid_armel-dchroot -n $sessionid
I: 00check: Untarring chroot environment. This might take a minute or two.
I: 99porterbox-extra-sources: o To install build dependencies run
I: 99porterbox-extra-sources: dd-schroot-cmd -c 915333 apt-get update
I: 99porterbox-extra-sources: followed by build-dep/install as appropriate in the host system.
I: 99porterbox-extra-sources: o If you started this session with schroot -b, please do not forget to run
I: 99porterbox-extra-sources: schroot --end-session -c 915333
I: 99porterbox-extra-sources: when you no longer need this environment.
915333
schroot -b -c sid_armel-dchroot -n $sessionid 9.08s user 5.17s system 126% cpu 11.293 total
(sid_armel-dchroot)dpat at amdahl ~ % uname -a
Linux amdahl 4.9.0-8-arm64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) armv8l GNU/Linux
I also tried on `abel` but its a armv7l.
I then wanted to setup a qemu-arm environment but I am stuck finding out which
machine/cpu option would be correct. I found [1] and [2] which states that the CPU
"Feroceon 88FR131 rev 1 (v5l)" is a actually a Marvell Kirkwood 88F6281.
(Ok, [3] says that qnap ts-11x runs on Kirkwood system-on-chip (SoC) from Marvell).
[1] https://www.chainsawonatireswing.com/2012/01/07/find-out-which-cpu-your-synology-diskstation-uses/
[2] https://www.7-cpu.com/cpu/Kirkwood.html
[3] https://www.debian.org/releases/stable/armel/ch02s01.html.en (see 2.1.4)
So, is it possible to emulate a armv5 and if yes, how? Thanks.
Regards from the Debian BSP201904, Salzburg,
- Darsha
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-maintainers/attachments/20190407/d7a2ba54/attachment.sig>
More information about the Pkg-haskell-maintainers
mailing list