[m-dev.] PIC dependencies

Julien Fischer juliensf at csse.unimelb.edu.au
Tue Nov 21 16:40:07 AEDT 2006


On Wed, 15 Nov 2006, Keri Harris wrote:

> 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
>

I've committed a fix for this on both the 0.13 and main branches.

Julien.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at csse.unimelb.edu.au
Administrative Queries: owner-mercury-developers at csse.unimelb.edu.au
Subscriptions:          mercury-developers-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the developers mailing list