axiom-developer
[Top][All Lists]
Advanced

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

[Axiom-developer] Re: bad lisp build on Fedora


From: Camm Maguire
Subject: [Axiom-developer] Re: bad lisp build on Fedora
Date: Tue, 12 Oct 2004 15:15:40 -0400
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (Unebigory ōmae) APEL/10.3 Emacs/21.2 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI)

I think you have an old (pre 3.0) gcc.  In which case, you need:

--- h/gmp_wrappers.h    2004-08-16 17:28:20.000000000 +0000
+++ ../gclcvs-2.7.0/h/gmp_wrappers.h    2004-09-07 16:20:49.000000000 +0000
@@ -96,8 +96,8 @@
 
 #define MEM_GMP_CALL(n_,rt_,a_,s_,b_...) \
    GMP_EXTERN_INLINE Join(RF_,rt_) Join(m,a_)(Join(P,n_)(b_)) { \
-           Join(RD_,rt_);\
            int j;\
+           Join(RD_,rt_);\
           jmp_gmp=0;\
            if ((j=setjmp(gmp_jmp)))\
               GBC(j);\

Please let me know if problems persist.  This and one other minor
issue might trigger a 2.6.6 soon, if that is not too inconvenient. 

Take care,


Tim Daly  <address@hidden> writes:

> Camm,
> 
> Attached is a console showing a failure in the GCL build.
> This occurs on Mac OSX and Fedora.
> Can you give me a clue?
> 
> Tim
> 
> 
> =======================================================================
> address@hidden axiom]$ make
> 0 SPAD=/home/users/gilbert/axiom/mnt/linux SYS=linux 
> SPD=/home/users/gilbert/axiom LSP=/home/users/gilbert/axiom/lsp 
> GCLDIR=/home/users/gilbert/axiom/lsp/gcl-2.6.5 
> SRC=/home/users/gilbert/axiom/src INT=/home/users/gilbert/axiom/int 
> OBJ=/home/users/gilbert/axiom/obj MNT=/home/users/gilbert/axiom/mnt 
> ZIPS=/home/users/gilbert/axiom/zips TMP=/home/users/gilbert/axiom/obj/tmp 
> SPADBIN=/home/users/gilbert/axiom/mnt/linux/bin 
> INC=/home/users/gilbert/axiom/src/include 
> CCLBASE=/home/users/gilbert/axiom/obj/linux/ccl/ccllisp PART=cprogs 
> SUBPART=everything NOISE=-o /home/users/gilbert/axiom/obj/tmp/trace 
> GCLVERSION=gcl-2.6.5 
> TANGLE=/home/users/gilbert/axiom/mnt/linux/bin/lib/notangle
> 10 copying /home/users/gilbert/axiom/src/scripts to 
> /home/users/gilbert/axiom/mnt/linux/bin
> 1 making a linux system, PART=cprogs SUBPART=everything
> 2 Environment SPAD=/home/users/gilbert/axiom/mnt/linux SYS=linux 
> SPD=/home/users/gilbert/axiom LSP=/home/users/gilbert/axiom/lsp 
> GCLDIR=/home/users/gilbert/axiom/lsp/gcl-2.6.5 
> SRC=/home/users/gilbert/axiom/src INT=/home/users/gilbert/axiom/int 
> OBJ=/home/users/gilbert/axiom/obj MNT=/home/users/gilbert/axiom/mnt 
> ZIPS=/home/users/gilbert/axiom/zips TMP=/home/users/gilbert/axiom/obj/tmp 
> SPADBIN=/home/users/gilbert/axiom/mnt/linux/bin 
> INC=/home/users/gilbert/axiom/src/include 
> CCLBASE=/home/users/gilbert/axiom/obj/linux/ccl/ccllisp PART=cprogs 
> SUBPART=everything NOISE=-o /home/users/gilbert/axiom/obj/tmp/trace 
> GCLVERSION=gcl-2.6.5 
> TANGLE=/home/users/gilbert/axiom/mnt/linux/bin/lib/notangle
> make[1]: Entering directory `/home/users/gilbert/axiom'
> 11 checking directory structure
> 12 Environment: PLF=LINUXplatform CCF=-O2 -fno-strength-reduce -Wall 
> -D_GNU_SOURCE -DLINUXplatform -I/usr/X11/include LDF=-L/usr/X11R6/lib CC=gcc 
> AWK=gawk RANLIB=ranlib TOUCH=touch TAR=tar 
> AXIOMXLROOT=/home/users/gilbert/axiom/mnt/linux/compiler O=o BYE=bye LISP=lsp 
> DAASE=/home/users/gilbert/axiom/src/share XLIB=/usr/X11R6/lib
> 18 making /home/users/gilbert/axiom/src
> make[2]: Entering directory `/home/users/gilbert/axiom/src'
> 1 making /home/users/gilbert/axiom/src/scripts
> make[3]: Entering directory `/home/users/gilbert/axiom/src/scripts'
> 1 making /home/users/gilbert/axiom/src/scripts
> make[3]: Leaving directory `/home/users/gilbert/axiom/src/scripts'
> 17 making /home/users/gilbert/axiom/src/lib
> make[3]: Entering directory `/home/users/gilbert/axiom/src/lib'
> 72 finished making /home/users/gilbert/axiom/src/lib
> make[3]: Leaving directory `/home/users/gilbert/axiom/src/lib'
> make[2]: Leaving directory `/home/users/gilbert/axiom/src'
> 0 PLF=LINUXplatform CCF=-O2 -fno-strength-reduce -Wall -D_GNU_SOURCE 
> -DLINUXplatform -I/usr/X11/include LDF=-L/usr/X11R6/lib CC=gcc AWK=gawk 
> RANLIB=ranlib TOUCH=touch TAR=tar 
> AXIOMXLROOT=/home/users/gilbert/axiom/mnt/linux/compiler O=o BYE=bye LISP=lsp 
> DAASE=/home/users/gilbert/axiom/src/share XLIB=/usr/X11R6/lib
> 10 copying /home/users/gilbert/axiom/src/scripts to 
> /home/users/gilbert/axiom/mnt/linux/bin
> 19 making /home/users/gilbert/axiom/lsp
> make[2]: Entering directory `/home/users/gilbert/axiom/lsp'
> 2 building gcl-2.6.5
> 3 applying EXTRAS patch to h/linux.defs
> patching file linux.defs
> 4 setup ini files for EXTRAS patch
> 6 applying libspad.a patch to unixport/makefile
> patching file makefile
> 7 applying toploop patch to unixport/init_gcl.lsp
> patching file init_gcl.lsp.in
> 11 applying tail-recursive noise patch
> patching file gcl_cmpflet.lsp
> Hunk #1 succeeded at 390 with fuzz 2.
> 12 applying tail-recursive noise patch
> patching file gcl_cmpcall.lsp
> 26 copy gcl_collectfn.lsp to 
> /home/users/gilbert/axiom/obj/linux/lsp/collectfn.lsp
> 26a copy sys-proclaim.lisp to 
> /home/users/gilbert/axiom/obj/linux/lsp/sys-proclaim.lisp
> loading cache ./config.cache
> checking host system type... i686-pc-linux-gnu
> host=i686-pc-linux-gnu
> enable_machine=
> use=386-linux
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc    ) works... yes
> checking whether the C compiler (gcc    ) is a cross-compiler... no
> checking whether we are using GNU C... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking how to run the C preprocessor... (cached) gcc -E
> checking for gawk... (cached) gawk
> checking system version (for dynamic loading)... checking for makeinfo... 
> (cached) makeinfo
> Linux-2.4.22-1.2115.nptl
> checking for gmp.h... (cached) yes
> checking for __gmpz_init in -lgmp... (cached) yes
> checking for external gmp version... checking for leading underscore in 
> object symbols... no
> checking for GNU ld option -Map... yes
> checking for size of gmp limbs... 4
> checking _SHORT_LIMB... no
> checking _LONG_LONG_LIMB... no
> checking for X... (cached) libraries /usr/X11R6/lib, headers 
> /usr/X11R6/include
> checking for dnet_ntoa in -ldnet... (cached) no
> checking for dnet_ntoa in -ldnet_stub... (cached) no
> checking for gethostbyname... (cached) yes
> checking for connect... (cached) yes
> checking for remove... (cached) yes
> checking for shmat... (cached) yes
> checking for IceConnectionNumber in -lICE... (cached) yes
> -I/usr/X11R6/include
> -L/usr/X11R6/lib
> 
> -lSM -lICE
> checking for main in -lXmu... (cached) yes
> checking for main in -lXt... (cached) yes
> checking for main in -lXext... (cached) yes
> checking for main in -lXaw... (cached) yes
> checking for main in -lX11... (cached) yes
> checking for bfd.h... (cached) yes
> checking for bfd_init in -lbfd... (cached) yes
> checking if need to define CONST for bfd... no
> checking for useable bfd_boolean... yes
> checking size of long... (cached) 4
> checking sizeof struct contblock... 8
> checking for endian.h... (cached) yes
> checking endianness... little
> checking for sbrk... yes
> checking for randomized sbrk... yes
> checking for randomized brk remedy... yes
> checking finding DBEGIN... got 0x8000000
> checking finding CSTACK_ADDRESS... got -1075197276
> checking sizeof long long int... yes
> checking for pagewidth... 12
> checking for getcwd... (cached) yes
> checking for getwd... (cached) yes
> checking for uname... (cached) yes
> checking for gettimeofday... (cached) yes
> checking for sys/ioctl.h... (cached) yes
> checking for elf.h... (cached) yes
> checking for elf_abi.h... (cached) no
> checking for BSDgettimeofday... (cached) no
> checking for gettimeofday... (cached) yes
> checking for gettimeofday declaration... present
> checking for sin in -lm... (cached) yes
> checking for main in -lmingwex... (cached) no
> checking for math.h... (cached) yes
> checking for values.h... (cached) yes
> checking for float.h... (cached) yes
> checking for isnormal... yes
> checking for isfinite... yes
> checking for sockets... checking for connect... (cached) yes
> checking for gethostbyname... (cached) yes
> checking for readline/readline.h... (cached) yes
> checking for main in -lreadline... (cached) yes
> checking for rl_completion_matches in -lreadline... (cached) no
> checking For network code for nsocket.c... yes
> checking check for listen using fcntl... yes
> checking for profil... (cached) yes
> checking for setenv... (cached) yes
> checking for _cleanup... (cached) no
> checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... O_NONBLOCK
> checking check for SV_ONSTACK... yes
> checking check for SIGSYS... yes
> checking check for SIGEMT... no
> checking for asm/sigcontext.h... (cached) yes
> checking for asm/signal.h... (cached) yes
> checking for sigcontext...... sigcontext in signal.h
> checking for emacs... (cached) /usr/bin/emacs
> checking emacs site lisp directory... /usr/share/emacs/21.3/site-lisp
> checking emacs default.el... /usr/share/emacs/21.3/site-lisp/default.el
> checking emacs info/dir... /usr/share/info/
> checking for tcl/tk... checking for tclsh... (cached) tclsh
> checking for main in -llieee... (cached) no
> not found
> checking alloca... yes
> checking Checking for buggy gcc version from redhat... no
> creating ./config.status
> creating makedefc
> creating windows/gcl.iss
> creating windows/sysdir.bat
> creating windows/install.lsp
> creating h/gclincl.h
> makedefc
> 
> # begin makedefs
> 
> # use=386-linux
> 
> # for main link of raw_gcl
> LIBS=    -lm  -lgmp /usr/lib/libbfd.a /apps/gcc-2.95.3/lib/libiberty.a 
> -lreadline -lncurses
> 
> #The multi precision library stuff
> MPFILES=$(MPDIR)/@MPI_FILE@ $(MPDIR)/libmport.a
> 
> 
> # root for the installation, eg /usr/local
> # This would cause make install to create /usr/local/bin/gcl and
> # /usr/local/lib/gcl-2-??/* with some basic files.
> prefix=/usr/local
> 
> # where to place the info files
> INFO_DIR=/usr/share/info/
> 
> # where to put emacs lisp files.
> EMACS_SITE_LISP=/usr/share/emacs/21.3/site-lisp
> 
> # the default.el file
> EMACS_DEFAULT_EL=/usr/share/emacs/21.3/site-lisp/default.el
> 
> # numerous TCL/TK variables culled from the tkConfig.sh and tclConfig.sh
> # if these are found.
> TK_CONFIG_PREFIX=
> TK_LIBRARY=
> TCL_LIBRARY=
> TK_XINCLUDES=
> TK_INCLUDE=
> TCL_INCLUDE=
> TK_LIB_SPEC=
> TK_BUILD_LIB_SPEC=
> TK_XLIBSW=
> TK_XINCLUDES=
> TCL_LIB_SPEC=
> TCL_DL_LIBS=
> TCL_LIBS=
> 
> NOTIFY=yes
> CC=gcc
> CFLAGS=  -Wall -DVOL=volatile -fsigned-char -pipe -O3 -fomit-frame-pointer  
> -I$(GCLDIR)/o
> FINAL_CFLAGS=  -Wall -DVOL=volatile -fsigned-char -pipe 
> NIFLAGS=  -Wall -DVOL=volatile -fsigned-char -pipe   -I$(GCLDIR)/o
> O3FLAGS=-O3 -fomit-frame-pointer
> O2FLAGS=-O
> 
> RL_OBJS=gcl_readline.o
> 
> RL_LIB=
> 
> MAKEINFO=makeinfo
> 
> FLISP=saved_gcl
> SYSTEM=gcl
> BUILD_BFD=
> GMPDIR=gmp3
> X_LIBS= -L/usr/X11R6/lib -lXmu -lXt -lXext -lXaw -lX11
> X_CFLAGS= -I/usr/X11R6/include
> 
> PROCESSOR_FLAGS=
> 
> EXTRA_LOBJS=
> LEADING_UNDERSCORE=
> GNU_LD=1
> add-defs1 386-linux
> using 386-linux.defs
> make[3]: Entering directory `/home/users/gilbert/axiom/lsp/gcl-2.6.5'
> cat h/config.h | sed -e "1,/Begin for cmpincl/d" \
>       -e "/End for cmpinclude/,50000d" > tmpx
> echo -e '#include "h/config.h"\n#ifdef SGC\n"#define SGC"\n#else\n"#undef 
> SGC"\n#endif' | cpp 2>/dev/null| grep -v '^ *$' | tail -1l | tr -d '"' >>tmpx
> cat h/cmpincl1.h h/gclincl.h h/compbas.h h/enum.h h/mgmp.h h/object.h h/vs.h 
> h/bds.h h/frame.h h/lex.h h/eval.h    h/funlink.h h/att_ext.h h/new_decl.h 
> h/compbas2.h h/compat.h h/cmponly.h o/regexp.h h//protoize.h >> tmpx
> ./xbin/move-if-changed mv tmpx h/cmpinclude.h
> tmpx and h/cmpinclude.h were not the same.
> ln tmpx h/cmpinclude.h
> ./xbin/move-if-changed cp h/cmpinclude.h o/cmpinclude.h
> h/cmpinclude.h and o/cmpinclude.h were not the same.
> ln h/cmpinclude.h o/cmpinclude.h
> (cd bin; make all)
> make[4]: Entering directory `/home/users/gilbert/axiom/lsp/gcl-2.6.5/bin'
> make[4]: Nothing to be done for `all'.
> make[4]: Leaving directory `/home/users/gilbert/axiom/lsp/gcl-2.6.5/bin'
> make mpfiles
> make[4]: Entering directory `/home/users/gilbert/axiom/lsp/gcl-2.6.5'
> make[4]: Nothing to be done for `mpfiles'.
> make[4]: Leaving directory `/home/users/gilbert/axiom/lsp/gcl-2.6.5'
> rm -f o/cmpinclude.h ; cp h/cmpinclude.h o
> (cd o; make all)
> make[4]: Entering directory `/home/users/gilbert/axiom/lsp/gcl-2.6.5/o'
> [ -e ../h/new_decl.h ] || touch ../h/new_decl.h
> gcc -DNO_DEFUN -Wall -DVOL=volatile -fsigned-char -pipe -O3 
> -fomit-frame-pointer  -I/home/users/gilbert/axiom/lsp/gcl-2.6.5/o -I../h 
> -I../gcl-tk -E eval.c | sed -e 's:\"[ ]*):\"):g' | ./grab_defs > eval.ini
> echo '#include "make-decl.h"' > foo.c
> cat main.ini alloc.ini gbc.ini bitop.ini typespec.ini eval.ini macros.ini 
> lex.ini bds.ini frame.ini predicate.ini reference.ini assignment.ini bind.ini 
> let.ini conditional.ini block.ini iteration.ini mapfun.ini prog.ini 
> multival.ini catch.ini symbol.ini cfun.ini cmpaux.ini package.ini big.ini 
> number.ini num_pred.ini num_comp.ini num_arith.ini num_sfun.ini num_co.ini 
> num_log.ini num_rand.ini earith.ini character.ini sequence.ini list.ini 
> hash.ini array.ini string.ini regexpr.ini structure.ini toplevel.ini file.ini 
> read.ini backq.ini print.ini format.ini pathname.ini unixfsys.ini 
> unixfasl.ini error.ini unixtime.ini unixsys.ini unixsave.ini funlink.ini 
> plt.ini fat_string.ini ./run_process.ini nfunlink.ini usig.ini usig2.ini 
> utils.ini makefun.ini sockets.ini gmp_wrappers.ini clxsocket.ini 
> init_pari.ini nsocket.ini ./sfasl.ini 
> /home/users/gilbert/axiom/obj/linux/lib/cfuns-c.ini 
> /home/users/gilbert/axiom/obj/linux/lib/sockio-c.ini gcl_readline.ini >> foo.c
> gcc -E -I../h foo.c | sed -n -e '/#/d' -e '/DO_/d' -e '/[a-zA-Z;]/p' > 
> ../h/new_decl.h
> rm foo.c
> gcc -c -Wall -DVOL=volatile -fsigned-char -pipe -O3 -fomit-frame-pointer  
> -I/home/users/gilbert/axiom/lsp/gcl-2.6.5/o -I../h -I../gcl-tk main.c  
> In file included from ../h/../h/notcomp.h:289,
>                  from ../h/include.h:71,
>                  from main.c:49:
> ../h/../h/gmp_wrappers.h: In function `m__gmpz_add':
> ../h/../h/gmp_wrappers.h:111: parse error before `int'
> ../h/../h/gmp_wrappers.h:111: `j' undeclared (first use in this function)
> ../h/../h/gmp_wrappers.h:111: (Each undeclared identifier is reported only 
> once
> ../h/../h/gmp_wrappers.h:111: for each function it appears in.)
> ../h/../h/gmp_wrappers.h: In function `m__gmpz_add_ui':
> ../h/../h/gmp_wrappers.h:112: parse error before `int'
> ../h/../h/gmp_wrappers.h:112: `j' undeclared (first use in this function)
> ../h/../h/gmp_wrappers.h: In function `m__gmpz_sub':
> ../h/../h/gmp_wrappers.h:113: parse error before `int'
> ../h/../h/gmp_wrappers.h:113: `j' undeclared (first use in this function)
> ../h/../h/gmp_wrappers.h: In function `m__gmpz_sub_ui':
> ../h/../h/gmp_wrappers.h:114: parse error before `int'
> ../h/../h/gmp_wrappers.h:114: `j' undeclared (first use in this function)
> ../h/../h/gmp_wrappers.h: In function `m__gmpz_mul':
> ../h/../h/gmp_wrappers.h:115: parse error before `int'
> ../h/../h/gmp_wrappers.h:115: `j' undeclared (first use in this function)
> ../h/../h/gmp_wrappers.h: In function `m__gmpz_mul_si':
> ../h/../h/gmp_wrappers.h:116: parse error before `int'
> ../h/../h/gmp_wrappers.h:116: `j' undeclared (first use in this function)
> ../h/../h/gmp_wrappers.h: In function `m__gmpz_mul_2exp':
> ../h/../h/gmp_wrappers.h:117: parse error before `int'
> ../h/../h/gmp_wrappers.h:117: `j' undeclared (first use in this function)
> ../h/../h/gmp_wrappers.h: In function `m__gmpz_neg':
> ../h/../h/gmp_wrappers.h:118: parse error before `int'
> ../h/../h/gmp_wrappers.h:118: `j' undeclared (first use in this function)
> ../h/../h/gmp_wrappers.h: In function `m__gmpz_tdiv_qr':
> ../h/../h/gmp_wrappers.h:119: parse error before `int'
> ../h/../h/gmp_wrappers.h:119: `j' undeclared (first use in this function)
> ../h/../h/gmp_wrappers.h: In function `m__gmpz_fdiv_q_2exp':
> ../h/../h/gmp_wrappers.h:120: parse error before `int'
> ../h/../h/gmp_wrappers.h:120: `j' undeclared (first use in this function)
> ../h/../h/gmp_wrappers.h: In function `m__gmpz_and':
> ../h/../h/gmp_wrappers.h:122: parse error before `int'
> ../h/../h/gmp_wrappers.h:122: `j' undeclared (first use in this function)
> ../h/../h/gmp_wrappers.h: In function `m__gmpz_xor':
> ../h/../h/gmp_wrappers.h:123: parse error before `int'
> ../h/../h/gmp_wrappers.h:123: `j' undeclared (first use in this function)
> ../h/../h/gmp_wrappers.h: In function `m__gmpz_ior':
> ../h/../h/gmp_wrappers.h:124: parse error before `int'
> ../h/../h/gmp_wrappers.h:124: `j' undeclared (first use in this function)
> ../h/../h/gmp_wrappers.h: In function `m__gmpz_com':
> ../h/../h/gmp_wrappers.h:125: parse error before `int'
> ../h/../h/gmp_wrappers.h:125: `j' undeclared (first use in this function)
> ../h/../h/gmp_wrappers.h: In function `m__gmpz_init':
> ../h/../h/gmp_wrappers.h:127: parse error before `int'
> ../h/../h/gmp_wrappers.h:127: `j' undeclared (first use in this function)
> ../h/../h/gmp_wrappers.h: In function `m__gmpz_set':
> ../h/../h/gmp_wrappers.h:128: parse error before `int'
> ../h/../h/gmp_wrappers.h:128: `j' undeclared (first use in this function)
> ../h/../h/gmp_wrappers.h: In function `m__gmpz_set_ui':
> ../h/../h/gmp_wrappers.h:129: parse error before `int'
> ../h/../h/gmp_wrappers.h:129: `j' undeclared (first use in this function)
> ../h/../h/gmp_wrappers.h: In function `m__gmpz_set_si':
> ../h/../h/gmp_wrappers.h:130: parse error before `int'
> ../h/../h/gmp_wrappers.h:130: `j' undeclared (first use in this function)
> make[4]: *** [main.o] Error 1
> make[4]: Leaving directory `/home/users/gilbert/axiom/lsp/gcl-2.6.5/o'
> make[3]: *** [unixport/saved_pre_gcl] Error 2
> make[3]: Leaving directory `/home/users/gilbert/axiom/lsp/gcl-2.6.5'
> /bin/sh: line 1: unixport/saved_gcl: No such file or directory
> make[2]: *** [gcldir] Error 127
> make[2]: Leaving directory `/home/users/gilbert/axiom/lsp'
> make[1]: *** [lspdir] Error 2
> make[1]: Leaving directory `/home/users/gilbert/axiom'
> make: *** [all] Error 2
> address@hidden axiom]$ 
> 
> 
> 

-- 
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]