users-prolog
[Top][All Lists]
Advanced

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

Re: Users-prolog Digest, Vol 108, Issue 8


From: Daniel Diaz
Subject: Re: Users-prolog Digest, Vol 108, Issue 8
Date: Sun, 1 Jul 2012 11:29:12 +0200

Hi Duncan,

Le 1 juil. 2012 à 03:29, Duncan Patton a Campbell a écrit :

> Howdy Daniel?  
> 
> On OpenBSD 386 I get a compilation error when making the 
> fast math part of the build...
> 
> uname -a
> OpenBSD obsd.neotext.ca 5.0 GENERIC#0 i386
> 
> # pwd
> /usr/local/stars/gprolog-1.4.1/src
> # ./configure 
> ... [ok]
> # gmake
> .... [ok 2 here]
> gmake[1]: Leaving directory `/usr/local/stars/gprolog-1.4.1/src/Pl2Wam'
> gmake[1]: Entering directory `/usr/local/stars/gprolog-1.4.1/src/Fd2C'
> gplc -c --fast-math fd2c.pl
> gplc -c --fast-math read_file.pl
> gplc -c --fast-math parse.pl
> sbrk: grow 16384 failed, error = 12
> 
> Fatal Error: Memory allocation fault (calloc) in hash.c:131
> compilation failed
> gmake[1]: *** [parse.o] Error 1
> gmake[1]: Leaving directory `/usr/local/stars/gprolog-1.4.1/src/Fd2C'
> gmake: *** [all] Error 1
> #


I have increased some static data so maybe there is not enough memory on your 
machine.
Could you try decreasing some stack size. For instance:

   export TRAILSZ=10000
   export GLOBALSZ=20000

(use setenv under csh/tcsh)

then:

   make

Is it better ?

> also, on OBSD/AMD64 I get the following when compiling an interpreter
> with some additional stuff (that compiles ok on all previous versions)
> ....
> /tmp/gplcb0nBYB.o(.text+0x7c): In function `darea':
> /usr/local/gprolog/Dlib/imacd.c:18: warning: sprintf() is often misused, 
> please use snprintf()
> /tmp/gplcrtG2bt.o(.text+0x11): In function `predicate(spliton/4)':
> : undefined reference to `Pl_Get_Current_Choice'
> /tmp/gplcrtG2bt.o(.text+0x121): In function `predicate(chop_str/3)':
> : undefined reference to `Pl_Get_Current_Choice'
> /tmp/gplcrtG2bt.o(.text+0x281): In function `predicate(matchRci/3)':
> : undefined reference to `Pl_Get_Current_Choice'
> /tmp/gplcrtG2bt.o(.text+0x491): In function `predicate(spliton_ci/4)':
> : undefined reference to `Pl_Get_Current_Choice'
> /tmp/gplcrtG2bt.o(.text+0x5a1): In function `predicate(chop_str_ci/3)':
> : undefined reference to `Pl_Get_Current_Choice'
> /tmp/gplcrtG2bt.o(.text+0x701): more undefined references to 
> `Pl_Get_Current_Choice' follow
> collect2: ld returned 1 exit status
> compilation failed
> gmake: *** [dpro] Error 1
> 
> This could of course be related to my not having the latest OS revs loaded.

This is a new function (when implementing soft-cut I have modified deeply the 
code handling cut). However, there is nothing architecture-dependent in this 
code. The function is defined in EnginePl/wam_inst.c (thus in wam_inst.o and 
lib engine_pl.a)

Can you please:

   make distclean
   ./configure --disable-regs --with-c-flags=debug

When you obtain the error, could you check if the symbol is defined in the 
library ?

   cd EnginePl
   nm -gop libengine_pl.a | grep Pl_Get_Current_Choice

you should obtains something like

   libengine_pl.a:wam_inst.o:0000000000001570 T Pl_Get_Current_Choice

If you don't find a solution, could you give ma an access to your machine(s) 
(via ssh). With this I could fix the problem.

Daniel



> Dhu
> 
> 
> On Fri, 29 Jun 2012 12:00:36 -0400
> address@hidden wrote:
> 
>> Send Users-prolog mailing list submissions to
>>      address@hidden
>> 
>> To subscribe or unsubscribe via the World Wide Web, visit
>>      https://lists.gnu.org/mailman/listinfo/users-prolog
>> or, via email, send a message with subject or body 'help' to
>>      address@hidden
>> 
>> You can reach the person managing the list at
>>      address@hidden
>> 
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Users-prolog digest..."
>> 
>> 
>> Today's Topics:
>> 
>>   1. GNU Prolog 1.4.1 is released (Daniel Diaz)
>> 
>> 
>> ----------------------------------------------------------------------
>> 
>> Message: 1
>> Date: Fri, 29 Jun 2012 16:41:31 +0200
>> From: Daniel Diaz <address@hidden>
>> To: gnu prolog mailling list <address@hidden>
>> Subject: GNU Prolog 1.4.1 is released
>> Message-ID: <address@hidden>
>> Content-Type: text/plain; charset="us-ascii"
>> 
>> An HTML attachment was scrubbed...
>> URL: 
>> <http://lists.gnu.org/archive/html/users-prolog/attachments/20120629/c6851780/attachment.html>
>> 
>> ------------------------------
>> 
>> _______________________________________________
>> Users-prolog mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/users-prolog
>> 
>> 
>> End of Users-prolog Digest, Vol 108, Issue 8
>> ********************************************
> 
> 
> -- 
> Ne obliviscaris, vix ea nostro voco.
> 
> _______________________________________________
> Users-prolog mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/users-prolog
> 
> -- 
> Ce message a ete verifie par MailScanner
> pour des virus ou des polluriels et rien de
> suspect n'a ete trouve.
> 


-- 
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.




reply via email to

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