Harmless warning at Logtalk startup

Tips and tricks when running Logtalk using GNU Prolog as the back-end compiler

Moderator: Paulo Moura

Locked
Paulo Moura
Logtalk developer
Posts: 533
Joined: Sat May 05, 2007 8:35 am
Location: Portugal
Contact:

Harmless warning at Logtalk startup

Post by Paulo Moura »

Hi!

Those of you using GNU Prolog as the Logtalk back-end compiler will notice the following warning at startup:

Code: Select all

warning: suspicious predicate {}/1
This warning is harmless as is due to the use of the {}/1 predicate as a shortcut to the logtalk_load/1 predicate. Moreover, this use of the {}/1 predicate is compatible with the current ISO Prolog standard.

Happy logtalking,

Paulo
Paulo Moura
Logtalk developer

Paulo Moura
Logtalk developer
Posts: 533
Joined: Sat May 05, 2007 8:35 am
Location: Portugal
Contact:

Re: Harmless warning at Logtalk startup

Post by Paulo Moura »

Hi!

With the release of Logtalk 2.32.0, besides the warning described above, you will also get (while using GNU Prolog as the back-end compiler) a set of warnings related to multifile/1 directives (which this Prolog compiler does not support). These warnings can be safely ignored. Unfortunately, there is no GNU Prolog option that allows turning these warnings off.

Happy logtalking!

Paulo
Paulo Moura
Logtalk developer

Paulo Moura
Logtalk developer
Posts: 533
Joined: Sat May 05, 2007 8:35 am
Location: Portugal
Contact:

Re: Harmless warning at Logtalk startup

Post by Paulo Moura »

All the warnings described in previous posts are gone when using GNU Prolog 1.3.1.
Paulo Moura
Logtalk developer

Paulo Moura
Logtalk developer
Posts: 533
Joined: Sat May 05, 2007 8:35 am
Location: Portugal
Contact:

Re: Harmless warning at Logtalk startup

Post by Paulo Moura »

With the release of the Logtalk 2.36.0, there is a new warning at startup related to the loading of the "libpaths.pl" file. The warning results from the lack of support for multifile predicates in GNU Prolog 1.3.1 and can be safely ignored.
Paulo Moura
Logtalk developer

Paulo Moura
Logtalk developer
Posts: 533
Joined: Sat May 05, 2007 8:35 am
Location: Portugal
Contact:

Re: Harmless warning at Logtalk startup

Post by Paulo Moura »

With the release of the Logtalk 2.37.3, the GNU Prolog integration script loads an alternative "libpaths/libpaths_no_multifile.pl" file that avoids the multifile warning at Logtalk startup related to the logtalk_library_path/2 predicate.
Paulo Moura
Logtalk developer

Locked