Hi, I have tried compiling a backport of 6.12.0.199+dfsg-3 for bookworm
using the following:
apt source mono-devel/unstable
cd mono-6.12.0.199+dfsg/
dch --bpo
dpkg-buildpackage --build=binary --unsigned-changes

But after a while the problem seems to be still present (relevant build log
at the end).
Am I doing something wrong?

I have noticed that some places inside debian/rules seem to replace
MONO_ENV_OPTIONS instead of appending values; is there a way I can print
the var during the build to check it's set correctly?

Thanks for your help,
Luca

-- build log snippet --
make[7]: *** [build/profiles/build.make:134:
build/deps/basic-profile-check.exe] Error 127
*** The runtime 'mono' doesn't appear to be usable.
*** Trying the 'monolite-linux/1A5E0066-58DC-428A-B21C-0AD6CDAE2789'
directory.
 r4_mul R65 <- R59 R62
* Assertion: should not be reached at decompose.c:1894


=================================================================
Native Crash Reporting
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

=================================================================
Native stacktrace:
=================================================================
(No frames)


=================================================================
Telemetry Dumper:
=================================================================
Pkilling 0x1114776608x from 0x1082343456x
Entering thread summarizer pause from 0x1082343456x
Finished thread summarizer pause from 0x1082343456x.
Failed to create breadcrumb file (null)/crash_hash_0x45360ce31

Waiting for dumping threads to resume

=================================================================
External Debugger Dump:
=================================================================
mono_gdb_render_native_backtraces not supported on this platform, unable to
find gdb or lldb

