bug-prolog
[Top][All Lists]
Advanced

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

Re: Compilation problem with sun sparch solaris 9


From: Daniel Diaz
Subject: Re: Compilation problem with sun sparch solaris 9
Date: Wed, 10 Sep 2003 09:31:46 +0200
User-agent: IMP/PHP IMAP webmail program 2.2.8

Try to use the GNU assembly (gas). You can download it from any gnu mirror. Then
create a link to invoke gas when you type as (try as -v). this should work.


Quoting Robert Staerk <address@hidden>:

> Hi,
> I have the folowing problem comiling GNU Prolog 1.2.16:
> 
>    gplc -c utils.wam
>    /var/tmp/gplcY2v3tc.s: Assembler messages:
>    /var/tmp/gplcY2v3tc.s:1075: Error: Illegal operands:
>    PC-relative operand can't be a constant
> 
> Can anybody help me? Thank you.
> Best regards,
> Robert Staerk
> 
> 
> tomis> configure --prefix=/home/staerk
> checking for gcc... gcc
> checking for C compiler default output... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for executable suffix...
> checking for object suffix... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for ranlib... ranlib
> checking whether make sets ${MAKE}... yes
> checking for a BSD compatible install... ./install-sh -c
> checking whether ln -s works... yes
> checking build system type... sparc-sun-solaris2.9
> checking host system type... sparc-sun-solaris2.9
> checking how to run the C preprocessor... gcc -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... no
> checking for unistd.h... yes
> checking for long... yes
> checking size of long... 4
> checking for sys/ioctl_compat.h... no
> checking for termios.h... yes
> checking for malloc.h... yes
> checking for stdlib.h... (cached) yes
> checking for unistd.h... (cached) yes
> checking for getpagesize... yes
> checking for working mmap... yes
> checking for mallopt... no
> checking for fgetc... yes
> checking for gcc option to accept ANSI C... none needed
> checking for inline... inline
> checking for socket... no
> checking for socket in -lsocket... yes
> checking for gethostbyname... no
> checking for gethostbyname in -lnsl... yes
> DIRECTORIES
> --> Installation:       /home/staerk/gprolog-1.2.16
> --> Link to binaries:   /home/staerk/bin
> --> Documentation:      /home/staerk/gprolog-1.2.16/doc
> --> HTML documentation: /home/staerk/gprolog-1.2.16/doc/Html
> --> Examples:           /home/staerk/gprolog-1.2.16
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating TopComp/Makefile
> config.status: creating Pl2Wam/Makefile
> config.status: creating Wam2Ma/Makefile
> config.status: creating Ma2Asm/Makefile
> config.status: creating Fd2C/Makefile
> config.status: creating Linedit/Makefile
> config.status: creating W32GUICons/Makefile
> config.status: creating EnginePl/Makefile
> config.status: creating BipsPl/Makefile
> config.status: creating EngineFD/Makefile
> config.status: creating BipsFD/Makefile
> config.status: creating EnginePl/gp_config.h
> config.status: EnginePl/gp_config.h is unchanged
> tomis> make
> (cd EnginePl; make config)
> make[1]: Entering directory
> `/home/staerk/tmp/gprolog-1.2.16/src/EnginePl'
> gcc -O3 -fomit-frame-pointer  -o pl_config pl_config.c
> ./pl_config
> 
> -------------------------------
> --- GNU PROLOG INSTALLATION ---
> -------------------------------
> 
> GNU Prolog version: 1.2.16 (Sep 19 2002)
> Operating system  : solaris2.9
> Processor         : sparc
> Size of a word    : 32 bits
> C compiler        : gcc
> C flags           : -O3 -fomit-frame-pointer
> C flags machine   :
> Loader flags      :
> Loader libraries  : -lm -lsocket -lnsl
> Use line editor   : Yes
> Use piped consult : Yes
> Use sockets       : Yes
> Use FD solver     : Yes
> Use machine regs. : Yes
> Used register(s)  : g6 g7
> 
> ------------------------------
> 
> (cd ../TopComp; make gplc)
> make[2]: Entering directory
> `/home/staerk/tmp/gprolog-1.2.16/src/TopComp'
> make[2]: *** Warning: File `../EnginePl/wam_regs.h' has modification 
> time in the future (2003-09-09 09:44:13.835419 > 2003-09-09 
> 09:44:13.691371577)
> gcc -O3 -fomit-frame-pointer -o gplc top_comp.c -lm -lsocket -lnsl
> make[2]: warning:  Clock skew detected.  Your build may be incomplete.
> make[2]: Leaving directory
> `/home/staerk/tmp/gprolog-1.2.16/src/TopComp'
> make[1]: Leaving directory
> `/home/staerk/tmp/gprolog-1.2.16/src/EnginePl'
> . ./SETVARS;for i in TopComp EnginePl Wam2Ma Ma2Asm Linedit BipsPl 
> Pl2Wam Fd2C EngineFD BipsFD;do (cd $i; make) || exit 1; done;\
> (cd TopComp; make gprolog)
> make[1]: Entering directory
> `/home/staerk/tmp/gprolog-1.2.16/src/TopComp'
> make[1]: *** Warning: File `gplc' has modification time in the future 
> (2003-09-09 09:44:24.085685 > 2003-09-09 09:44:23.970864438)
> gcc -O3 -fomit-frame-pointer -o hexgplc hexfilter.c
> make[1]: warning:  Clock skew detected.  Your build may be incomplete.
> make[1]: Leaving directory
> `/home/staerk/tmp/gprolog-1.2.16/src/TopComp'
> make[1]: Entering directory
> `/home/staerk/tmp/gprolog-1.2.16/src/EnginePl'
> gcc -O3 -fomit-frame-pointer  -o cpp_headers cpp_headers.c
> D=`(cd ..;for i in *;do test -d $i && X="$X 
> /home/staerk/tmp/gprolog-1.2.16/src/$i";done;echo $X)`; ./cpp_headers 
> headers.h gprolog.h $D
> gplc -c -C '-O3 -fomit-frame-pointer' obj_begin.c
> gplc -c -C '-O3 -fomit-frame-pointer' obj_end.c
> gplc -c -C '-O3 -fomit-frame-pointer' machine.c
> machine.c: In function `M_Allocate_Stacks':
> machine.c:325: warning: passing arg 1 of `munmap' from incompatible 
> pointer type
> gplc -c -C '-O3 -fomit-frame-pointer' machine1.c
> gplc -c -C '-O3 -fomit-frame-pointer' mem_alloc.c
> gplc -c -C '-O3 -fomit-frame-pointer' misc.c
> gplc -c -C '-O3 -fomit-frame-pointer' hash.c
> gplc -c -C '-O3 -fomit-frame-pointer' obj_chain.c
> gplc -c -C '-O3 -fomit-frame-pointer' engine.c
> gplc -c engine1.c
> gplc -c -C '-O3 -fomit-frame-pointer' wam_inst.c
> gplc -c -C '-O3 -fomit-frame-pointer' atom.c
> gplc -c -C '-O3 -fomit-frame-pointer' pred.c
> gplc -c -C '-O3 -fomit-frame-pointer' oper.c
> gplc -c -C '-O3 -fomit-frame-pointer' if_no_fd.c
> gplc -c -C '-O3 -fomit-frame-pointer' main.c
> rm -f libengine_pl.a
> ar rc  libengine_pl.a machine.o machine1.o mem_alloc.o misc.o hash.o 
> obj_chain.o engine.o engine1.o wam_inst.o atom.o pred.o oper.o 
> if_no_fd.o main.o
> ranlib libengine_pl.a
> make[1]: Leaving directory
> `/home/staerk/tmp/gprolog-1.2.16/src/EnginePl'
> make[1]: Entering directory
> `/home/staerk/tmp/gprolog-1.2.16/src/Wam2Ma'
> gcc -O3 -fomit-frame-pointer -c wam2ma.c
> gcc -O3 -fomit-frame-pointer -c wam_parser.c
> gcc -O3 -fomit-frame-pointer -o wam2ma wam2ma.o wam_parser.o
> make[1]: Leaving directory
> `/home/staerk/tmp/gprolog-1.2.16/src/Wam2Ma'
> make[1]: Entering directory
> `/home/staerk/tmp/gprolog-1.2.16/src/Ma2Asm'
> gcc -O3 -fomit-frame-pointer -c ma2asm.c
> gcc -O3 -fomit-frame-pointer -c ma_parser.c
> gcc -O3 -fomit-frame-pointer -c ma2asm_inst.c
> gcc -O3 -fomit-frame-pointer -o ma2asm ma2asm.o ma2asm_inst.o
> ma_parser.o
> make[1]: Leaving directory
> `/home/staerk/tmp/gprolog-1.2.16/src/Ma2Asm'
> make[1]: Entering directory
> `/home/staerk/tmp/gprolog-1.2.16/src/Linedit'
> gcc -c -O3 -fomit-frame-pointer linedit.c
> gcc -c -O3 -fomit-frame-pointer terminal.c
> gcc -c -O3 -fomit-frame-pointer ctrl_c.c
> rm -f liblinedit.a
> ar rc  liblinedit.a linedit.o terminal.o ctrl_c.o
> ranlib liblinedit.a
> make[1]: Leaving directory
> `/home/staerk/tmp/gprolog-1.2.16/src/Linedit'
> make[1]: Entering directory
> `/home/staerk/tmp/gprolog-1.2.16/src/BipsPl'
> gplc -c -C '-O3 -fomit-frame-pointer -funsigned-char' error_supp.c
> gplc -c -C '-O3 -fomit-frame-pointer -funsigned-char' c_supp.c
> gplc -c -C '-O3 -fomit-frame-pointer -funsigned-char' foreign_supp.c
> gplc -c -C '-O3 -fomit-frame-pointer -funsigned-char' pred_supp.c
> gplc -c -C '-O3 -fomit-frame-pointer -funsigned-char' term_supp.c
> gplc -c -C '-O3 -fomit-frame-pointer -funsigned-char' stream_supp.c
> gplc -c -C '-O3 -fomit-frame-pointer -funsigned-char' scan_supp.c
> gplc -c -C '-O3 -fomit-frame-pointer -funsigned-char' parse_supp.c
> gplc -c -C '-O3 -fomit-frame-pointer -funsigned-char' write_supp.c
> gplc -c -C '-O3 -fomit-frame-pointer -funsigned-char' dynam_supp.c
> gplc -c -C '-O3 -fomit-frame-pointer -funsigned-char' callinf_supp.c
> gplc -c -C '-O3 -fomit-frame-pointer -funsigned-char' bc_supp.c
> gplc -c foreign.wam
> gplc -c pl_error.wam
> gplc -c utils.wam
> /var/tmp/gplcY2v3tc.s: Assembler messages:
> /var/tmp/gplcY2v3tc.s:1075: Error: Illegal operands: PC-relative operand
> 
> can't be a constant
> /var/tmp/gplcY2v3tc.s:1095: Error: Illegal operands
> /var/tmp/gplcY2v3tc.s:1105: Error: Illegal operands
> compilation failed
> make[1]: *** [utils.o] Error 1
> make[1]: Leaving directory
> `/home/staerk/tmp/gprolog-1.2.16/src/BipsPl'
> make: *** [all] Error 1
> 
> 
> 
> 
> 
> --------------------------------------------------------
> Robert F. Staerk                   (St\"ark, St&auml;rk)
> Theoretische Informatik             phone: +41 1 6327970
> ETH Zentrum                           fax: +41 1 6321478
> CH-8092 Zuerich           http://www.inf.ethz.ch/~staerk
> --------------------------------------------------------
> 
> 
> 
> _______________________________________________
> Bug-prolog mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-prolog
> 
> --
> Ce message a subi une analyse antivirus 
> par MailScanner ; il est vraisemblablement
> sans danger.
> 
> 



===============================================
                 Daniel Diaz
University of Paris 1      INRIA Rocquencourt
75013 Paris FRANCE      78153 Le Chesnay FRANCE
        web: http://pauillac.inria.fr/~diaz
        email: address@hidden





--
Ce message a subi une analyse antivirus 
par MailScanner ; il est vraisemblablement
sans danger.





reply via email to

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