[m-dev.] PIC dependencies
Julien Fischer
juliensf at csse.unimelb.edu.au
Fri Nov 17 17:15:44 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
>
The compiler is not writing the dependencies for
foo.$(EXT_FOR_PIC_OBJECT) to foo.d - this cause the above behaviour.
I should have a fix for this one shortly.
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