[m-dev.] for review: generating C layout structures

Zoltan Somogyi zs at cs.mu.OZ.AU
Thu Jan 11 20:06:16 AEDT 2001


On 10-Jan-2001, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> I'll investigate this one, but in the mean time try adding
> 	EXTRA_MLFLAGS = `gcc --print-libgcc-file-name`
> to Mmake.params.

However, adding

	-l `gcc --print-libgcc-file-name`

at the end of an mmc command line doesn't seem to work. The error message you
get is

Invoking system command `ml --grade none.gc --trace -g -o queens queens_init.o
queens.o    -l/usr/lib/gcc-lib/i486-linux/egcs-2.91.66/libgcc.a'...
/usr/bin/ld: cannot open -l/usr/lib/gcc-lib/i486-linux/egcs-2.91.66/libgcc.a:
No such file or directory

The problem is that line 2964 of mercury_compile.m puts a -l in front of
library specifiers even if they are filenames, and not library names in
shorthand form (e.g. -ldl).

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