users-prolog
[Top][All Lists]
Advanced

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

FW: Re: error compiling prolog


From: sheon banks
Subject: FW: Re: error compiling prolog
Date: Thu, 05 Feb 2004 12:44:03 +0000

I removed the last tar installation and started with a clean env. I changed the sparc_any.c
file as suggested and everything compiled.

Thank you
sheon

From: Alexander Diemand <address@hidden>
To: "sheon banks" <address@hidden>
Subject: Re: error compiling prolog
Date: Thu, 5 Feb 2004 09:28:28 +0100

Hi,

There seems to be a buffer overflow!

Can you please change in the file src/Ma2Asm/sparc_any.c
the line which states "char delay_operands[64];"
to something "char delay_operands[512];". Just increasing this number should
do for the moment.

Then, best is to run "make clean" and "make" again.

If you are successful, please send the changes you made with a short
description to the mailing list as well.

Hope this helps

Alex.



On Thursday 05 February 2004 02:07, you wrote:
> From: Alexander Diemand <address@hidden>
>
> >To: "sheon banks" <address@hidden>
> >Subject: Re: error compiling prolog
> >Date: Thu, 5 Feb 2004 01:12:09 +0100
> >
> >Hi,
> >
> >This looks great!!
> >Can you now please show me the file bas.S??
> >You can send me that file attached to an email.
> >That will help.
> >
> >Alex.
> >
> >On Wednesday 04 February 2004 22:21, you wrote:
> > > --- file: utils.wam
> > > wam2ma -o /var/tmp/gplcRdEYkb.ma utils.wam
> > > ma2asm -o bad.S /var/tmp/gplcRdEYkb.ma
> > > delete /var/tmp/gplcRdEYkb.ma
> > >
> > > The full error:
> > >
> > > (cd TopComp; make gprolog)
> > > gcc -O3 -fomit-frame-pointer -c ma2asm_inst.c
> > > gcc -O3 -fomit-frame-pointer -o ma2asm ma2asm.o ma2asm_inst.o
> >
> >ma_parser.o
> >
> > > `liblinedit.a' is up to date.
> > > gplc -c utils.wam
> > > as: "/var/tmp/gplcyT8Mvc.s", line 1055: error: statement syntax
> > > as: "/var/tmp/gplcyT8Mvc.s", line 1075: error: missing '('
> > > as: "/var/tmp/gplcyT8Mvc.s", line 1075: error: statement syntax
> > > as: "/var/tmp/gplcyT8Mvc.s", line 1095: error: statement syntax
> > > as: "/var/tmp/gplcyT8Mvc.s", line 1095: error: statement syntax
> > > as: "/var/tmp/gplcyT8Mvc.s", line 1105: error: statement syntax
> > > as: "/var/tmp/gplcyT8Mvc.s", line 1105: error: statement syntax
> > > compilation failed
> > > *** Error code 1
> > > make: Fatal error: Command failed for target `utils.o'
> > > Current working directory /mnt/home/gp/gprolog-1.2.16/src/BipsPl
> > > *** Error code 1
> > > make: Fatal error: Command failed for target `all'
> > >
> > >
> > >
> > > From: Alexander Diemand <address@hidden>
> > >
> > > >To: "micheon eubanks" <address@hidden>
> > > >Subject: Re: error compiling prolog
> > > >Date: Wed, 4 Feb 2004 20:27:32 +0100
> > > >
> > > >Hmm,
> > > >
> > > >I freshly downloaded "good old" gprolog-1.2.16 from INRIA.fr
> > > >
> > > >./configure --prefix=/var/tmp/gnu-prolog
> > > >
> > > >make
> > > >
> > > >configuration output is:
> > > >
> > > >GNU Prolog version: 1.2.16 (Sep 19 2002)
> > > >Operating system  : solaris2.8
> > > >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
> > > >
> > > >This compiles everything just fine.
> > > >
> > > >The assembler version seems to match. Locally installed gcc is 3.3.1. > > > >But that should not matter as the problem is with the assembler code.
> > > >
> > > >Could you please in the directory BipsPl run:
> > > >
> > > >export PATH=../Wam2Ma:../Ma2Asm:$PATH
> > > >
> > > >../TopComp/gplc -v -o bad.S -S utils.wam
> > > >
> > > >
> > > >What does bad.S looks like?
> > > >
> > > >
> > > >You should not run this as root. Everything can be done as plain user.
> > > >
> > > >Alex.
> > > >
> > > >On Wednesday 04 February 2004 18:20, micheon eubanks wrote:
> > > > > I did run the .configure first.  There was no reference to "as"
> >
> >while
> >
> > > > > checking utilities.
> > > > >
> > > > > which as
> > > > > /usr/bin/as
> > > > >
> > > > > as -V
> > > > > as: Sun WorkShop 6 99/08/18
> > > > >
> > > > > Did you run you run the configure and make as ROOT?
> > > > > Did you add any prefixes?
> > > > >
> > > > > sheon
> > > > >
> > > > > From: Alexander Diemand <address@hidden>
> > > > >
> > > > > >To: "micheon eubanks" <address@hidden>,
> >
> >address@hidden
> >
> > > > > >Subject: Re: error compiling prolog
> > > > > >Date: Wed, 4 Feb 2004 10:54:35 +0100
> > > > > >
> > > > > >Hi
> > > > > >
> > > > > >I am using gprolog-1.2.16 successfully on a SunOS 5.8 machine.
> > > > > >Some points that come to my mind:
> > > > > >- did you run ./configure first?
> > > > > >- what did it output concerning the assembler version (as) ?
> > > > > >- what says "which as" ?
> > > > > >- what says "`which as` -V" ?
> > > > > >
> > > > > >The assembler I found on the system is "/usr/ccs/bin/as: Sun
> >
> >WorkShop
> >
> > > > > > 6 99/08/18". There might be issues if using gas "GNU assembler".
> > > > > >
> > > > > >Hope this is a starter
> > > > > >
> > > > > >Alex.
> > > > > >
> > > > > >On Wednesday 04 February 2004 01:35, micheon eubanks wrote:
> > > > > > > I am receiving the following error when running make from
> > > > > > > gprolot-1.2.16
> > > > > >
> > > > > >on
> > > > > >
> > > > > > > sparc/solaris machive v5.8:
> > > > > > >
> > > > > > > gplc -c utils.wam
> > > > > > > as: "/var/tmp/gplcmhqMvc.s", line 1055: error: statement syntax
> > > > > > > as: "/var/tmp/gplcmhqMvc.s", line 1075: error: missing '('
> > > > > > > as: "/var/tmp/gplcmhqMvc.s", line 1075: error: statement syntax > > > > > > > as: "/var/tmp/gplcmhqMvc.s", line 1095: error: statement syntax > > > > > > > as: "/var/tmp/gplcmhqMvc.s", line 1095: error: statement syntax > > > > > > > as: "/var/tmp/gplcmhqMvc.s", line 1105: error: statement syntax > > > > > > > as: "/var/tmp/gplcmhqMvc.s", line 1105: error: statement syntax
> > > > > > > compilation failed
> > > > > > > *** Error code 1
> > > > > > > make: Fatal error: Command failed for target `utils.o'
> > > > > > >
> > > > > > >
> > > > > > > Can someone help me with this?
> > > > > > >
> > > > > > > sheon
> >
> >_________________________________________________________________
> >
> > > > > > > High-speed users—be more efficient online with the new MSN
> >
> >Premium
> >
> > > > > >Internet
> > > > > >
> > > > > > > Software.
> >
> >http://join.msn.com/?pgmarket=en-us&page=byoa/prem&ST=1
> >
> > > > > > > _______________________________________________
> > > > > > > Users-prolog mailing list
> > > > > > > address@hidden
> > > > > > > http://mail.gnu.org/mailman/listinfo/users-prolog
> > > > >
> > > > > _________________________________________________________________ > > > > > High-speed users—be more efficient online with the new MSN Premium
> > > >
> > > >Internet
> > > >
> > > > > Software. http://join.msn.com/?pgmarket=en-us&page=byoa/prem&ST=1
> > >
> > > _________________________________________________________________
> > > High-speed users—be more efficient online with the new MSN Premium
> >
> >Internet
> >
> > > Software. http://join.msn.com/?pgmarket=en-us&page=byoa/prem&ST=1
>
> _________________________________________________________________
> Find high-speed ‘net deals — comparison-shop your local providers here.
> https://broadband.msn.com


_________________________________________________________________
Get a FREE online virus check for your PC here, from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963





reply via email to

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