gcl-devel
[Top][All Lists]
Advanced

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

Re: [Gcl-devel] Troubles bulding gcl 2.7.0t3


From: Camm Maguire
Subject: Re: [Gcl-devel] Troubles bulding gcl 2.7.0t3
Date: 09 Aug 2005 02:19:23 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Greetings!  Great to hear from you Vadim!  Thanks so much for your
work with GCL.

"Vadim V. Zhytnikov" <address@hidden> writes:

> Hi!
> 
> I have some troubles in building and installing gcl 2.7.0t3.
> 
> First problem is MAXPAGE value.  I can build gcl only
> with --enable-maxpage=254*1024.  With 512*1024 configure
> hangs eating 100% CPU on maxpage test.  With 1024*1024
> and 2048*1024 configure is OK but build crashes with
> some memory-related error message.
> 

Currently maxpage must be a power of 2 and <= 1Gb on 32bit Linux
unless one has a red hat enterprise kernel, then one can go up to 2gb,
but only with t4.  In any case, please try t4, you might have better
luck as some work was put in related to recent gcc compiler changes,
etc. 

On our todo list is a more flexible and robust memory allocation
strategy which does not constrain maxpages at compile time.  More n
this later.


> All other problems are related to make install stage.
> 
> 1.  Makefile contains reference to clcs_macros.lisp
> which was recently renamed to gcl_clcs_macros.lisp.
> The patch which fixes this is in the attachment.

Thanks!  Committed to cvs head.

