gplc possible bug: symbol already defined

Paulo Moura <[email protected]> Mon, 3 Aug 2015 18:35:48 +0100
Newsgroups gmane.comp.gnu.prolog.bugs
Message-ID <[email protected]>
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:[email protected]>
Web:   <http://logtalk.org/>
-----------------------------------------------------------------