Dear Paul,
Indeed I confirm that "happy" provided by Debian buster/sid does not work
on my hardware (armv5tel Kirkwood Feroceon). Just tested now after removing
Ilias' deb package and reinstalling the previous one:
drakestail:/opt/bug_ghc_armel# apt remove happy
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
happy
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 2,598 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 100878 files and directories currently installed.)
Removing happy (1.19.9-6+armel0) ...
Processing triggers for man-db (2.7.6.1-2) ...
drakestail:/opt/bug_ghc_armel# apt clean
drakestail:/etc/apt/sources.list.d# apt install -t testing happy
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
haskell-doc
The following NEW packages will be installed:
happy
0 upgraded, 1 newly installed, 0 to remove and 860 not upgraded.
Need to get 528 kB of archives.
After this operation, 2,582 kB of additional disk space will be used.
Get:1 http://ftp.it.debian.org/debian buster/main armel happy armel
1.19.9-6 [528 kB]
Fetched 528 kB in 0s (2,650 kB/s)
Selecting previously unselected package happy.
(Reading database ... 100743 files and directories currently installed.)
Preparing to unpack .../happy_1.19.9-6_armel.deb ...
Unpacking happy (1.19.9-6) ...
Setting up happy (1.19.9-6) ...
Processing triggers for man-db (2.7.6.1-2) ...
drakestail:/etc/apt/sources.list.d# gdb -q -ex 'b *(0x1ab0ac)' -ex
'run' -ex 'x/i $pc' -ex 'quit' --args happy example.y
Reading symbols from happy...(no debugging symbols found)...done.
Breakpoint 1 at 0x1ab0ac
Starting program: /usr/bin/happy example.y
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/arm-linux-gnueabi/libthread_db.so.1".
Program received signal SIGILL, Illegal instruction.
0x001addc4 in ?? ()
=> 0x1addc4: uxth r1, r2
A debugging session is active.
Inferior 1 [process 13711] will be killed.
Quit anyway? (y or n) y
Let me know if I can help more.
Best,
Emanuele
On Sun, Jun 16, 2019 at 9:48 PM Paul Gevers <[email protected]> wrote:
> Hi Emanuele,
>
> On 16-06-2019 20:25, Emanuele Olivetti wrote:
> > I've just followed your instructions, downloaded and installed the
> > current happy (and also ghc and the other packages) in the usual way:
> >
> > dpkg -i <pkg>
> > apt install -f
> >
> > then tested the example files as indicated:
> >
> > drakestail:/opt/bug_ghc_armel# gdb -q -ex 'b *(0x1ab0ac)' -ex 'run'
> > -ex 'x/i $pc' -ex 'quit' --args happy example.y
> > Reading symbols from happy...(no debugging symbols found)...done.
> > Breakpoint 1 at 0x1ab0ac
> > Starting program: /bin/happy example.y
> > [Thread debugging using libthread_db enabled]
> > Using host libthread_db library
> > "/lib/arm-linux-gnueabi/libthread_db.so.1".
> > [Inferior 1 (process 10654) exited normally]
> > No registers.
> >
> > Everything works fine!
>
> Can you confirm that it *didn't* work with the version in sid/buster on
> your system?
>
> Paul
>
>