Greetings, and thanks so much!  Sorry I missed these earlier.

The 2.7.1 has an easy fix, but the failure is mysterious.  The bottom
line is we default to using the 'medium model' for gcc-produced .o files
for performance reasons, but these must be loaded in the lowest 2Gb of
memory.  Your options:

1) export GCL_MEM_BOUND=29 and rebuild.  This will limit total memory to
1Gb.

2) Help me diagnose this by

unixport/saved_pre_gcl
>(length si::*code-block-reserve*)
>(room)

You should have had 30Mb of low memory already to start with, but you
fail on the first load attempt.  Bizarre.

As for the master, the failure indicates a nested error condition.
First, can you please ensure that your attempt is later than commit
d642ccb68?  This fixed a known configure build incompatability
introduced by 8a2548c11.

If that doesn't clear it up, the following would be helpful:

rm -rf sb_pre_gcl
make unixport/raw_pre_gcl

mkdir sb_pre_gcl
cd sb_pre_gcl
ar x ../unixport/libpre_gcl.a $(ar t ../unixport/libpre_gcl.a |grep ^gcl_)
ln -snf gcl_cmpnopt_pre_gcl.lsp ../unixport/gcl_cmpnopt.lsp
mkdir h
ln -snf ../../h/cmpinclude.h h/
gdb ../unixport/raw_pre_gcl
(gdb) set env GCL_LSPSYSDIR .././unixport/
(gdb) set env GCL_MEM_BOUND 29
(gdb) b Icall_gen_error_handler_noreturn
(gdb) r
(gdb) bt

Take care, and thanks again for your report!

David Scherfgen via Maxima-discuss
<maxima-disc...@lists.sourceforge.net> writes:

> Thanks, any help is welcome!
> Camm, I think I already sent you the config and make logs from trying to 
> build the 2.7.1 tag, it was a few weeks ago before you went on a vacation or 
> something.
> But here it is again, plus new logs from trying to build the Git master:
>
> Version_2_7_1 tag: First error "ERROR: File /tmp/gazonk_625863_0.o has been 
> compiled for a restricted address space"
> config.log: https://pastebin.com/V4jCCAsH
> make.log: https://pastebin.com/1sY8UPMF
>
> master branch: First error "The assertion sigaltstack(&estack, 0)>=0 on line 
> 1285 of o/alloc.c in function gcl_init_alloc failed: Operation not permitted"
> config.log: https://pastebin.com/8tgqpDfH
> make.log: https://pastebin.com/xJheBrEa
>
> I hope this helps.
>
> Best regards
> David
>
> Am Do., 24. Apr. 2025 um 18:19 Uhr schrieb Camm Maguire 
> <c...@maguirefamily.org>:
>
>  Greetings!
>
>  David Scherfgen via Maxima-discuss
>  <maxima-disc...@lists.sourceforge.net> writes:
>
>  > That's great news!
>  > Increasing numerical thresholds should not be a problem, the differences 
> are probably due to a different order of floating point operations. By the 
> way,
>  some
>  > other Lisps also fail a few numerical tests, IIRC.
>  >
>  > I still haven't been able to build GCL on my Ubuntu 22.04.5 system. The 
> 2.7.1 source distribution (after patching as described on the website) leads 
> to one
>  error,
>  > trying to build from the current Git master leads to another error. 
> Raymond, could you share your GCL build procedure?
>  >
>
>  I am more than happy to help with both of these if you could send me the
>  failed logs.
>
>  Take care,
>  -- 
>  Camm Maguire                                        c...@maguirefamily.org
>  ==========================================================================
>  "The earth is but one country, and mankind its citizens."  --  Baha'u'llah
>
> _______________________________________________
> Maxima-discuss mailing list
> maxima-disc...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/maxima-discuss
>

-- 
Camm Maguire                                        c...@maguirefamily.org
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah

Reply via email to