[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Installing AKCL on SUN Sparc
Hi,
I'm having trouble installing AKCL on a Sun Sparc running SunOS 4.1.3.,
using gcc-2.3.3.
After modifying 'h/sun4.defs', running 'add-defs sun4' seems to go smoothly.
Then, 'make -f Smakefile' fails when loading defstruct.lsp:
loading ../lsp/defstruct.lsp
sh: 27614 Illegal instruction - core dumped
*** Error code 132
When removing the -O compiler option, make runs a little bit longer
but fails when it cannot find arraylib.c after:
../xbin/if-exists: 29628 Illegal instruction - core dumped
It seems like the symbolic links in the akcl/lsp directory disappear.
Excerpts from the make process is included below.
Any hints would be greatly appreciated.
Thank you very much in advance,
Mats.
================= output from running make -f Smakefile ======================
****** with optimize ***************************
romeo{ml}% make -f Smakefile
......
......
gcc -fwritable-strings -msoft-float -I/usr/local/src/akcl/o -DVOL=volatile -O -c -I../h cmpvs.c
cat ../h/secondary_sun_magic cmpvs.data >> cmpvs.o
gcc -fwritable-strings -msoft-float -I/usr/local/src/akcl/o -DVOL=volatile -O -c -I../h cmpwt.c
cat ../h/secondary_sun_magic cmpwt.data >> cmpwt.o
(cd unixport; make saved_kcl)
rm -f raw_kcl
if fgrep ASSIGN-DOWN ../cmpnew/cmpvar.c > /dev/null ; \
then make raw_kcl1 "KCL=kcl" "ODIR=../o" "EXTRAS=" "LIBS=-lm -lg" "LDCC=gcc -fwritable-strings -msoft-float -I/usr/local/src/akcl/o -DVOL=volatile" "MPFILES=../mp/mpi-sparc.o ../mp/sparcdivul3.o ../mp/libmport.a" ; \
else make raw_kcl1 "SYS_KCL=sys_boot.o" ; fi
rm -f boots ; \
echo "# edit lspboots or cmpboots " >> boots ;\
for v in `cat lspboots cmpboots` ; \
do echo "s:$v.o:$v.lsp:g" >> boots ;\
echo "s:init_or_load(init_$v,:load1(:g" >> boots ; \
done
rm -f sys_boot.c ; cat sys_kcl.c | sed -f boots > sys_boot.c
gcc -fwritable-strings -msoft-float -I/usr/local/src/akcl/o -DVOL=volatile -c -I../h sys_boot.c
gcc -fwritable-strings -msoft-float -I/usr/local/src/akcl/o -DVOL=volatile -o raw_kcl ../o/main.o ../o/alloc.o ../o/gbc.o ../o/bitop.o ../o/typespec.o ../o/eval.o ../o/macros.o ../o/lex.o ../o/bds.o ../o/frame.o ../o/predicate.o ../o/reference.o ../o/assignment.o ../o/bind.o ../o/let.o ../o/conditional.o ../o/block.o ../o/iteration.o ../o/mapfun.o ../o/prog.o ../o/multival.o ../o/catch.o ../o/symbol.o ../o/cfun.o ../o/cmpaux.o ../o/package.o ../o/big.o ../o/number.o ../o/num_pred.o ../o/num_comp.o ../o/num_arith.o ../o/num_sfun.o ../o/num_co.o ../o/num_log.o ../o/num_rand.o ../o/earith.o ../o/character.o ../o/sequence.o ../o/list.o ../o/hash.o ../o/array.o ../o/string.o ../o/structure.o ../o/toplevel.o ../o/file.o ../o/read.o ../o/backq.o ../o/print.o ../o/format.o ../o/pathname.o ../o/unixfsys.o ../o/unixfasl.o ../o/error.o ../o/unixtime.o ../o/unixsys.o ../o/unixsave.o ../o/unixint.o ../o/funlink.o ../o/fat_string.o ../o/run_process.o ../o/init_pari.o ../mp/mpi-sparc.o ../mp/spa
cat ../h/include.h | sed -e "/include/d" > ../h/mdefs.h
gcc -fwritable-strings -msoft-float -I/usr/local/src/akcl/o -DVOL=volatile -I../h -o rsym rsym.c
../xbin/if-exists /usr/u9/wfs/schelter "../xbin/inc-version"
../xbin/if-exists saved_kcl "rm -f saved_kcl"
cat init_kcl.lsp | \
sed -e "s"DATE"Version(`cat ../majvers`.`cat ../minvers`) `date`g" \
-e 'ssaved_kclsaved_kclg' \
-e 'slinks t)links t)(setq compiler::*cc* "gcc -fwritable-strings -msoft-float -I/usr/local/src/akcl/o -DVOL=volatile")(si::build-symbol-table)g' \
-e "sAKCLDIR/usr/local/src/akclg" \
-e "s(defun lisp-imp(setq si::*akcl-version* '`cat ../minvers`)(defun lisp-imp'g" | \
./raw_kcl ../unixport/
KCl (Kyoto Common Lisp) June 1987 16384 pages
loading ../lsp/export.lsp
loading ../lsp/defmacro.lsp
Initializing ../lsp/evalmacros.o
Initializing ../lsp/top.o
Initializing ../lsp/module.o
loading ../lsp/autoload.lsp
>#<"COMPILER" package>
COMPILER>#<"SYSTEM" package>
SYSTEM>#<"USER" package>
>#<"LISP" package>
LISP>#<"SLOOP" package>
SLOOP>6
SLOOP>#<"USER" package>
>loading ../lsp/predlib.lsp
loading ../lsp/setf.lsp
loading ../lsp/arraylib.lsp
Initializing ../lsp/assert.o
loading ../lsp/defstruct.lsp
sh: 27614 Illegal instruction - core dumped
*** Error code 132
make: Fatal error: Command failed for target `saved_kcl'
Current working directory /usr/local/src/akcl/unixport
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /usr/local/src/akcl
*** Error code 1
make: Fatal error: Command failed for target `all'
romeo{ml}%
*************** without optimize ***************************
romeo{ml}% !make
make -f Smakefile
......
......
......
loading ../lsp/defstruct.lsp
Initializing ../lsp/describe.o
Initializing ../lsp/iolib.o
Initializing ../lsp/listlib.o
Initializing ../lsp/mislib.o
Initializing ../lsp/numlib.o
loading ../lsp/packlib.lsp
Initializing ../lsp/seq.o
Initializing ../lsp/seqlib.o
Initializing ../lsp/trace.o
loading ../lsp/sloop.lsp
loading ../cmpnew/cmpinline.lsp
loading ../cmpnew/cmputil.lsp
loading ../lsp/debug.lsp
loading ../cmpnew/cmptype.lsp
Initializing ../cmpnew/cmpbind.o
loading ../cmpnew/cmpblock.lsp
loading ../cmpnew/cmpcall.lsp
Initializing ../cmpnew/cmpcatch.o
loading ../cmpnew/cmpenv.lsp
Warning: PROCLAIM is being redefined.
Warning: PROCLAMATION is being redefined.loading ../cmpnew/cmpeval.lsp
loading ../cmpnew/cmpflet.lsp
loading ../cmpnew/cmpfun.lsp
Initializing ../cmpnew/cmpif.o
loading ../cmpnew/cmplabel.lsp
loading ../cmpnew/cmplam.lsp
Initializing ../cmpnew/cmplet.o
loading ../cmpnew/cmploc.lsp
Initializing ../cmpnew/cmpmap.o
Initializing ../cmpnew/cmpmulti.o
loading ../cmpnew/cmpspecial.lsp
loading ../cmpnew/cmptag.lsp
loading ../cmpnew/cmptop.lsp
loading ../cmpnew/cmpvar.lsp
loading ../cmpnew/cmpvs.lsp
loading ../cmpnew/cmpwt.lsp
Loading ../cmpnew/fasdmacros.lsp
Finished loading ../cmpnew/fasdmacros.lsp
Building symbol table for ./raw_kcl ..
Loading ../cmpnew/cmpmain.lsp
Warning: COMPILE-FILE is being redefined.
Warning: COMPILE is being redefined.
Warning: DISASSEMBLE is being redefined.
Finished loading ../cmpnew/cmpmain.lsp
Loading ../cmpnew/lfun_list.lsp
Finished loading ../cmpnew/lfun_list.lsp
Loading ../cmpnew/cmpopt.lsp
Finished loading ../cmpnew/cmpopt.lsp
Loading ../lsp/auto.lsp
Finished loading ../lsp/auto.lsp
make -f makefile all "CC=gcc -fwritable-strings -msoft-float -I/usr/local/src/akcl/o -DVOL=volatile" "SU="
make sources
make -f Smakefile sources
make -f Vmakefile
rm -f c/num_include.h c/include.h
make command
(cd unixport; rm -f ../xbin/akcl ; echo "#!/bin/sh" > ../xbin/akcl; \
echo "`pwd`/saved_kcl `pwd`/" >> ../xbin/akcl)
chmod 755 xbin/akcl
rm -f xbin/kcl ; ln xbin/akcl xbin/kcl
(cd bin; make all)
(cd mp ; make all)
make all1 "MPFILES=./mpi-sparc.o ./sparcdivul3.o ./libmport.a"
(cd o; make all)
(cd lsp; make all)
../xbin/if-exists: 29628 Illegal instruction - core dumped
gcc -fwritable-strings -msoft-float -I/usr/local/src/akcl/o -DVOL=volatile -c -I../h arraylib.c
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3/2.3.3/cpp: arraylib.c: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `arraylib.o'
Current working directory /usr/local/src/akcl/lsp
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /usr/local/src/akcl
*** Error code 1
make: Fatal error: Command failed for target `all'
romeo{ml}%
*************** end of trace *********************************