Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] maxima-ecl: heap error on i686
@ 2022-01-05  5:22 tornaria
  2022-01-06  0:55 ` tornaria
  2022-01-11 15:55 ` [ISSUE] [CLOSED] " leahneukirchen
  0 siblings, 2 replies; 3+ messages in thread
From: tornaria @ 2022-01-05  5:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1326 bytes --]

New issue by tornaria on void-packages repository

https://github.com/void-linux/void-packages/issues/34861

Description:
```
$ maxima -l ecll
;;; Loading #P"/usr/lib32/ecl-21.2.1/sb-bsd-sockets.fas"
;;; Loading #P"/usr/lib32/ecl-21.2.1/sockets.fas"
Maxima 5.45.1 https://maxima.sourceforge.io
using Lisp ECL 21.2.1
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 (ext:set-limit 'ext:heap-size 0)

0
(%i1) a : 10^(10^5) $ b : a^600 $ c : a^600 $
Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS
Aborted
```
The first line sets `heap-size` to `0` meaning "no limit" (according to https://common-lisp.net/project/ecl/static/manual/Memory-Management.html#ext_003astorage_002dexhausted).

The same using maxima as compiled by sage works. The main difference between the two is that void's template sets `nopie=yes` , and a quick experiment seems to indicate that compiling pie will fix the issue.

The `nopie=yes` was set by https://github.com/void-linux/void-packages/commit/21173c2ce02bc9588b2de678ed1838882a8d0f1a#diff-5183fc265b891109d6a8ee8c7d93cd88d15c063c44ba280ffc981e3098dcf636 but there is no explanation of the reason.  @leahneukirchen do you remember?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: maxima-ecl: heap error on i686
  2022-01-05  5:22 [ISSUE] maxima-ecl: heap error on i686 tornaria
@ 2022-01-06  0:55 ` tornaria
  2022-01-11 15:55 ` [ISSUE] [CLOSED] " leahneukirchen
  1 sibling, 0 replies; 3+ messages in thread
From: tornaria @ 2022-01-06  0:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1117 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/issues/34861#issuecomment-1006197772

Comment:
> The `nopie=yes` was set by [21173c2](https://github.com/void-linux/void-packages/commit/21173c2ce02bc9588b2de678ed1838882a8d0f1a) but there is no explanation of the reason. @leahneukirchen do you remember?

I think I've figured this out.

- Regarding `nopie=yes`:

The building of maxima-sbcl using `--enable-sbcl-exec` produces a
nopie executable regardless of compilation flags.

Then the post-install hook `06-strip-and-debug-pkgs` will complain
that there is a nopie executable unless `nopie=yes`.

Alternative: use `nopie_files` to indicate this binary is nopie so the
other binaries are built pie and the current issue is solved.


- Regarding `nostrip=yes`:

The maxima-sbcl binary includes sbcl.core in such a way that stripping
will remove it -- the resulting binary won't work.

Alternative: use `nostrip_files` to skip stripping this binary.
Except `nostrip_files` doesn't take a full path, and all the binaries
are called `maxima`...


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ISSUE] [CLOSED] maxima-ecl: heap error on i686
  2022-01-05  5:22 [ISSUE] maxima-ecl: heap error on i686 tornaria
  2022-01-06  0:55 ` tornaria
@ 2022-01-11 15:55 ` leahneukirchen
  1 sibling, 0 replies; 3+ messages in thread
From: leahneukirchen @ 2022-01-11 15:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

Closed issue by tornaria on void-packages repository

https://github.com/void-linux/void-packages/issues/34861

Description:
```
$ maxima -l ecll
;;; Loading #P"/usr/lib32/ecl-21.2.1/sb-bsd-sockets.fas"
;;; Loading #P"/usr/lib32/ecl-21.2.1/sockets.fas"
Maxima 5.45.1 https://maxima.sourceforge.io
using Lisp ECL 21.2.1
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 (ext:set-limit 'ext:heap-size 0)

0
(%i1) a : 10^(10^5) $ b : a^600 $ c : a^600 $
Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS
Aborted
```
The first line sets `heap-size` to `0` meaning "no limit" (according to https://common-lisp.net/project/ecl/static/manual/Memory-Management.html#ext_003astorage_002dexhausted).

The same using maxima as compiled by sage works. The main difference between the two is that void's template sets `nopie=yes` , and a quick experiment seems to indicate that compiling pie will fix the issue.

The `nopie=yes` was set by https://github.com/void-linux/void-packages/commit/21173c2ce02bc9588b2de678ed1838882a8d0f1a but there is no explanation of the reason.  @leahneukirchen do you remember?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-11 15:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-05  5:22 [ISSUE] maxima-ecl: heap error on i686 tornaria
2022-01-06  0:55 ` tornaria
2022-01-11 15:55 ` [ISSUE] [CLOSED] " leahneukirchen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).