> 
> 2.  make install doesn't install main gcl script
> to (correct gcl script is created but make doesn't copy it into
> /usr/bin/gcl).  I've honestly tried to understand why and which
> part of makefile is responsible for this but quickly get lost.
> 
> 3.  Looking at make install log (attached) in the
> hope to understand problem 2 I found two other suspicious
> places:
> 
> a) rm -f gcl.exe (marked by ******)
> b) some strange erroneous gcl session (marked by #########)
> 
> Probably both a and b do not influence final install
> result since similar things can be observed in gcl 2.6.7pre
> install log but maybe this is worth cleaning?
> 

We really need to overhaul this.  Others have made similar reports.
Its really a question of whether we hav the time to do it right, or
want to patch what we have.  automake is where we should be going.

Take care,



> -- 
>       Vadim V. Zhytnikov
> 
>        <address@hidden>
>       <address@hidden>
> diff -uNr gcl-orig/makefile gcl/makefile
> --- gcl-orig/makefile 2005-06-10 19:02:33 +0400
> +++ gcl/makefile      2005-08-07 18:28:01 +0400
> @@ -131,7 +131,7 @@
>  merge:
>       $(CC) -o merge merge.c
>  
> -LISP_LIB=clcs/myload1.lisp clcs/clcs_macros.lisp cmpnew/gcl_collectfn.o 
> cmpnew/gcl_collectfn.lsp lsp/gcl_gprof.lsp lsp/gcl_info.o lsp/gcl_profile.lsp 
> lsp/gcl_export.lsp lsp/gcl_autoload.lsp cmpnew/gcl_cmpmain.lsp 
> cmpnew/gcl_cmpopt.lsp cmpnew/gcl_lfun_list.lsp lsp/gcl_auto_new.lsp 
> h/cmpinclude.h unixport/init_$(SYSTEM).lsp unixport/lib$(SYSTEM).a 
> unixport/libgclp.a gcl-tk/tk-package.lsp $(TK_LISP_LIB) $(RL_LIB) 
> $(FIRST_FILE) $(LAST_FILE) $(addsuffix /sys-proclaim.lisp,lsp cmpnew pcl 
> clcs) unixport/gcl.script
> +LISP_LIB=clcs/myload1.lisp clcs/gcl_clcs_macros.lisp cmpnew/gcl_collectfn.o 
> cmpnew/gcl_collectfn.lsp lsp/gcl_gprof.lsp lsp/gcl_info.o lsp/gcl_profile.lsp 
> lsp/gcl_export.lsp lsp/gcl_autoload.lsp cmpnew/gcl_cmpmain.lsp 
> cmpnew/gcl_cmpopt.lsp cmpnew/gcl_lfun_list.lsp lsp/gcl_auto_new.lsp 
> h/cmpinclude.h unixport/init_$(SYSTEM).lsp unixport/lib$(SYSTEM).a 
> unixport/libgclp.a gcl-tk/tk-package.lsp $(TK_LISP_LIB) $(RL_LIB) 
> $(FIRST_FILE) $(LAST_FILE) $(addsuffix /sys-proclaim.lisp,lsp cmpnew pcl 
> clcs) unixport/gcl.script
>  
>  install_command:
>       rm -f bin/gcl
> ÷ÙÐÏÌÎÑÅÔÓÑ(%install): /bin/sh -e /home/vadim/tmp/rpm-tmp.83498
> + umask 022
> + /bin/mkdir -p /home/vadim/RPM/BUILD
> + cd /home/vadim/RPM/BUILD
> + /bin/chmod -Rf u+rwX -- /home/vadim/tmp/gcl-buildroot
> + /bin/rm -rf -- /home/vadim/tmp/gcl-buildroot
> + cd gcl
> + install -d /home/vadim/tmp/gcl-buildroot/usr/share/info
> + install -d /home/vadim/tmp/gcl-buildroot/usr/share/man/man1
> + install -d /home/vadim/tmp/gcl-buildroot/usr/share/emacs/site-lisp/gcl
> + install -d /home/vadim/tmp/gcl-buildroot/usr/include
> + make install DESTDIR=/home/vadim/tmp/gcl-buildroot 
> EMACS_SITE_LISP=/usr/share/emacs/site-lisp/gcl 
> EMACS_DEFAULT_EL=/usr/share/emacs/site-lisp/default.el
> make: Entering directory `/home/vadim/RPM/BUILD/gcl'
> rm -f bin/gcl xbin/gcl
> MGCLDIR=`echo /home/vadim/RPM/BUILD/gcl | sed -e 'sX^\([a-z]\):X/\1Xg'` ; \
>       GCLDIR=`echo /home/vadim/RPM/BUILD/gcl` ; \
>       make install_command "INSTALL_LIB_DIR=$GCLDIR" "prefix=$GCLDIR" 
> "BINDIR=$MGCLDIR/unixport"
> make[1]: Entering directory `/home/vadim/RPM/BUILD/gcl'
> rm -f bin/gcl
> (echo '#!/bin/sh' ; \
>       echo exec /home/vadim/RPM/BUILD/gcl/unixport/saved_ansi_gcl \\ ; \
>       echo '   -dir' /home/vadim/RPM/BUILD/gcl/unixport/ \\ ; \
>       echo '   -libdir' /home/vadim/RPM/BUILD/gcl/ \\ ; \
>       echo '   -eval '\''(setq si::*allow-gzipped-file* t)'\' \\ ;\
>       ! [ -d "/usr/lib" ] || echo '   -eval '\''(setq si::*tk-library* 
> '\"\"')'\' \\;\
>       echo '     '\"address@hidden" ) > bin/gcl;
> echo '#' other options: -load "/tmp/foo.o" -load "jo.lsp" -eval '"(joe 3)"' 
> >> bin/gcl
> chmod a+x bin/gcl
> make[1]: Leaving directory `/home/vadim/RPM/BUILD/gcl'
> (cd xbin ; cp ../bin/gcl .)
> if [ -d "/usr/lib" ] ; then \
>               cd gcl-tk && make ; \
>       else \
>               echo "gcl-tk not made..missing include or lib" ; \
>       fi 
> make[1]: Entering directory `/home/vadim/RPM/BUILD/gcl/gcl-tk'
> (cd demos ; \
>       echo '(load "../tkl.o")(TK::GET-AUTOLOADS (directory "*.lisp"))' | 
> ../../unixport/saved_ansi_gcl) 
> GCL (GNU Common Lisp)  2.7.0 ANSI    Aug  7 2005 18:31:47
> Source License: LGPL(gcl,gmp), GPL(unexec,bfd)
> Binary License:  GPL due to GPL'ed components: (READLINE BFD UNEXEC)
> Modifications of this banner must retain notice of a compatible license
> Dedicated to the memory of W. Schelter
> 
> Use (help) to get some basic information on how to use GCL.
> 
> >
> Loading ../tkl.o
> start address -T 0x8dafe0 Finished loading ../tkl.o
> 56336
> 
> >
> NIL
> 
> >make[1]: Leaving directory `/home/vadim/RPM/BUILD/gcl/gcl-tk'
> cd info && make
> make[1]: Entering directory `/home/vadim/RPM/BUILD/gcl/info'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/vadim/RPM/BUILD/gcl/info'
> make install1 "INSTALL_LIB_DIR=/usr/lib/gcl-`cat majvers`.`cat minvers`" 
> "prefix=/usr" "DESTDIR=/home/vadim/tmp/gcl-buildroot"
> make[1]: Entering directory `/home/vadim/RPM/BUILD/gcl'
> if gcc --version | grep -i mingw >/dev/null 2>&1 ; then \
>               make install_windows; \
>       else \
>               make install_unix ; fi
> make[2]: Entering directory `/home/vadim/RPM/BUILD/gcl'
> mkdir -p /home/vadim/tmp/gcl-buildroot/usr/lib 
> mkdir -p /home/vadim/tmp/gcl-buildroot/usr/bin
> mkdir -p /home/vadim/tmp/gcl-buildroot/usr/lib/gcl-2.7.0
> MINSTALL_LIB_DIR=`echo /usr/lib/gcl-2.7.0 | sed -e 'sX^\([a-z]\):X/\1Xg'` ; \
>       make install_command "INSTALL_LIB_DIR=/usr/lib/gcl-2.7.0" "prefix=/usr" 
> "DESTDIR=/home/vadim/tmp/gcl-buildroot" "BINDIR=$MINSTALL_LIB_DIR/unixport"
> make[3]: Entering directory `/home/vadim/RPM/BUILD/gcl'
> rm -f bin/gcl
> (echo '#!/bin/sh' ; \
>       echo exec /usr/lib/gcl-2.7.0/unixport/saved_ansi_gcl \\ ; \
>       echo '   -dir' /usr/lib/gcl-2.7.0/unixport/ \\ ; \
>       echo '   -libdir' /usr/lib/gcl-2.7.0/ \\ ; \
>       echo '   -eval '\''(setq si::*allow-gzipped-file* t)'\' \\ ;\
>       ! [ -d "/usr/lib" ] || echo '   -eval '\''(setq si::*tk-library* 
> '\"\"')'\' \\;\
>       echo '     '\"address@hidden" ) > bin/gcl;
> echo '#' other options: -load "/tmp/foo.o" -load "jo.lsp" -eval '"(joe 3)"' 
> >> bin/gcl
> chmod a+x bin/gcl
> make[3]: Leaving directory `/home/vadim/RPM/BUILD/gcl'
> *****************************************************
> rm -f /home/vadim/tmp/gcl-buildroot/usr/bin/gcl.exe
> tar cf - unixport/saved_ansi_gcl info/*.info* clcs/myload1.lisp 
> clcs/gcl_clcs_macros.lisp cmpnew/gcl_collectfn.o cmpnew/gcl_collectfn.lsp 
> lsp/gcl_gprof.lsp lsp/gcl_info.o lsp/gcl_profile.lsp lsp/gcl_export.lsp 
> lsp/gcl_autoload.lsp cmpnew/gcl_cmpmain.lsp cmpnew/gcl_cmpopt.lsp 
> cmpnew/gcl_lfun_list.lsp lsp/gcl_auto_new.lsp h/cmpinclude.h 
> unixport/init_ansi_gcl.lsp unixport/libansi_gcl.a unixport/libgclp.a 
> gcl-tk/tk-package.lsp gcl-tk/tkl.o gcl-tk/tinfo.o gcl-tk/decode.tcl 
> gcl-tk/demos/*.lsp gcl-tk/demos/*.lisp gcl-tk/demos/*.o    
> lsp/sys-proclaim.lisp cmpnew/sys-proclaim.lisp pcl/sys-proclaim.lisp 
> clcs/sys-proclaim.lisp unixport/gcl.script \
>       gcl-tk/gcl.tcl gcl-tk/gcltkaux  |  (cd 
> /home/vadim/tmp/gcl-buildroot/usr/lib/gcl-2.7.0 ;tar xf -)
> cd /home/vadim/tmp/gcl-buildroot/usr/lib/gcl-2.7.0/unixport && \
>               mv saved_ansi_gcl temp && \
>               echo '(reset-sys-paths "/usr/lib/gcl-2.7.0/")\
>                     (si::save-system "saved_ansi_gcl")' | ./temp && \
>               rm -f temp
> ######################################################
> GCL (GNU Common Lisp)  2.7.0 ANSI    Aug  7 2005 18:31:47
> Source License: LGPL(gcl,gmp), GPL(unexec,bfd)
> Binary License:  GPL due to GPL'ed components: (READLINE BFD UNEXEC)
> Modifications of this banner must retain notice of a compatible license
> Dedicated to the memory of W. Schelter
> 
> Use (help) to get some basic information on how to use GCL.
> 
> >
> NIL
> 
> >
> Error in EVAL [or a callee]: The variable |
> | is unbound.
> 
> Fast links are on: do (si::use-fast-links nil) for debugging
> Broken at EVAL.  Type :H for Help.
>  1 (Continue) Return to top level.
> dbl:>>if [ -e "unixport/rsym" ] ; then cp unixport/rsym 
> /home/vadim/tmp/gcl-buildroot/usr/lib/gcl-2.7.0/unixport/ ; fi
> if [ -d "/usr/lib" ] ; then  \
>       cat gcl-tk/gcltksrv | \
>       sed -e "s!GCL_TK_DIR=.*!GCL_TK_DIR=/usr/lib/gcl-2.7.0/gcl-tk!g"  \
>       -e "s!TK_LIBRARY=.*!TK_LIBRARY=!g" > \
>       /home/vadim/tmp/gcl-buildroot/usr/lib/gcl-2.7.0/gcl-tk/gcltksrv ; \
>       chmod a+x 
> /home/vadim/tmp/gcl-buildroot/usr/lib/gcl-2.7.0/gcl-tk/gcltksrv ; fi
> if test "/usr/share/emacs/site-lisp/gcl" != "" ; then (cd elisp ; make 
> install DESTDIR=/home/vadim/tmp/gcl-buildroot) ; fi
> make[3]: Entering directory `/home/vadim/RPM/BUILD/gcl/elisp'
> mkdir -p /home/vadim/tmp/gcl-buildroot/usr/share/emacs/site-lisp/gcl
> cp *.el /home/vadim/tmp/gcl-buildroot/usr/share/emacs/site-lisp/gcl
> if [ "/usr/share/emacs/site-lisp/default.el" != "" ] ; then \
>       if test -f 
> "/home/vadim/tmp/gcl-buildroot/usr/share/emacs/site-lisp/default.el" ; then \
>       cat /home/vadim/tmp/gcl-buildroot/usr/share/emacs/site-lisp/default.el 
> | sed -e '/BEGIN gcl/,/END gcl/d' > 
> /home/vadim/tmp/gcl-buildroot/temp_emacs_default ; \
>       mv /home/vadim/tmp/gcl-buildroot/usr/share/emacs/site-lisp/default.el 
> /home/vadim/tmp/gcl-buildroot/usr/share/emacs/site-lisp/default.el.prev ; \
>         rm -f  
> /home/vadim/tmp/gcl-buildroot/usr/share/emacs/site-lisp/default.elc ; \
>           cat add-default.el >> 
> /home/vadim/tmp/gcl-buildroot/temp_emacs_default ; cp  
> /home/vadim/tmp/gcl-buildroot/temp_emacs_default 
> /home/vadim/tmp/gcl-buildroot/usr/share/emacs/site-lisp/default.el ; \
>         rm -f /home/vadim/tmp/gcl-buildroot/temp_emacs_default ; else \
>       cp  add-default.el 
> /home/vadim/tmp/gcl-buildroot/usr/share/emacs/site-lisp/default.el ; fi ; \
>       chmod a+r 
> /home/vadim/tmp/gcl-buildroot/usr/share/emacs/site-lisp/default.el ; fi
> make[3]: Leaving directory `/home/vadim/RPM/BUILD/gcl/elisp'
> if test "/usr/share/info/" != "unknown"; then (cd info ; make ; make install 
> DESTDIR=/home/vadim/tmp/gcl-buildroot) ; fi
> make[3]: Entering directory `/home/vadim/RPM/BUILD/gcl/info'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory `/home/vadim/RPM/BUILD/gcl/info'
> make[3]: Entering directory `/home/vadim/RPM/BUILD/gcl/info'
> mkdir -p /home/vadim/tmp/gcl-buildroot/usr/share/info/
> [ -f /home/vadim/tmp/gcl-buildroot/usr/share/info/dir ] || touch 
> /home/vadim/tmp/gcl-buildroot/usr/share/info/dir
> grep gcl-si /home/vadim/tmp/gcl-buildroot/usr/share/info/dir >/dev/null 2>&1 
> || \
>       echo "* GCL Doc: (gcl-si.info). GNU Common Lisp specific 
> Documentation." >> /home/vadim/tmp/gcl-buildroot/usr/share/info/dir
> grep gcl-tk /home/vadim/tmp/gcl-buildroot/usr/share/info/dir >/dev/null 2>&1 
> || \
>       echo "* GCL TK Doc: (gcl-tk.info).      TK window GCL interface." >> 
> /home/vadim/tmp/gcl-buildroot/usr/share/info/dir
> grep gcl.info /home/vadim/tmp/gcl-buildroot/usr/share/info/dir >/dev/null 
> 2>&1 || \
>       echo "* GCL Ansi Doc: (gcl.info).  Ansi Common Lisp Specification." >> 
> /home/vadim/tmp/gcl-buildroot/usr/share/info/dir
> cp *.info* /home/vadim/tmp/gcl-buildroot/usr/share/info/
> mkdir -p /home/vadim/tmp/gcl-buildroot/usr/share/info/../doc
> cp -r gcl-si gcl gcl-tk /home/vadim/tmp/gcl-buildroot/usr/share/info/../doc
> cp *dvi /home/vadim/tmp/gcl-buildroot/usr/share/info/../doc
> make[3]: Leaving directory `/home/vadim/RPM/BUILD/gcl/info'
> make[2]: Leaving directory `/home/vadim/RPM/BUILD/gcl'
> make[1]: Leaving directory `/home/vadim/RPM/BUILD/gcl'
> make: Leaving directory `/home/vadim/RPM/BUILD/gcl'
> + install -D -m644 ./elisp/add-default.el ./elisp/ansi-doc.el ./elisp/dbl.el 
> ./elisp/doc-to-texi.el ./elisp/gcl.el ./elisp/man1-to-texi.el 
> ./elisp/smart-complete.el ./elisp/sshell.el 
> /home/vadim/tmp/gcl-buildroot/usr/share/emacs/site-lisp/gcl
> + install -D -m644 ./man/man1/gcl.1 
> /home/vadim/tmp/gcl-buildroot/usr/share/man/man1/gcl.1
> + ln -f -s /usr/lib/gcl-2.7.0/h/cmpinclude.h 
> /home/vadim/tmp/gcl-buildroot/usr/include/cmpinclude.h
> + /usr/bin/subst s:/home/vadim/tmp/gcl-buildroot/usr:/usr:g 
> /home/vadim/tmp/gcl-buildroot/usr/bin/gcl
> /usr/bin/subst: open: /home/vadim/tmp/gcl-buildroot/usr/bin/gcl: No such file 
> or directory
> error: îÅ×ÅÒÎÙÊ ËÏÄ ×ÏÚ×ÒÁÔÁ ÉÚ /home/vadim/tmp/rpm-tmp.83498 (%install)
> 
> _______________________________________________
> Gcl-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/gcl-devel

-- 
Camm Maguire                                            address@hidden
==========================================================================
"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]