gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Branch Version_2_7_0pre


From: Camm Maguire
Subject: Re: Branch Version_2_7_0pre
Date: Thu, 21 Dec 2023 21:18:25 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Greetings, and thanks!  Can you please post the full configure and build
log with your memory corruption patch applied so we can address the libc
package issue first?  This likely involves different dynamic library
naming semantics on macosx, .dylib instead of .so if memory serves, yes?

Take care,

"Kirill A. Korinsky" <kirill@korins.ky> writes:

> I've used f123e3d0df9201082c9168671e103dd8835cb81f as local root.
>
> 1. ./configure still doesn't work well with readline and failed like this:
>
> checking for rl_completion_matches in -lreadline... yes
> checking RL_COMPLETION_ENTRY_FUNCTION_TYPE_FUNCTION... no
> checking RL_COMPLETION_ENTRY_FUNCTION_TYPE_RL_COMPENTRY_FUNC_T... no
> configure: error: Unknown rl_completion_entry_function return type
>
> I've attached a patch which I've used to bypass it.
>
> 2. anyway, gprof aren't disabled completley; build failed with error:
>
> error: /Library/Developer/CommandLineTools/usr/bin/libtool: file: 
> ../o/gprof.o is not an object file (not allowed in a library)
> make[1]: *** [libpre_gcl.a] Error 1
>
> and here the second patch attached.
>
> 3. after that build failed like this:
>
>>;; Loading "boot.lisp"
> ;; Compiling 
> /opt/local/var/macports/build/_Users_catap_src_macports-ports_lang_gcl/gcl-devel/work/.tmp/gazonk_9510_0.lsp.
> ;; End of Pass 1.  
> ;; End of Pass 2.  
>
> Error: ERROR "Caught fatal error [memory may be damaged]: Segmentation 
> violation."
> Signalled by MULTIPLE-VALUE-BIND.
> Segmentation violation: c stack ok:signalling errorERROR "Caught fatal error 
> [memory may be damaged]: Segmentation violation."
>
> Broken at LET*.  Type :H for Help.
>     1  Return to top level. 
> COMPILER>>make: *** [unixport/saved_gcl0] Error 255
>
> and if I apply patch 
> https://github.com/macports/macports-ports/blob/master/lang/gcl/files/fix-memory-corruption-on-macOS.patch
>  it start to build. 
>
> The build was for about two hours with output like:
>
> OPTIMIZE levels: Safety=3, Space=0, Speed=3
> ;; Finished compiling 
> /opt/local/var/macports/build/_Users_catap_src_macports-ports_lang_gcl/gcl-devel/work/f123e3d0df9201082c9168671e103dd8835cb81f/gcl/lsp/gcl_c.o.
> real time       :     35.360 secs
> run-gbc time    :     27.820 secs
> child run time  :      0.200 secs
> gbc time        :      0.000 secs
> ;; Compiling ../lsp/gcl_listlib.lsp.
> [GC for 85 STRUCTURE pages..(T=304).GC finished]
> [GC for 4171976 CONS pages..(T=273).GC finished]
> [GC for 85 STRUCTURE pages..(T=338).GC finished]
> [GC for 86 STRUCTURE pages..(T=241).GC finished]
> [GC for 97 STRUCTURE pages..(T=257).GC finished]
> [GC for 1653 RELOCATABLE-BLOCKS pages..(T=227).GC finished]
> [GC for 119 STRUCTURE pages..(T=223).GC finished]
> [GC for 130 STRUCTURE pages..(T=244).GC finished]
> [GC for 143 STRUCTURE pages..(T=327).GC finished]
> [GC for 154 STRUCTURE pages..(T=299).GC finished]
> [GC for 164 STRUCTURE pages..(T=265).GC finished]
> [GC for 173 STRUCTURE pages..(T=258).GC finished]
> ;; End of Pass 1.  
> [GC for 4171976 CONS pages..(T=241).GC finished]
> [GC for 1653 RELOCATABLE-BLOCKS pages..(T=244).GC finished]
> [GC for 4171976 CONS pages..(T=383).GC finished]
> [GC for 4171976 SPICE pages..(T=268).GC finished]
> [GC for 4171976 CONS pages..(T=237).GC finished]
> ;; End of Pass 2.  
> OPTIMIZE levels: Safety=3, Space=0, Speed=3
> ;; Finished compiling 
> /opt/local/var/macports/build/_Users_catap_src_macports-ports_lang_gcl/gcl-devel/work/f123e3d0df9201082c9168671e103dd8835cb81f/gcl/lsp/gcl_listlib.o.
> real time       :   1256.190 secs
> run-gbc time    :    921.810 secs
> child run time  :      2.860 secs
> gbc time        :     46.290 secs
> ;; Compiling ../lsp/gcl_predlib.lsp.
>
> I think that increase memory usage may speed up build, am I wrong?
>
> Anyway, the build failed with error:
>
> real time       :      4.590 secs
> run-gbc time    :      3.200 secs
> child run time  :      1.100 secs
> gbc time        :      0.000 secs
> ;; Compiling ../lsp/gcl_mnum.lsp.
>
> Error: ERROR "There is no package with the name \"libc\"."
> Fast links are on: do (si::use-fast-links nil) for debugging
> Signalled by MULTIPLE-VALUE-CALL.
> ERROR "There is no package with the name \"libc\"."
>
> Broken at FUNCALL.  Type :H for Help.
>     1  Return to top level. 
> SYSTEM>>make: *** [unixport/saved_gcl0] Error 255
>
> Thus, the patch about memory corruption contains two hunk. Without the second 
> one build failed as (3), and I've just tested it
>
>>;; Loading "boot.lisp"
> ;; Compiling 
> /opt/local/var/macports/build/_Users_catap_src_macports-ports_lang_gcl/gcl-devel/work/.tmp/gazonk_25122_0.lsp.
> ;; End of Pass 1.  
> ;; End of Pass 2.  
>
> Error: ERROR "Caught fatal error [memory may be damaged]: Segmentation 
> violation."
> Signalled by MULTIPLE-VALUE-BIND.
> Segmentation violation: c stack ok:signalling errorERROR "Caught fatal error 
> [memory may be damaged]: Segmentation violation."
>
> Broken at LET*.  Type :H for Help.
>     1  Return to top level. 
> COMPILER>>make: *** [unixport/saved_gcl0] Error 255
> rm h/mcompdefs.h
>
> and without the first one, if I recall right, it's failed near the similar 
> way but at the end, when it saves the image.

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]