[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gcl-devel] configure and make failed on FreeBSD
From: |
GOTO Kentaro |
Subject: |
Re: [Gcl-devel] configure and make failed on FreeBSD |
Date: |
Sun, 27 Oct 2002 08:14:54 +0900 |
User-agent: |
Wanderlust/2.8.1 (Something) Emacs/21.2 Mule/5.0 (SAKAKI) |
Hi,
At 26 Oct 2002 12:32:57 -0400,
Camm Maguire wrote:
> 1) All you seem to be missing now is GNU make, or gmake on some
> systems. Thus far, GCL uses the -include syntax to optionally
> include the makedefs only if present. We need to rework this, but
> so far it has taken on a lower priority than work on the core
> system. Eventually, we will be using automake, which should
> produce Makefiles usable by more generic make programs. For now,
> if you could just get a hold of gmake and try it, I think you are
> very close.
Okay, I've replaced all (hopefully :) occurrence of the word `make'
with `$(MAKE)' in **/makefile. By these changes, `gmake' (or whatever
a user typed instead of `make') is invoked recursively. I would
attach cvs diff at the end of this message. Could you commit it?
> 2) We are in need of someone like yourself with access to *BSD systems
> to maintain the GCL build process there. Would you be interested
> in helping with this? If so, please register at savannah.gnu.org
> and email me your user id -- I can then set you up as a GCL
> developer with access to the repository.
I'm happy to know that GCL project is interested in supporting *BSD :)
Well, unfortunately, I'm not a power hacker. All I can do is write
trivial patches. Indeed, I tried to build again after replacing $(MAKE)s
but I encountered a number of errors and I'm going to be dispirited :(
As far as I know, GCL version 2.3 worked on FreeBSD. I have a binary
which prints:
% gcl
GCL (GNU Common Lisp) Version(2.3) Thu Apr 19 15:31:17 GMT 2001
Licensed under GNU Library General Public License
Contains Enhancements by W. Schelter
The current code looks apart slightly far from the latest successful
build on FreeBSD.
Though I will continue to build gcl for some time, I'm not sure
whether the result can come up to your expectations or not. So I'd
like to consider joining the commiters if I succeed in compiling on my
FreeBSD box. Sorry for my poor ability.
Thanks,
Gotoken
Index: makefile
===================================================================
RCS file: /cvsroot/gcl/gcl/makefile,v
retrieving revision 1.56
diff -u -r1.56 makefile
--- makefile 19 Oct 2002 16:25:28 -0000 1.56
+++ makefile 26 Oct 2002 22:21:48 -0000
@@ -34,10 +34,10 @@
xgcl: $(PORTDIR)/saved_xgcl
$(PORTDIR)/saved_xgcl: $(PORTDIR)/saved_gcl
- cd xgcl-2 && make
+ cd xgcl-2 && $(MAKE)
binutils/bfd/libbfd.a binutils/libiberty/libiberty.a:
- cd $(@D) && make
+ cd $(@D) && $(MAKE)
h/bfd.h: binutils/bfd/libbfd.a binutils/libiberty/libiberty.a
cp $(<D)/$(@F) $@
@@ -49,13 +49,13 @@
# cp $< $@
$(PORTDIR)/saved_gcl: $(HDIR)cmpinclude.h
- (cd $(BINDIR); make all)
- make mpfiles
+ (cd $(BINDIR); $(MAKE) all)
+ $(MAKE) mpfiles
rm -f o/cmpinclude.h ; cp h/cmpinclude.h o
- (cd $(ODIR); make all)
- (cd $(LSPDIR); make all)
- (cd $(CMPDIR); make all)
- cd $(@D) && make $(@F)
+ (cd $(ODIR); $(MAKE) all)
+ (cd $(LSPDIR); $(MAKE) all)
+ (cd $(CMPDIR); $(MAKE) all)
+ cd $(@D) && $(MAKE) $(@F)
# (cd $(PORTDIR); make saved_gcl)
# (cd $(PCLDIR); make compile; make saved_gcl_pcl)
# (cd $(CLCSDIR); make compile; make saved_full_gcl)
@@ -79,47 +79,47 @@
# (cd info ; make)
$(PCLDIR)/saved_gcl_pcl: $(PORTDIR)/saved_gcl
- cd $(@D) && make compile LISP="../$<" && make $(@F) LISP="../$<"
+ cd $(@D) && $(MAKE) compile LISP="../$<" && $(MAKE) $(@F) LISP="../$<"
$(CLCSDIR)/saved_full_gcl: $(PCLDIR)/saved_gcl_pcl
- cd $(@D) && make compile LISP="../$<" && make $(@F) LISP="../$<"
+ cd $(@D) && $(MAKE) compile LISP="../$<" && $(MAKE) $(@F) LISP="../$<"
$(PORTDIR)/saved_ansi_gcl: $(CLCSDIR)/saved_full_gcl
- cd $(@D) && make $(@F)
+ cd $(@D) && $(MAKE) $(@F)
cmpnew/collectfn.o lsp/info.o:
- cd $(@D) && make $(@F)
+ cd $(@D) && $(MAKE) $(@F)
do-gcl-tk:
if [ -d "$(TK_CONFIG_PREFIX)" ] ; then \
- cd gcl-tk && make ; \
+ cd gcl-tk && $(MAKE) ; \
else \
echo "gcl-tk not made..missing include or lib" ; \
fi
do-info:
- cd info && make
+ cd info && $(MAKE)
mpfiles: $(MPFILES)
$(MPDIR)/libmport.a:
- (cd mp ; make all)
+ (cd mp ; $(MAKE) all)
$(GMPDIR)/libgmp.a: $(GMPDIR)/Makefile
- cd $(GMPDIR) && make && rm -f libgmp.a && ar qc libgmp.a *.o */*.o
+ cd $(GMPDIR) && $(MAKE) && rm -f libgmp.a && ar qc libgmp.a *.o */*.o
gmp_all: $(GMPDIR)/Makefile
- cd $(GMPDIR) && make
+ cd $(GMPDIR) && $(MAKE)
touch $@
$(GMPDIR)/mpn/mul_n.o $(GMPDIR)/mpn/lshift.o $(GMPDIR)/mpn/rshift.o:
$(GMPDIR)/Makefile
- cd $(@D) && make $(@F)
+ cd $(@D) && $(MAKE) $(@F)
command:
rm -f bin/gcl xbin/gcl
MGCLDIR=`echo $(GCLDIR) | sed -e 'sX^\([a-z]\):X/\1Xg'` ; \
GCLDIR=`echo $(GCLDIR)` ; \
- make install-command "INSTALL_LIB_DIR=$$GCLDIR" "prefix=$$GCLDIR"
"BINDIR=$$MGCLDIR/$(PORTDIR)"
+ $(MAKE) install-command "INSTALL_LIB_DIR=$$GCLDIR" "prefix=$$GCLDIR"
"BINDIR=$$MGCLDIR/$(PORTDIR)"
(cd xbin ; cp ../bin/gcl .)
# GCLDIR=`echo $(GCLDIR) | sed -e 'sX^/cygdrive/\([a-z]\)X\1!Xg' -e
'sX^//\([a-z]\)X\1!Xg'` ; \
@@ -157,14 +157,14 @@
echo "start %cd%\..\lib\gcl-2.5.0\unixport\saved_gcl.exe -dir
%cd%/../lib/gcl-2.5.0/unixport/ -libdir %cd%/lib/gcl-2.5.0/ -eval \"(setq
si::*allow-gzipped-file* t)\" %1 %2 %3 %4 %5 %6 %7 %8 %9" ) >
$(DESTDIR)$(prefix)/bin/gclm.bat
install:
- make install1 "INSTALL_LIB_DIR=$(prefix)/lib/gcl-`cat majvers`.`cat
minvers`" "prefix=$(prefix)" "DESTDIR=$(DESTDIR)"
+ $(MAKE) install1 "INSTALL_LIB_DIR=$(prefix)/lib/gcl-`cat majvers`.`cat
minvers`" "prefix=$(prefix)" "DESTDIR=$(DESTDIR)"
INSTALL_LIB_DIR=
install1:
mkdir -p $(DESTDIR)$(prefix)/lib
mkdir -p $(DESTDIR)$(prefix)/bin
mkdir -p $(DESTDIR)$(INSTALL_LIB_DIR)
MINSTALL_LIB_DIR=`echo $(INSTALL_LIB_DIR) | sed -e
'sX^\([a-z]\):X/\1Xg'` ; \
- make install-command "INSTALL_LIB_DIR=$(INSTALL_LIB_DIR)"
"prefix=$(prefix)" "DESTDIR=$(DESTDIR)" "BINDIR=$$MINSTALL_LIB_DIR/unixport"
+ $(MAKE) install-command "INSTALL_LIB_DIR=$(INSTALL_LIB_DIR)"
"prefix=$(prefix)" "DESTDIR=$(DESTDIR)" "BINDIR=$$MINSTALL_LIB_DIR/unixport"
rm -f $(DESTDIR)$(prefix)/bin/gcl.exe
tar cf - $(PORTDIR)/$(FLISP)$(EXE) info/*.info* $(LISP_LIB) \
$(TCL_EXES) | (cd $(DESTDIR)$(INSTALL_LIB_DIR) ;tar xf -)
@@ -180,30 +180,30 @@
# if [ -d "$(TK_CONFIG_PREFIX)" ] ; then \
# (cd $(DESTDIR)$(INSTALL_LIB_DIR)/gcl-tk/demos ; \
# echo '(load "../tkl.o")(TK::GET-AUTOLOADS (directory "*.lisp"))' |
../../$(PORTDIR)/$(FLISP)$(EXE)) ; fi
- if test "$(EMACS_SITE_LISP)" != "" ; then (cd elisp ; make install
DESTDIR=$(DESTDIR)) ; fi
- if test "$(INFO_DIR)" != "unknown"; then (cd info ; make ; make install
DESTDIR=$(DESTDIR)) ; fi
+ if test "$(EMACS_SITE_LISP)" != "" ; then (cd elisp ; $(MAKE) install
DESTDIR=$(DESTDIR)) ; fi
+ if test "$(INFO_DIR)" != "unknown"; then (cd info ; $(MAKE) ; $(MAKE)
install DESTDIR=$(DESTDIR)) ; fi
clean:
- (cd $(BINDIR); make clean)
- (cd mp ; make clean)
- (cd $(ODIR); make clean)
- (cd $(LSPDIR); make clean)
- (cd $(CMPDIR); make clean)
- (cd $(PORTDIR); make clean)
- (cd gcl-tk ; make clean)
- -(cd $(GMPDIR) ; make distclean)
- cd $(CLCSDIR) && make clean
- cd $(PCLDIR) && make clean
- cd xgcl-2 && make clean
- (cd $(TESTDIR); make clean)
- (cd info ; make clean)
+ (cd $(BINDIR); $(MAKE) clean)
+ (cd mp ; $(MAKE) clean)
+ (cd $(ODIR); $(MAKE) clean)
+ (cd $(LSPDIR); $(MAKE) clean)
+ (cd $(CMPDIR); $(MAKE) clean)
+ (cd $(PORTDIR); $(MAKE) clean)
+ (cd gcl-tk ; $(MAKE) clean)
+ -(cd $(GMPDIR) ; $(MAKE) distclean)
+ cd $(CLCSDIR) && $(MAKE) clean
+ cd $(PCLDIR) && $(MAKE) clean
+ cd xgcl-2 && $(MAKE) clean
+ (cd $(TESTDIR); $(MAKE) clean)
+ (cd info ; $(MAKE) clean)
rm -f foo.tcl config.log makedefs makedefsafter config.cache
config.status makedefc
rm -f h/config.h h/gclincl.h h/cmpinclude.h h/gmp.h
rm -rf $(GMPDIR)/.deps $(GMPDIR)/libgmp.a
rm -f xbin/gcl foo foo.c bin/gclm.bat gmp_all
rm -f h/*-linux.defs h/bfd.h h/bfdlink.h h/ansidecl.h h/symcat.h
- -cd binutils/bfd && make distclean
- -cd binutils/libiberty && make distclean
+ -cd binutils/bfd && $(MAKE) distclean
+ -cd binutils/libiberty && $(MAKE) distclean
CMPINCLUDE_FILES=$(HDIR)cmpincl1.h $(HDIR)gclincl.h $(HDIR)compbas.h
$(HDIR)enum.h $(HDIR)mgmp.h $(HDIR)object.h $(HDIR)vs.h \
$(HDIR)bds.h $(HDIR)frame.h \
@@ -223,7 +223,7 @@
go:
mkdir go
(cd go ; cp -s ../o/makefile ../o/*.o ../o/*.c ../o/*.d ../o/*.ini .)
- (cd go ; make go)
+ (cd go ; $(MAKE) go)
tar:
rm -f gcl-`cat majvers`.`cat minvers`
@@ -234,5 +234,5 @@
chmod a+rx configure
kcp:
- (cd go ; make "CFLAGS = -I../h -pg -c -g ")
- (cd unixport ; make gcp)
+ (cd go ; $(MAKE) "CFLAGS = -I../h -pg -c -g ")
+ (cd unixport ; $(MAKE) gcp)
Index: cmpnew/makefile
===================================================================
RCS file: /cvsroot/gcl/gcl/cmpnew/makefile,v
retrieving revision 1.16
diff -u -r1.16 makefile
--- cmpnew/makefile 10 Sep 2002 03:35:14 -0000 1.16
+++ cmpnew/makefile 26 Oct 2002 22:21:49 -0000
@@ -52,7 +52,7 @@
newfn:
- make `echo $(OBJS) | sed -e 's:\.o:.fn:g'`
+ $(MAKE) `echo $(OBJS) | sed -e 's:\.o:.fn:g'`
@@ -63,7 +63,7 @@
ln -s $(MAINDIR)/cmpnew/$$v.data . ; \
done
rm -f ../unixport/$(FLISP)
- (cd .. ; make sources)
+ (cd .. ; $(MAKE) sources)
(cd .. ; make)
(cd .. ; make)
Index: comp/makefile
===================================================================
RCS file: /cvsroot/gcl/gcl/comp/makefile,v
retrieving revision 1.12
diff -u -r1.12 makefile
--- comp/makefile 7 Jun 2002 02:57:28 -0000 1.12
+++ comp/makefile 26 Oct 2002 22:21:49 -0000
@@ -23,15 +23,15 @@
(cd .. ; tar cvf - ${TFILES} src/sobjs src/*.c src/*.el newh/*.el
src/makefile comp/*.lsp comp/*.doc newh/*.h newh/makefile | gzip -c >
${HOME}/`date '+acl-%y%m%d'`.tar.z)
all-tests:
- make
- - make tests test1
- - (cd /u11/wfs/nqthm1 ; rm *.o ; make "LISP=nacl")
- - (cd /u11/wfs/gabriel ; make "LISP=nacl")
+ $(MAKE)
+ - $(MAKE) tests test1
+ - (cd /u11/wfs/nqthm1 ; rm *.o ; $(MAKE) "LISP=nacl")
+ - (cd /u11/wfs/gabriel ; $(MAKE) "LISP=nacl")
tests2:
- make
- - make tests test1
- - (cd /u11/wfs/nqthm1 ; rm *.o ; make "LISP=nacl")
+ $(MAKE)
+ - $(MAKE) tests test1
+ - (cd /u11/wfs/nqthm1 ; rm *.o ; $(MAKE) "LISP=nacl")
-include ../makedefs
Index: go/makefile
===================================================================
RCS file: /cvsroot/gcl/gcl/go/makefile,v
retrieving revision 1.12
diff -u -r1.12 makefile
--- go/makefile 7 Jun 2002 02:57:28 -0000 1.12
+++ go/makefile 26 Oct 2002 22:21:51 -0000
@@ -81,12 +81,12 @@
all: $(OBJS) new-init $(LIBFILES) new_init.o $(GCLIB)
go:
- make "CFLAGS=${CFLAGS} -pg"
+ $(MAKE) "CFLAGS=${CFLAGS} -pg"
new-init: grab_defs
- make new_init.c "INI_FILES=`echo ${OBJS} | sed -e 's:\.o:.ini:g' -e
's:new_init.o::g' `"
+ $(MAKE) new_init.c "INI_FILES=`echo ${OBJS} | sed -e 's:\.o:.ini:g' -e
's:new_init.o::g' `"
new_init.c: ${INI_FILES}
echo '#include "make-init.h"' > new_init.c
echo 'NewInit(){' >> new_init.c
Index: info/makefile
===================================================================
RCS file: /cvsroot/gcl/gcl/info/makefile,v
retrieving revision 1.18
diff -u -r1.18 makefile
--- info/makefile 18 Oct 2002 10:31:15 -0000 1.18
+++ info/makefile 26 Oct 2002 22:21:51 -0000
@@ -75,7 +75,7 @@
TEXINPUTS=.:$$TEXINPUTS tex gcl-si.texi
TEXINPUTS=.:$$TEXINPUTS tex gcl-tk.texi
@echo must do twice to get indices correct...
- @echo so do 'make tex' again
+ @echo so do '$(MAKE) tex' again
clean:
rm -f *.info* *.html *.dvi *.cp *.ky *.vr *.tp *.pg *.toc *.aux *.log
*.fn
Index: lsp/makefile
===================================================================
RCS file: /cvsroot/gcl/gcl/lsp/makefile,v
retrieving revision 1.15
diff -u -r1.15 makefile
--- lsp/makefile 10 Sep 2002 03:35:14 -0000 1.15
+++ lsp/makefile 26 Oct 2002 22:21:51 -0000
@@ -49,7 +49,7 @@
fns1: $(FNS)
fns: ../cmpnew/collectfn.o
- make fns1 -e "FNS=`echo ${OBJS} | sed -e 's:\.o:\.fn:g'`"
+ $(MAKE) fns1 -e "FNS=`echo ${OBJS} | sed -e 's:\.o:\.fn:g'`"
../cmpnew/collectfn.o: ../cmpnew/collectfn.lsp
(cd ../cmpnew ; $(PORTDIR)/saved_gcl $(PORTDIR)/ collectfn.lisp
collectfn S1000)
@@ -69,6 +69,6 @@
newc:
- make $(OBJS) -e "NEWCFILES=`echo $(OBJS) | sed -e 's:\.o:.c:g'`"
+ $(MAKE) $(OBJS) -e "NEWCFILES=`echo $(OBJS) | sed -e 's:\.o:.c:g'`"
Index: mp/makefile
===================================================================
RCS file: /cvsroot/gcl/gcl/mp/makefile,v
retrieving revision 1.12
diff -u -r1.12 makefile
--- mp/makefile 7 Jun 2002 02:57:29 -0000 1.12
+++ mp/makefile 26 Oct 2002 22:21:52 -0000
@@ -13,7 +13,7 @@
OBJS= mp_divul3.o mp_bfffo.o mp_mulul3.o mp2.o mp_dblrsl3.o mp_dblrul3.o
${GNULIB1}
all:
- make all1 "MPFILES=$(MPFILES)"
+ $(MAKE) all1 "MPFILES=$(MPFILES)"
all1: ${MPFILES}
Index: o/makefile
===================================================================
RCS file: /cvsroot/gcl/gcl/o/makefile,v
retrieving revision 1.23
diff -u -r1.23 makefile
--- o/makefile 23 Sep 2002 10:03:20 -0000 1.23
+++ o/makefile 26 Oct 2002 22:21:52 -0000
@@ -83,14 +83,14 @@
all: ../bin/dpp${EXE} $(OBJS) new-init $(LIBFILES) new_init.o $(GCLIB)
$(LAST_FILE) $(FIRST_FILE)
go:
- make "CFLAGS=${CFLAGS} -pg"
+ $(MAKE) "CFLAGS=${CFLAGS} -pg"
../bin/dpp${EXE}: ../bin/dpp.c
${CC} ${DEFS} -DUNIX -o ../bin/dpp${EXE} ../bin/dpp.c
new-init: grab_defs
- make new_init.c decls1 "INI_FILES=`echo ${OBJS} | sed -e 's:\.o:.ini:g'
-e 's:new_init.o::g' `"
+ $(MAKE) new_init.c decls1 "INI_FILES=`echo ${OBJS} | sed -e
's:\.o:.ini:g' -e 's:new_init.o::g' `"
new_init.c: ${INI_FILES}
echo '#include "make-init.h"' > new_init.c
Index: pcl/makefile
===================================================================
RCS file: /cvsroot/gcl/gcl/pcl/makefile,v
retrieving revision 1.3
diff -u -r1.3 makefile
--- pcl/makefile 5 Aug 2002 20:36:08 -0000 1.3
+++ pcl/makefile 26 Oct 2002 22:21:52 -0000
@@ -34,7 +34,7 @@
tar:
- make -f makefile.gcl tar1 DIR=`pwd`
+ $(MAKE) -f makefile.gcl tar1 DIR=`pwd`
tar1:
(cd .. ; tar cvf - `basename ${DIR}` | gzip -c > `basename ${DIR}`.tgz)
Index: xgcl-2/makefile
===================================================================
RCS file: /cvsroot/gcl/gcl/xgcl-2/makefile,v
retrieving revision 1.2
diff -u -r1.2 makefile
--- xgcl-2/makefile 21 Aug 2002 22:22:51 -0000 1.2
+++ xgcl-2/makefile 26 Oct 2002 22:21:52 -0000
@@ -38,7 +38,7 @@
'(xlib::compile-xgcl)' | $(LISP)
$(PORTDIR)/saved_$(SYSTEM): $(C_OBJS) maxobjs
- (cd $(PORTDIR) ; make saved_xgcl "INIT_SYSTEM_LSP=init_gcl.lsp"
"SYSTEM=$(SYSTEM)" "SYSTEM_OBJS=`cat $(SYSDIR)/maxobjs` $(C_OBJS) " "LIBSYSTEM=
$(X_LIBS) " "PORTDIR=$(PORTDIR)")
+ (cd $(PORTDIR) ; $(MAKE) saved_xgcl "INIT_SYSTEM_LSP=init_gcl.lsp"
"SYSTEM=$(SYSTEM)" "SYSTEM_OBJS=`cat $(SYSDIR)/maxobjs` $(C_OBJS) " "LIBSYSTEM=
$(X_LIBS) " "PORTDIR=$(PORTDIR)")
rm -f $(PORTDIR)/raw_$(SYSTEM)
Xgcl:
@@ -63,7 +63,7 @@
$(CC) -c general-c.c $(CFLAGS)
tar:
- make tar1 TARD=xgcl-`cat version`
+ $(MAKE) tar1 TARD=xgcl-`cat version`
tar1:
(cd .. ; tar cvf - $(TARD)/*.lsp $(TARD)/*.lisp $(TARD)/*.c
$(TARD)/*.paper $(TARD)/README $(TARD)/makefile $(TARD)/version | gzip -c >
$(TARD).tgz)
# end of patch
- [Gcl-devel] Re: Welcome to the "Gcl-devel" mailing list, GOTO Kentaro, 2002/10/23
- [Gcl-devel] configure and make failed on FreeBSD, GOTO Kentaro, 2002/10/23
- Re: [Gcl-devel] configure and make failed on FreeBSD, Camm Maguire, 2002/10/23
- Re: [Gcl-devel] configure and make failed on FreeBSD, GOTO Kentaro, 2002/10/23
- Re: [Gcl-devel] configure and make failed on FreeBSD, Camm Maguire, 2002/10/25
- Re: [Gcl-devel] configure and make failed on FreeBSD, GOTO Kentaro, 2002/10/25
- Re: [Gcl-devel] configure and make failed on FreeBSD, Camm Maguire, 2002/10/26
- Re: [Gcl-devel] configure and make failed on FreeBSD,
GOTO Kentaro <=
- Re: [Gcl-devel] configure and make failed on FreeBSD, GOTO Kentaro, 2002/10/29
- Re: [Gcl-devel] configure and make failed on FreeBSD, GOTO Kentaro, 2002/10/30
- Re: [Gcl-devel] configure and make failed on FreeBSD, Camm Maguire, 2002/10/31
- Re: [Gcl-devel] configure and make failed on FreeBSD, Camm Maguire, 2002/10/31