[m-dev.] clueless -- overloaded functor

Nancy Mazur Nancy.Mazur at cs.kuleuven.ac.be
Wed Aug 28 00:12:51 AEST 2002


* Fergus Henderson <fjh at cs.mu.OZ.AU> [2002-08-26 13:36]:
> On 26-Aug-2002, Peter Ross <pro at missioncriticalit.com> wrote:
> > The problem is that the Mercury compiler can't distinguish whether you
> > mean int:/ and parse_tree:prog_data:sym_name:/.  I think what has
> > happened is that you have lost an import which imports the correct
> > module which defines '/' (ie not int or parse_tree:prog_data)
> 
> Right.  In particular, it's probably this change that you are missing:
> 
>  | date: 2002/07/10 06:49:35;  author: stayl;  state: Exp;  lines: +4 -1
>  | 
>  | Estimated hours taken: 0.1
>  | Branches: main
>  | 
>  | NEWS:
>  | library/dir.m:
>  |         Add `/' as a synonym for `dir__make_path_name'.
> 
> Either your version of "dir" doesn't include this change,
> or your version of "handle_options" isn't importing "dir".

Hi again, 

I don't understand this... when compiling my reuse-workspace, i indeed
obtain systematically errors that some library-predicates are not found
(like in this case the /, but also list__is_not_empty, and I suppose
other predicates too). These predicates are defined in the library
directory of the workspace, but indeed, are not yet within the
rotd-compiler that I'm using for compiling the workspace. 
But this makes the error even more strange: 
- the main-branch workspace which also uses those "new" library
  predicates compiles without a problem.. 
- so why does the reuse-workspace struggle with them? 

As I understand it, while compiling the compiler/-directory, it uses the 
library/- from the same workspace (or else I can't explain why my
main-branch workspace compiles). But for my reuse-workspace, it seems to 
use the rotd-library ? 

I can't see any significant differences in the makefiles... I simply 
don't have a clue... and simply don't know how to approach this problem
systematically... 

Nancy

PS: just for the fun of it I installed rotd-2002-08-25.  Compiling the
main-branch, no problem, but compiling the reuse-workspace yields: 


../scripts/mgnuc --grade asm_fast.gc      --no-mercury-stdlib-dir   --  -I../boehm_gc -I../boehm_gc/include -I../mps_gc/code -I../runtime  -I../trace     -c tree234.c -o tree234.o
/home/nancy/mercury/local/mercury-rotd.2002.08.25.linux//lib/mercury/ints/asm_fast.gc/string.opt:25: string.mh: No such file or directory
/home/nancy/mercury/local/mercury-rotd.2002.08.25.linux//lib/mercury/ints/asm_fast.gc/char.opt:4: char.mh: No such file or directory
/home/nancy/mercury/local/mercury-rotd.2002.08.25.linux//lib/mercury/ints/asm_fast.gc/float.opt:3: float.mh: No such file or directory
/home/nancy/mercury/local/mercury-rotd.2002.08.25.linux//lib/mercury/ints/asm_fast.gc/exception.opt:15: exception.mh: No such file or directory
/home/nancy/mercury/local/mercury-rotd.2002.08.25.linux//lib/mercury/ints/asm_fast.gc/io.opt:19: io.mh: No such file or directory
/home/nancy/mercury/local/mercury-rotd.2002.08.25.linux//lib/mercury/ints/asm_fast.gc/array.opt:4: array.mh: No such file or directory
/home/nancy/mercury/local/mercury-rotd.2002.08.25.linux//lib/mercury/ints/asm_fast.gc/benchmarking.opt:6: benchmarking.mh: No such file or directory
/home/nancy/mercury/local/mercury-rotd.2002.08.25.linux//lib/mercury/ints/asm_fast.gc/table_builtin.opt:3: table_builtin.mh: No such file or directory
/home/nancy/mercury/local/mercury-rotd.2002.08.25.linux//lib/mercury/ints/asm_fast.gc/time.opt:4: time.mh: No such file or directory
/home/nancy/mercury/local/mercury-rotd.2002.08.25.linux//lib/mercury/ints/asm_fast.gc/store.opt:24: store.mh: No such file or directory
/home/nancy/mercury/local/mercury-rotd.2002.08.25.linux//lib/mercury/ints/asm_fast.gc/math.opt:3: math.mh: No such file or directory
/home/nancy/mercury/local/mercury-rotd.2002.08.25.linux//lib/mercury/ints/asm_fast.gc/int.opt:4: int.mh: No such file or directory
/home/nancy/mercury/local/mercury-rotd.2002.08.25.linux//lib/mercury/ints/asm_fast.gc/private_builtin.opt:4: private_builtin.mh: No such file or directory
/home/nancy/mercury/local/mercury-rotd.2002.08.25.linux//lib/mercury/ints/asm_fast.gc/std_util.opt:13: std_util.mh: No such file or directory
/home/nancy/mercury/local/mercury-rotd.2002.08.25.linux//lib/mercury/ints/asm_fast.gc/construct.opt:3: construct.mh: No such file or directory
/home/nancy/mercury/local/mercury-rotd.2002.08.25.linux//lib/mercury/ints/asm_fast.gc/type_desc.opt:5: type_desc.mh: No such file or directory
gmake[1]: *** [tree234.o] Error 1
gmake[1]: Leaving directory `/export/home0/nancy/mercury/intern/workspaces/up/library'
gmake: *** [library] Error 2

duh? 

--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list