#1143982 maxima: fails to load draw on loong64 arch

Package:
maxima
Source:
maxima
Description:
Computer algebra system -- base system
Submitter:
Jerome BENOIT
Date:
2026-08-22 23:19:02 UTC
Severity:
normal
#1143982#5
Date:
2026-08-09 09:48:54 UTC
From:
To:
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

#1143982#10
Date:
2026-08-21 19:15:23 UTC
From:
To:
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.

#1143982#15
Date:
2026-08-22 23:17:30 UTC
From:
To:
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