axiom-developer
[Top][All Lists]
Advanced

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

Re: RE: [Axiom-developer] axiom did not compile on sparc solaris


From: Gianluca Gregori
Subject: Re: RE: [Axiom-developer] axiom did not compile on sparc solaris
Date: Wed, 15 Feb 2006 09:55:35 -0500

Thanks for reply.

I am still not able to compile. My answers are interleaved. Bear
in mind I am not an expert programmer, but I would like to use
axiom to do science. 

> on Solaris 8 sparc (280R dual cpu) system. If I simply follow
> the instructions of:
> 
>   ./configure
> 
> You must set your AXIOM and PATH variables. Type:
> 
> To build the rest of the system type:
> 
> export AXIOM=/export/disk0/dmprod/axiom/mnt/solaris9
> export PATH=$AXIOM/bin:$PATH
> make AWK=gawk TAR=gtar PATCH=gpatch

I did that. But I also added --enable-emacsdir=no in the
lsp/Makefile (to the ./configure line) as, for some reasons, gcl
./configure would stop otherwise.


> 
> What release of Axiom are you trying to build and on
> what version of solaris? Why did you choose to use
> --enable-custreloc?

I am using solaris 9 on a sun sparc machine (a tadpole laptop).
I downloaded the Sept 05 tarball. These are the problems I
found:

The first error I encounters is on alloc.c:

