[m-users.] New Debian packages

Paul Bone paul at bone.id.au
Tue Dec 18 11:02:36 AEDT 2018


On Sun, Dec 16, 2018 at 03:11:54PM -0500, Jeffrey Brown wrote:
> I just installed from the repo onto Ubuntu 18.04, replacing DISTRO with
> stretch per your instructions, and everything I try to compile fails with
> an error file like the one below. Suggestions?
> 
> ern$ cat fi
> b_pattern_match.err
> In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-s
> tart.h:33:0,
>                 from /usr/include/stdlib.h:25,
>                 from /usr/lib/mercury/inc/mercury_std.h:23,
>                 from /usr/lib/mercury/inc/mercury_goto.h:13,
>                 from /usr/lib/mercury/inc/mercury_init.h:84,
>                 from Mercury/cs/fib_pattern_match_init.c:16:
> /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVI
> D_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
> # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_
> SOURCE"
>   ^~~~~~~
> In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-s
> tart.h:33:0,
>                 from /usr/include/stdlib.h:25,
>                 from /usr/lib/mercury/inc/mercury_std.h:23,
>                 from /usr/lib/mercury/inc/mercury_goto.h:13,
>                 from /usr/lib/mercury/inc/mercury_init.h:84,
>                 from Mercury/cs/fib_pattern_match_init.c:16:
> /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVI
> D_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
> # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_
> SOURCE"
>   ^~~~~~~

This should hopefully not stop your project from building, but that depends
on other compiler settings.  So if you still get a working executable it's
nothing to worry about (for now).

What's happened here is that Mercury 14.01.1 is fairly old, and uses some
deprecated C compiler flags, on systems with newer C compilers you see noisy
warnings like this.  You can either keep using this version, ignoring these
warnings, or try the ROTD version of Mercury, it's in the same repository
(install mercury-rotd-recommended).  The ROTD version doesn't support 32bit
systems right now.

Good luck.



-- 
Paul Bone
http://paul.bone.id.au


More information about the users mailing list