gplc possible bug: symbol already defined

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

gplc possible bug: symbol already defined

Paulo Moura-2
Hi,

I'm running GNU Prolog 1.4.5 (git version) and trying to use the gplc command to generate a executable. I'm getting the following error:

/var/folders/w9/0h2yhwgh8xj42v0059bpn5h00000gn/T/gplcKSrG9k.s:7298:FATAL:Symbol _X1_24246578655F757365722F305F2461757831__a1 already defined.

If I stop (using the -S switch) after producing the assembly files and open the file listed in the error, I can confirm that indeed the symbol is defined twice. Is this a gplc bug or something in my code? How to diagnose? I looked into the related Prolog file but its contents seem fine (it defines a single multifile, dynamic predicate).

Cheers,

Paulo

-----------------------------------------------------------------
Paulo Moura
Logtalk developer

Email: <mailto:[hidden email]>
Web:   <http://logtalk.org/>
-----------------------------------------------------------------





_______________________________________________
Bug-prolog mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-prolog
Reply | Threaded
Open this post in threaded view
|

Re: gplc possible bug: symbol already defined

Paulo Moura-2

> On 03/08/2015, at 18:35, Paulo Moura <[hidden email]> wrote:
>
> Hi,
>
> I'm running GNU Prolog 1.4.5 (git version) and trying to use the gplc command to generate a executable. I'm getting the following error:
>
> /var/folders/w9/0h2yhwgh8xj42v0059bpn5h00000gn/T/gplcKSrG9k.s:7298:FATAL:Symbol _X1_24246578655F757365722F305F2461757831__a1 already defined.
>
> If I stop (using the -S switch) after producing the assembly files and open the file listed in the error, I can confirm that indeed the symbol is defined twice. Is this a gplc bug or something in my code? How to diagnose? I looked into the related Prolog file but its contents seem fine (it defines a single multifile, dynamic predicate).

After some more experimentation, I found that the error can be avoided by having a single initialization/1 directive in the Prolog file (the original file had three initialization/1 directives, which is not usual but still standards compliant).

Cheers,

Paulo

-----------------------------------------------------------------
Paulo Moura
Logtalk developer

Email: <mailto:[hidden email]>
Web:   <http://logtalk.org/>
-----------------------------------------------------------------





_______________________________________________
Bug-prolog mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-prolog
Reply | Threaded
Open this post in threaded view
|

Re: gplc possible bug: symbol already defined

Daniel Diaz-3
In reply to this post by Paulo Moura-2
Hi Paulo

sorry for the late reply (I was very busy these last months). I look at
this bug (this should not occur) asap and keep you informed.

Thanks

Daniel


Le 03/08/2015 19:35, Paulo Moura a écrit :

> Hi,
>
> I'm running GNU Prolog 1.4.5 (git version) and trying to use the gplc command to generate a executable. I'm getting the following error:
>
> /var/folders/w9/0h2yhwgh8xj42v0059bpn5h00000gn/T/gplcKSrG9k.s:7298:FATAL:Symbol _X1_24246578655F757365722F305F2461757831__a1 already defined.
>
> If I stop (using the -S switch) after producing the assembly files and open the file listed in the error, I can confirm that indeed the symbol is defined twice. Is this a gplc bug or something in my code? How to diagnose? I looked into the related Prolog file but its contents seem fine (it defines a single multifile, dynamic predicate).
>
> Cheers,
>
> Paulo
>
> -----------------------------------------------------------------
> Paulo Moura
> Logtalk developer
>
> Email: <mailto:[hidden email]>
> Web:   <http://logtalk.org/>
> -----------------------------------------------------------------
>
>
>
>
>
> _______________________________________________
> Bug-prolog mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/bug-prolog
>


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


_______________________________________________
Bug-prolog mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-prolog