[...]
ranlib .libs/libgmp.a
creating libgmp.la
(cd .libs && rm -f libgmp.la && ln -s ../libgmp.la libgmp.la)
gmake[7]: Leaving directory
`/export/home/gregori1/Xcodes/axiom/lsp/gcl-2.6.7/gmp3'
gmake[6]: Leaving directory
`/export/home/gregori1/Xcodes/axiom/lsp/gcl-2.6.7/gmp3'
gmake[5]: Leaving directory
`/export/home/gregori1/Xcodes/axiom/lsp/gcl-2.6.7/gmp3'
touch gmp_all
gmake[4]: Leaving directory
`/export/home/gregori1/Xcodes/axiom/lsp/gcl-2.6.7'
rm -f o/cmpinclude.h ; cp h/cmpinclude.h o
(cd o; gmake all)
gmake[4]: Entering directory
`/export/home/gregori1/Xcodes/axiom/lsp/gcl-2.6.7/o'
gcc -c -Wall -DVOL=volatile -fsigned-char -pipe -O3
-fomit-frame-pointer 
-I/export/home/gregori1/Xcodes/axiom/lsp/gcl-2.6.7/o -I../h
-I../gcl-tk main.c  
In file included from ../h/include.h:37,
                 from main.c:49:
../h/config.h:1:1: warning: "__ELF__" redefined
<built-in>:1:1: warning: this is the location of the previous
definition
main.c: In function 'main':
main.c:181: warning: format '%d' expects type 'int', but
argument 4 has type 'pid_t'
gcc -c -Wall -DVOL=volatile -fsigned-char -pipe -O3
-fomit-frame-pointer 
-I/export/home/gregori1/Xcodes/axiom/lsp/gcl-2.6.7/o -I../h
-I../gcl-tk alloc.c  
In file included from ../h/include.h:37,
                 from alloc.c:31:
../h/config.h:1:1: warning: "__ELF__" redefined
<built-in>:1:1: warning: this is the location of the previous
definition
alloc.c:1663: error: static declaration of 'memalign' follows
non-static declaration
/opt/csw/gcc4/lib/gcc/sparc-sun-solaris2.8/4.0.2/include/stdlib.h:207:
error: previous declaration of 'memalign' was here
gmake[4]: *** [alloc.o] Error 1
gmake[4]: Leaving directory
`/export/home/gregori1/Xcodes/axiom/lsp/gcl-2.6.7/o'
gmake[3]: *** [unixport/saved_pre_gcl] Error 2
gmake[3]: Leaving directory
`/export/home/gregori1/Xcodes/axiom/lsp/gcl-2.6.7'
/bin/sh: unixport/saved_gcl: not found
gmake[2]: *** [gcldir] Error 1
gmake[2]: Leaving directory
`/export/home/gregori1/Xcodes/axiom/lsp'
gmake[1]: *** [lspdir] Error 2
gmake[1]: Leaving directory `/export/home/gregori1/Xcodes/axiom'
gmake: *** [all] Error 2


What I did was to comment out the memalign function in alloc.c.
I also needed to add <sys/sockio.h> in run_process.c.

If I do this, the compilation goes on further but I get an error
at:

[...]
ar: creating libpre_gcl.a
cp ../o/gcllib.a libgclp.a
ranlib libgclp.a
cp init_pre_gcl.lsp.in init_pre_gcl.lsp.tmp
touch raw_pre_gcl_map
gcc -o raw_pre_gcl  \
        -L.    -lpre_gcl -lm  -lsocket -lnsl -lc -lgclp
/export/home/gregori1/Xcodes/axiom/obj/solaris9/lib/libspad.a  
Undefined                       first referenced
 symbol                             in file
libintl_dgettext                   
./libpre_gcl.a(binutils_bfd_bfd.o)
ld: fatal: Symbol referencing errors. No output written to
raw_pre_gcl
collect2: ld returned 1 exit status
gmake[4]: *** [raw_pre_gcl_map] Error 1
gmake[4]: Leaving directory
`/export/home/gregori1/Xcodes/axiom/lsp/gcl-2.6.7/unixport'
gmake[3]: *** [unixport/saved_pre_gcl] Error 2
gmake[3]: Leaving directory
`/export/home/gregori1/Xcodes/axiom/lsp/gcl-2.6.7'
/bin/sh: unixport/saved_gcl: not found
gmake[2]: *** [gcldir] Error 1
gmake[2]: Leaving directory
`/export/home/gregori1/Xcodes/axiom/lsp'
gmake[1]: *** [lspdir] Error 2
gmake[1]: Leaving directory `/export/home/gregori1/Xcodes/axiom'
gmake: *** [all] Error 2

To avoid bfd linking, I then tried to switch to
--enable-custreloc in the gcl compilation. GCL than compiles
(tested out independently), but get another error at

[...]
Loading
/export/home/gregori1/Xcodes/axiom/obj/solaris9/interp/sockio.o
symbol "open_server" is not in base imagesymbol "sock_get_int"
is not in base imagesymbol "sock_send_int" is not in base
imagesymbol "sock_get_string_buf" is not in base imagesymbol
"sock_send_string_len" is not in base imagesymbol
"sock_get_float" is not in base imagesymbol "sock_send_float" is
not in base imagesymbol "sock_send_wakeup" is not in base
imagesymbol "server_switch" is not in base imagesymbol
"flush_stdout" is not in base imagesymbol "sock_send_signal" is
not in base imagesymbol "print_line" is not in base imagesymbol
"plus_infinity" is not in base imagesymbol "minus_infinity" is
not in base imagesymbol "NANQ" is not in base image
Error: Caught fatal error [memory may be damaged]
Fast links are on: do (si::use-fast-links nil) for debugging
Error signalled by SETQ.
Broken at NANQ.  Type :H for Help.
BOOT>>gmake[3]: ***
[/export/home/gregori1/Xcodes/axiom/obj/solaris9/bin/interpsys]
Error 255
gmake[3]: Leaving directory
`/export/home/gregori1/Xcodes/axiom/src/interp'
gmake[2]: *** [interpdir] Error 2
gmake[2]: Leaving directory
`/export/home/gregori1/Xcodes/axiom/src'
gmake[1]: *** [srcdir] Error 2
gmake[1]: Leaving directory `/export/home/gregori1/Xcodes/axiom'
gmake: *** [all] Error 2

In practise, not able to build it. Any suggestions?
Thanks in advance.
--GG




reply via email to

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