[m-dev.] PIC dependencies

Keri Harris keri at gentoo.org
Wed Nov 15 20:03:22 AEDT 2006

I've noticed a bug where the Mercury compiler does not generate dependencies 
for .pic_o files:

$ cat foo.m
:- module foo.
:- import_module bar.

$ cat bar.m
:- module bar.
:- interface.
:- type bar.
:- implementation.
:- pragma foreign_type("C", bar, "void*").

$ mmake depend
mmc --generate-dependencies --grade asm_fast.gc          foo

$ mmake foo.pic_o
mmc --make-interface --grade asm_fast.gc          bar
mmc --compile-to-c --grade asm_fast.gc          foo > foo.err 2>&1
mgnuc --grade asm_fast.gc        --      -fpic -DMR_PIC \
                -c foo.c -o foo.pic_o
bar.int:6:18: error: bar.mh: No such file or directory
gmake: *** [foo.pic_o] Error 1

$ ls
Mmakefile  bar.date  bar.int2  foo.c       foo.d    foo.dv   foo.m
bar.d      bar.int   bar.m     foo.c_date  foo.dep  foo.err  foo.mh


Keri Harris - Gentoo Developer
Public Key:
Key fingerprint = 1690 30DA 4950 E710 A871 07D7 AF04 BFB6 A138 F5ED
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/developers/attachments/20061115/4267f533/attachment.sig>

More information about the developers mailing list