[m-rev.] for tryout and review: install .module_dep files to grade-specific directories
Julien Fischer
jfischer at opturion.com
Sun Sep 1 20:05:09 AEST 2024
On Sun, 1 Sept 2024 at 18:24, Zoltan Somogyi <zoltan.somogyi at runbox.com> wrote:
>
> On Sun, 1 Sep 2024 02:02:10 +1000, Julien Fischer <jfischer at opturion.com> wrote:
> > >
> > > Did you do what you did because there is something that prevents an mmc --make
> > > based install from working for the other grades? If yes, what is the problem?
> >
> > I built and installed Mercury in the way I usually do: mmake install
> > It is mmake install itself that uses mmc --make to build and install
> > the csharp and java grades
> > (i.e. as part of the install_grades target); note that this happens
> > regardless of whether
> > --use-mmc-make is passed to mmake by the user.
> >
> > In particular, at no point in the process did I specify --use-mmc-make to mmake.
>
> I see that the code that does this is is the install_grades target in the top
> Mmakefile in a workspace, NOT the lib%.install_grade target in scripts/Mmake.rules.
> I will add it to the list of places which do (parts of) installs, and which need to be
> updated if the install process changes.
At a guess, perhaps we only wanted to be able to do this when installing Mercury
itself, not provide it to other users. Peter may be able to comment further.
...
> > > Please keep that install directory for a while longer. I intend to send an updated
> > > diff in the next 24 hours that won't fix the problem, but will generate more debugging
> > > output that I expect will give me at least some of the info I will need
> > > to fix the problem.
> >
> > Shall do.
>
> The new diff, which replaces the old one, is attached. Please run
> "mmc --make g12info" with an mmc containing this updated diff
> against yesterday's install (though today's install would be identical),
> and send me the output, which will still report failure, but this time should have
> more debug info.
Done, the output is:
Making Mercury/int3s/g12info.int3
** Error reading file `bool.m' to generate dependencies.
** Could not read `bool.m'
** DepFileName is
Mercury/hlc.gc/x86_64-pc-linux-gnu/Mercury/module_deps/bool.module_dep.**
SearchDirs is .,
/home/jfischer/mercury/test-mmc-make4/lib/mercury/ints.** DepName is
in /home/jfischer/mercury/test-mmc-make4/lib/mercury/ints.**
DepBaseName is in
/home/jfischer/mercury/test-mmc-make4/lib/mercury/ints.** Module
`bool' is imported by module `g12info'.
mercury_compile: cannot find source for module `bool' in directories `.'
make[1]: *** [g12info] Error 1
make[1]: Leaving directory `/home/jfischer/work/g12.svn-2/conf_tools'
make: *** [conf_tools] Error 2
Julien.
More information about the reviews
mailing list