[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error with programs linking with C
From: |
Hector Palacios |
Subject: |
Re: error with programs linking with C |
Date: |
Wed, 31 Oct 2001 18:04:09 -0400 (VET) |
Well. These test were made with gprolog from the RPM.
I'm using mandrake 7.2.
On Wed, 31 Oct 2001, Daniel Diaz wrote:
> Hi Hector, that is interesting and I suppose the problem comes from the new
> version of gcc. Could
> you try the RPM
> (see http://gprolog.inria.fr/) and/or to rebuild adding --disable-ebp to
> configure ? I'd like to
> have the result of both experiments if possible (in fact if --disable-ebp
> works then the RPM is
> useless, the bug comes from an incompatibility with ne gcc). Which
> distribution do you use ?
>
> NB: please do not post a same message in both lists. This is clearly for
> bug-prolog;
>
> Thank you for your report.
>
>
> Hector Palacios wrote:
> >
> > I got a kind of memory fault when linking my c program with the new
> > 1.2.8 version. It did work with 1.2.1
> >
> > So, I tried with the example that comes with the sources.
> > I had an error.
> > May be because the compiler (gcc 3.0.1) but it seems to be ok.
> >
> > ----------------
> >
> > address@hidden ExamplesC]$ gplc -v
> > Prolog compiler (GNU Prolog) 1.2.8
> > By Daniel Diaz
> > Copyright (C) 1999-2001 Daniel Diaz
> > GNU Prolog comes with ABSOLUTELY NO WARRANTY.
> > You may redistribute copies of GNU Prolog
> > under the terms of the GNU General Public License.
> > For more information about these matters, see the files named COPYING.
> > address@hidden ExamplesC]$ gcc -v
> > Reading specs from /hlp/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/specs
> > Configured with: ../configure --prefix=/hlp/local
> > --with-local-prefix=/hlp/local
> > Thread model: single
> > gcc version 3.0.1
> > address@hidden ExamplesC]$ make
> > gplc -C '-Wall -g' examp.pl examp_c.c
> > `-mpentiumpro' is deprecated. Use `-march=pentiumpro' or `-mcpu=pentiumpro'
> > instead.
> > gplc -C '-Wall -g' new_main.pl new_main_c.c
> > `-mpentiumpro' is deprecated. Use `-march=pentiumpro' or `-mcpu=pentiumpro'
> > instead.
> > address@hidden ExamplesC]$ ./new_main
> >
> > Enter a name (or 'end' to finish): end
> >
> > Fatal Error: global stack overflow (size: 4097 Kb, environment variable
> > used: GLOBALSZ)
> > address@hidden ExamplesC]$ export GLOBALSZ=50000
> > address@hidden ExamplesC]$ ./new_main
> >
> > Enter a name (or 'end' to finish): end
> >
> > Fatal Error: global stack overflow (size: 50001 Kb, environment variable
> > used: GLOBALSZ)
> > ----------------
> >
> > --
> >
> > /--------------------------------------------------------------------------\
> > | Artificial Intelligence Group | He venido para que tengan vida, y la
> > |
> > | Universidad Simon Bolivar | tengan en abundancia. Jesus de Nazaret
> > |
> > |---------------------------------------------------------------------------|
> > | Hector Luis Palacios Verdes | address@hidden, address@hidden |
> >
> > \--------------------------------------------------------------------------/
> >
> > _______________________________________________
> > Users-prolog mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/users-prolog
>
>
--
/--------------------------------------------------------------------------\
| Artificial Intelligence Group | He venido para que tengan vida, y la |
| Universidad Simon Bolivar | tengan en abundancia. Jesus de Nazaret |
|---------------------------------------------------------------------------|
| Hector Luis Palacios Verdes | address@hidden, address@hidden |
\--------------------------------------------------------------------------/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: error with programs linking with C,
Hector Palacios <=