Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1016562: fp-compiler-3.2.0: Fails to setup during install due to "Invalid floating point operation"

142 views
Skip to first unread message

Graham Ollis

unread,
Aug 2, 2022, 6:20:04 PM8/2/22
to
Package: fp-compiler-3.2.0
Version: 3.2.0+dfsg-12
Severity: important
X-Debbugs-Cc: plic...@cpan.org

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

* What led up to the situation?

I was trying to install the Free Pascal Compiler on Debian 11 running under VMware Fusion on an Mac
with an M2 processor. I tried to install using `sudo apt-get install fpc`. The error that I got
during install was:

sandy% sudo apt-get install fpc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
fp-compiler-3.2.0 fpc-3.2.0
Suggested packages:
lazarus
The following NEW packages will be installed:
fp-compiler-3.2.0 fpc fpc-3.2.0
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,979 kB of archives.
After this operation, 12.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package fp-compiler-3.2.0:arm64.
(Reading database ... 274284 files and directories currently installed.)
Preparing to unpack .../fp-compiler-3.2.0_3.2.0+dfsg-12_arm64.deb ...
Unpacking fp-compiler-3.2.0:arm64 (3.2.0+dfsg-12) ...
Selecting previously unselected package fpc-3.2.0.
Preparing to unpack .../fpc-3.2.0_3.2.0+dfsg-12_all.deb ...
Unpacking fpc-3.2.0 (3.2.0+dfsg-12) ...
Selecting previously unselected package fpc.
Preparing to unpack .../fpc_3.2.0+dfsg-12_all.deb ...
Unpacking fpc (3.2.0+dfsg-12) ...
Setting up fp-compiler-3.2.0:arm64 (3.2.0+dfsg-12) ...
An unhandled exception occurred at $0000000000470960:
EInvalidOp: Invalid floating point operation
$0000000000470960
$0000000000472FC0
$0000000000472F04
$0000000000470FA8
$0000000000400EEC
$0000000000402ACC
$0000FFFF9ACA0218
$0000000000400668

dpkg: error processing package fp-compiler-3.2.0:arm64 (--configure):
installed fp-compiler-3.2.0:arm64 package post-installation script subprocess returned error exit status 217
dpkg: dependency problems prevent configuration of fpc-3.2.0:
fpc-3.2.0 depends on fp-compiler-3.2.0 (>= 3.2.0+dfsg-12); however:
Package fp-compiler-3.2.0:arm64 is not configured yet.

dpkg: error processing package fpc-3.2.0 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of fpc:
fpc depends on fpc-3.2.0 (= 3.2.0+dfsg-12); however:
Package fpc-3.2.0 is not configured yet.

dpkg: error processing package fpc (--configure):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.9.4-2) ...
Errors were encountered while processing:
fp-compiler-3.2.0:arm64
fpc-3.2.0
fpc
E: Sub-process /usr/bin/dpkg returned an error code (1)


* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: 11.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: arm64 (aarch64)

Kernel: Linux 5.10.0-16-arm64 (SMP w/2 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages fp-compiler-3.2.0 depends on:
ii binutils 2.35.2-2
ii debconf [debconf-2.0] 1.5.77
ii fp-units-rtl-3.2.0 3.2.0+dfsg-12
ii libc6 2.31-13+deb11u3

Versions of packages fp-compiler-3.2.0 recommends:
ii fp-utils-3.2.0 3.2.0+dfsg-12

Versions of packages fp-compiler-3.2.0 suggests:
ii fp-docs-3.2.0 3.2.0+dfsg-12

-- debconf information:
fp-compiler/rename_cfg: true
fp-compiler/windres-select: Select manually
fp-compiler/windres:

Abou Al Montacir

unread,
Nov 6, 2022, 1:31:22 PM11/6/22
to
Hi Graham,

I was trying to install the Free Pascal Compiler on Debian 11 running under VMware Fusion on an Mac
with an M2 processor.
Can you please tell if you can reproduce using qemu or at least provide instruction ho to run VMware for that purpose?
Can you confirm this is an ARM Cortex-M2 processor? Do that have an FPU?
-- 
Cheers,
Abou Al Montacir
signature.asc

William Di Luigi

unread,
Dec 18, 2022, 10:20:04 AM12/18/22
to
Hello, it's easy to reproduce this using Docker, no need for VMWare or qemu or any VM for that matter.

I am using Docker (from a M1 macbook) creating a clean container every time for reproducibility, and I am testing these different scenarios:

1) Buster: doesn't work, tries to install version 3.0.4:
$ docker run -it --rm debian:buster sh -c 'apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y fp-compiler'

2) Bullseye: doesn't work, tries to install version 3.2.0:
$ docker run -it --rm debian:bullseye sh -c 'apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y fp-compiler'

3) Bookworm: it works! installs version 3.2.2:
$ docker run -it --rm debian:bookworm sh -c 'apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y fp-compiler'

Let me know if you need more information, I would be happy to help get this fixed.

Best,
William

Abou Al Montacir

unread,
Jan 8, 2023, 6:30:04 AM1/8/23
to
Hi William

On Sun, 2022-12-18 at 16:12 +0100, William Di Luigi wrote:
Hello, it's easy to reproduce this using Docker, no need for VMWare or qemu or any VM for that matter.

I am using Docker (from a M1 macbook)
I trust it is as easy as that if you have the right HW, but I don't.
I need to setup a VM to debug that.
However as the issue does not affect Bookworm, I'd say I'll just upload latest FPC version to backports, and will not bother to debug this.
It is probably a bug in code generator and this will be very hard to find at Debian level, while upstream will not like to debug an old version.
signature.asc
0 new messages