Dear Maintainer, it appears that maxima fails to load the package draw on the loong64 architecture. The issue can be reproduce on the current long64 porterbox as follows. The command $ echo 'debugmode(true);load(draw);quit();' | maxima gives Maxima 5.49.0 https://maxima.sourceforge.io using Lisp GNU Common Lisp (GCL) GCL 2.7.1 git tag Version_2_7_2pre35 Distributed under the GNU Public License. See the file COPYING. Dedicated to the memory of William Schelter. The function bug_report() provides bug reporting information. (%i1) (%o1) true Unknown reloc type 110 loadfile: failed to load /usr/share/maxima/5.49.0/share/draw/draw.lisp -- an error. Entering the Maxima debugger. Enter ':h' for help. This issue does not occurs on other officially supported architectures. I suspect that this issue is related to the gcc-16 transition, but I cannot confirm since I am not familiar with the maxima building process. hth, Jerome
see: https://sourceforge.net/p/maxima/bugs/4731/ #4731 draw() does not work on new debian 13 installation I get an error message when attempting to use draw() and wxdraw() inside wxMaxima. I get errors like "cannot load draw.lisp." I discovered that if I install the GCC compiler on Debian that the bug went away. Apparently there is additional maxima code that needs to be compiled when certain functions are called by maxima.
After a cursory look I think the problem might be lack of R_LARCH_CALL36 handling in gcl27 in h/elf64_loongarch64_reloc.h cu Adrian
I have added more details to https://sourceforge.net/p/maxima/bugs/4731/ #4731 draw() does not work on new debian 13 installation.
Is this the place to discuss these issues? I am a user of maxima and wxmaxima, and I would like these software programs to continue running on new, clean, default debian installs. So I am trying to figure out a way to deal with debains policy of not installing gcc. == bug #1143982 == Can we make draw() part of Maxima's pre-compiled core instead of an optional package? Draw() seems like a core routine to me, not an optional package like ctensor. So do we already have or can we add a way to maxima's build system to 1) run gcl to create the c code for draw 2) compile and link this c code with gcc into the core or a shared library.
Hi, With GCC 16.2 the default code model on loong64 is -mcmodel=medium. You can get the old behavior (-mcmodel=normal) with: --------------------------------------------------------------------------- domibel@dragon:~$ rm -rf ~/.maxima/binary domibel@dragon:~$ maxima Maxima 5.49.0 https://maxima.sourceforge.io using Lisp GNU Common Lisp (GCL) GCL 2.7.1 git tag Version_2_7_2pre35 Distributed under the GNU Public License. See the file COPYING. Dedicated to the memory of William Schelter. The function bug_report() provides bug reporting information. (%i1) :lisp (setq compiler::*cc* (concatenate 'string compiler::*cc* " -mcmodel=normal")) /usr/bin/gcc -c -g -Werror=implicit-function-declaration -ffile-prefix-map=<CWD>=. -fstack-protector-strong -Wformat -Werror=format-security -fsigned-char -pipe -fcommon -fno-builtin-malloc -fno-builtin-free -fno-PIE -fno-pie -fno-PIC -fno-pic -Wall -Wno-empty-body -Wno-unused-but-set-variable -Wno-tautological-compare -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -mno-relax -Wa,-mno-relax -I/usr/include/tirpc -Wdate-time -D_FORTIFY_SOURCE=2 -mcmodel=normal (%i1) load(numericalio); (%o1) /usr/share/maxima/5.49.0/share/numericalio/numericalio.mac (%i2) load(draw); SIMPLE-WARNING: structure GR-OBJECT is changing (%o2) /usr/share/maxima/5.49.0/share/draw/draw.lisp (%i3) --------------------------------------------------------------------------- Best -Dominique
Hi, I attached a patch that fixes the relocation issue. This fixes the load(draw) issue in maxima, and a FTBFS with GCC 16 in fricas. Best -Dominique
We believe that the bug you reported is fixed in the latest version of
maxima, 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 1143982@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Camm Maguire <camm@debian.org> (supplier of updated maxima 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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 28 Sep 2026 20:13:25 -0400
Source: maxima
Architecture: source
Version: 5.49.0+dsfg-6
Distribution: unstable
Urgency: high
Maintainer: Camm Maguire <camm@debian.org>
Changed-By: Camm Maguire <camm@debian.org>
Closes: 1143473 1143982
Changes:
maxima (5.49.0+dsfg-6) unstable; urgency=high
.
* Bug fix: "maxima must recommend or depend on gcc as load maxima load
command depends on gcc", thanks to Jerome BENOIT (Closes: #1143473).
* Bug fix: "fails to load draw on loong64 arch", thanks to Jerome BENOIT
(Closes: #1143982). Build depend on latest gcl27
Checksums-Sha1:
8753809abfbda614b5853b27ea85c4df09ddce39 2192 maxima_5.49.0+dsfg-6.dsc
0c26542f3337b169da9bea60a1f2bbbef72f5ce3 2326316 maxima_5.49.0+dsfg-6.debian.tar.xz
8766f7f6e2918bf8b9788121727d9612f17d1d4f 8877 maxima_5.49.0+dsfg-6_source.buildinfo
Checksums-Sha256:
addd2dba0279781aaad2275867214100f02288a2c6d2287fabed4bec009e0e78 2192 maxima_5.49.0+dsfg-6.dsc
b5ba8a234bd2046d0f7bd058a8ce7c53c064cc52a4c24005baecdfa504e0fca2 2326316 maxima_5.49.0+dsfg-6.debian.tar.xz
53652e59533034fce8fe0ccf16d4842a8219fb7a59300ac6dc083b37448c65e1 8877 maxima_5.49.0+dsfg-6_source.buildinfo
Files:
ac7d508f7d0e5fa3225462539b6401f8 2192 math optional maxima_5.49.0+dsfg-6.dsc
3bf50135315640959d6337a0334e78b4 2326316 math optional maxima_5.49.0+dsfg-6.debian.tar.xz
6f3735b4d59053cf5ddd6e177438f027 8877 math optional maxima_5.49.0+dsfg-6_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEE/iFPNjaXdzJC6BbsuEXOUQ+bcU0FAmq8UpcACgkQuEXOUQ+b
cU3tAw//XvOSVByvJuClcgHmeERW0vQAlMkNZ6rSLNoste6aJ5ZyafS9PhyKRPH9
RsYVlCOL8yFAUJDpxjB7qwfTGdKubgKXeUdyinlnR8TCNNstyVNaHscEg7Tg1mrF
zU3fggMjMxdFGlZPIfGRMZZD4aJg3z77dubsTFGG/zArlc/UUZdV0UeWMntTwqed
dTkgHZGPRs/k97XXAOwYF428h4BWmwnvwmDFeajFYQPYdWoQAHg9f3PUL98u9zzO
Ns0QPwoaRTGOq773hGUzaXDHfj02rLe7KEBsq2faXx6MNLXraWHx078DMMmXUOGk
2I2gf1EwtH7DaygCKzpHyAmw0eK/CgxVZAxM+Qve3uPHJ6hj3dsrs+QxIOWJwfz9
OcbecL6iCryJu4EtGc7K3CA1B1phJ1athzyUpjSAbrfyNRsA5N+Oe0S+b6axOBqu
HM2PTQpbGrwEsqoJwgx0n1bo/TmGtHQDgi2HdPeyj8hA63MvTE67aTSiogR0iR37
jUm/oy3MF3tEKKhIH0SOAqemf0/I1X4fg4ks//k0SlXaRI3xXah0Oyrh6pV8DPIJ
JJeKRHvY3kPIA072zEu+s0Vof6bViq+g65boDndRb4MDz648ZZJR7gzfYxAfdwRA
6jQs9RQUSzBB0Um+SG9ND2hu8pK2vbv147UnALH9rMBNoRshhYY=
=X/6w
-----END PGP SIGNATURE-----