=================================================================
Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x409906b0):0x409906a0  9e 00 01
eb 04 10 a0 e1 0a 20 a0 e1 00 00 00 ef  ......... ......
0x409906b0  01 0a 70 e3 00 00 60 82 00 00 a0 93 de ff ff ea
 ..p...`.........
0x409906c0  08 00 a0 e1 5d e8 ff eb d4 ff ff ea 08 00 a0 e1
 ....]...........
0x409906d0  1b e8 ff eb be ff ff ea 88 46 02 eb a0 7a 0f 00
 .........F...z..

=================================================================
Managed Stacktrace:
=================================================================
 at <unknown> <0xffffffff>
 at System.Buffers.TlsOverPerCoreLockedStacksArrayPool`1:Return <0x0021b>
 at System.Text.ValueUtf8Converter:Dispose <0x00053>
 at Sys:Stat <0x0015b>
 at System.IO.FileSystem:FileExists <0x0004b>
 at System.IO.FileSystem:FileExists <0x00047>
 at System.IO.File:Exists <0x00173>
 at Mono.CSharp.StaticLoader:LoadAssemblyFile <0x0016b>
 at Mono.CSharp.AssemblyReferencesLoader`1:LoadReferencesCore <0x00177>
 at Mono.CSharp.StaticLoader:LoadReferences <0x00057>
 at Mono.CSharp.Driver:Compile <0x0074b>
 at Mono.CSharp.Driver:Main <0x001a7>
 at <Module>:runtime_invoke_int_object <0x00123>
=================================================================
Aborted (core dumped)
make[9]: *** [build/profiles/build.make:134:
build/deps/basic-profile-check.exe] Error 134


Il giorno dom 2 mar 2025 alle ore 09:57 Debian Bug Tracking System <
ow...@bugs.debian.org> ha scritto:

> This is an automatic notification regarding your Bug report
> which was filed against the mono-runtime package:
>
> #1098958: mono-runtime deb package fails to install on armel
>
> It has been closed by Debian FTP Masters <ftpmas...@ftp-master.debian.org>
> (reply to Antoine Le Gonidec <deb...@dotslashplay.it>).
>
> Their explanation is attached below along with your original report.
> If this explanation is unsatisfactory and you have not received a
> better one in a separate message then please contact Debian FTP Masters <
> ftpmas...@ftp-master.debian.org> (reply to Antoine Le Gonidec <
> deb...@dotslashplay.it>) by
> replying to this email.
>
>
> --
> 1098958: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098958
> Debian Bug Tracking System
> Contact ow...@bugs.debian.org with problems
>
>
>
> ---------- Forwarded message ----------
> From: Debian FTP Masters <ftpmas...@ftp-master.debian.org>
> To: 1098958-cl...@bugs.debian.org
> Cc:
> Bcc:
> Date: Sun, 02 Mar 2025 08:52:35 +0000
> Subject: Bug#1098958: fixed in mono 6.12.0.199+dfsg-3
> Source: mono
> Source-Version: 6.12.0.199+dfsg-3
> Done: Antoine Le Gonidec <deb...@dotslashplay.it>
>
> We believe that the bug you reported is fixed in the latest version of
> mono, which is due to be installed in the Debian FTP archive.
>
> A summary of the changes between this version and the previous one is
> attached.
>
> Thank you for reporting the bug, which will now be closed.  If you
> have further comments please address them to 1098...@bugs.debian.org,
> and the maintainer will reopen the bug report if appropriate.
>
> Debian distribution maintenance software
> pp.
> Antoine Le Gonidec <deb...@dotslashplay.it> (supplier of updated mono
> package)
>
> (This message was generated automatically at their request; if you
> believe that there is a problem with it please contact the archive
> administrators by mailing ftpmas...@ftp-master.debian.org)
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Format: 1.8
> Date: Wed, 26 Feb 2025 21:51:36 +0100
> Source: mono
> Architecture: source
> Version: 6.12.0.199+dfsg-3
> Distribution: unstable
> Urgency: medium
> Maintainer: Antoine Le Gonidec <deb...@dotslashplay.it>
> Changed-By: Antoine Le Gonidec <deb...@dotslashplay.it>
> Closes: 819402 961942 1071487 1098958
> Changes:
>  mono (6.12.0.199+dfsg-3) unstable; urgency=medium
>  .
>    * Drop the generation of mono-source.
>      (Closes: #961942)
>    * Disable float32 optimization on armel.
>      (Closes: #1098958)
>    * mono-config: let os=linux include other glibc platforms.
>      (Closes: #819402)
>    * Fix problems with the gacutil.1 man page.
>      (Closes: #1071487)
>    * Set Multi-Arch for several packages.
> Checksums-Sha1:
>  b0fe6da582a49ed619e3bb8c957a345e8553b9c5 19477 mono_6.12.0.199+dfsg-3.dsc
>  b140ac1fd5676e4120d195222345f4421dcef420 155288
> mono_6.12.0.199+dfsg-3.debian.tar.xz
>  401e97dfbde078d986505a215ae1544b48bf6ce2 70810
> mono_6.12.0.199+dfsg-3_amd64.buildinfo
> Checksums-Sha256:
>  9eea4b3c4f3203e891ba25f240d0d55b763aab1dbf519ba4855f3931eba8d689 19477
> mono_6.12.0.199+dfsg-3.dsc
>  845f65fd895603035501de021ad405743d6de3b8d8d17c23d1f1748cf95078a6 155288
> mono_6.12.0.199+dfsg-3.debian.tar.xz
>  4f74b916d527100615f4d042f479bd232cb70503ac1da6d69aa8e80d116db7b0 70810
> mono_6.12.0.199+dfsg-3_amd64.buildinfo
> Files:
>  9d73b90a6875c8b350f986cbc728b9b2 19477 cli-mono optional
> mono_6.12.0.199+dfsg-3.dsc
>  0119e0c5fe065398c3ce88df763ab622 155288 cli-mono optional
> mono_6.12.0.199+dfsg-3.debian.tar.xz
>  af1d1042e92d9470cef338f35b201978 70810 cli-mono optional
> mono_6.12.0.199+dfsg-3_amd64.buildinfo
>
>
> -----BEGIN PGP SIGNATURE-----
>
> iQIzBAEBCgAdFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmfEDWQACgkQM2L3AxpJ
> kuF0WRAAlZZU8guRPSmK5lTqV6W1ZfedPBk+GXhaMkFV6Rrq/OYXAOkLHyzO0uzY
> O6RwW3OzZSmAGAgoCJ29deyFfSSdQ4zlWfUQw3gwtnPI17T5eajqVk0F/NeTC3Cm
> GDxo8DrZXROXDIGY2X51RaEZyQ91Fe5zpvUkRVlMfmYH9uKIKVhpkjPUKyCkUikV
> t12p72XTed8J2FNr62S6ObROicMqadW22B1PvgkmlWJ/a8m0xfeEHH3HLFohZFb3
> iMD1q2SqG5XC9nXBoPqTzEupD8On02fCad5zFzU+vAUeon2gDbboh6l/9CUNZEIo
> 9MnQP2MGmmkD8FzvffyCWi5OESwownz3qyD9qARH88CTjYnW5exyBojihpPJ3W/d
> 4CkergZdW0I3paq4+HzhtRoU4lr4twQ1ztSvQjHnglrstQS258AXFlWlUZbrs1Ag
> NdkqprLtLhCD9yPelR8ZxEEnJgQ0W/zCmE27nSGSLEyCNDz13FMGAvSmoDOPy1H1
> EoYWYoAzFHsCKBIGXpBBeKw6+HoG6B7g37Dp/1ooxNLYZa12+XA/O5rnJAA7AaUx
> +bLveunWNWFt51cpbb4sJFnp/kizLZtJedX8bIXpgFNav9LRXL3y4vQ21oQq2noH
> uTQ8K3zly9ObfwwDaE1ssuB4nLc8v+2XxYCbk23dep5r0Ts4Mzw=
> =TzZv
> -----END PGP SIGNATURE-----
>
>
>
>
> ---------- Forwarded message ----------
> From: Luca Leonardo Scorcia <l.scor...@gmail.com>
> To: Debian Bug Tracking System <sub...@bugs.debian.org>
> Cc:
> Bcc:
> Date: Wed, 26 Feb 2025 18:38:10 +0100
> Subject: mono-runtime deb package fails to install on armel
> Package: mono-runtime
> Version: 6.8.0.105+dfsg-3.3
> Severity: serious
> Tags: ftbfs newcomer upstream
> Justification: fails to build from source (but built successfully in the
> past)
> X-Debbugs-Cc: l.scor...@gmail.com
>
> Dear Maintainer,
>
>    * What led up to the situation?
>
> I'm trying to install mono-runtime on debian bookworm from deb package on
> an armel
> NAS device (NSA325v2, architecture armv5tel, soft-float). The install
> fails due to
> the following error during package postinstall:
>
> r4_conv_to_r8 R47 <- R44
> * Assertion: should not be reached at decompose.c:1894
>
>    * What exactly did you do (or not do) that was effective (or
>      ineffective)?
>
> According to my investigation, there's a long standing bug in mono that
> affects
> the armel arch:
>
> https://github.com/mono/mono/issues/12537
>
> I have reproduced the issue via docker container on a x64 VM:
>
> https://gitlab.winehq.org/mono/mono/-/issues/7
>
> and I verified that the workaround suggested in the GitHub issue actually
> fixes the
> problem. The workaround is to disable the float32 optimization during the
> package build:
>
> cd mono-6.12.0.199
> ./configure --prefix=/opt/mono
> MONO_ENV_OPTIONS='-O=-float32' make
> make install
>
> produces a working mono environment in /opt/mono.
>
>    * What was the outcome of this action?
>
> This flag disables an optimization regarding floating point numbers that
> is buggy on soft-float devices. Since debian is the one of the very few
> distributions that
> still supports this device, it would be beneficial to exclude this
> known-non-working
> optimization for the armel architecture.
>
>    * What outcome did you expect instead?
>
> It would be nice if the actual upstream bug could be fixed, but that would
> require
> some heavyweight investigation which is better left to the upstream issue.
> I'd be happy
> to just be able to install mono from the debian package.
>
>
> -- System Information:
> Debian Release: 12.9
>   APT prefers stable
>   APT policy: (700, 'stable'), (500, 'stable-updates'), (500,
> 'stable-security')
> Architecture: armel (armv5tel)
>
> Kernel: Linux 5.15.5-kirkwood-tld-1 (UP; PREEMPT)
> Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
>
> Versions of packages mono-runtime depends on:
> ii  libc6              2.36-9+deb12u9
> pn  mono-runtime-sgen  <none>
>
> Versions of packages mono-runtime recommends:
> ii  binfmt-support  2.2.2-2
>
> mono-runtime suggests no packages.
>


-- 
Luca Leonardo Scorcia
l.scor...@gmail.com

Reply via email to