[mercury-users] undefined reference to `MR_grade_v1_asm_fast_tags2' ????

Fergus Henderson fjh at cs.mu.OZ.AU
Thu May 27 19:26:10 AEST 1999


On 27-May-1999, Marko Schuetz <marko at ki.informatik.uni-frankfurt.de> wrote:
> kind% ml --grade asm_fast.gc  -v     -o hello_world hello_world_init.o \ 
>         hello_world.o                                                                                               ml: using grade `asm_fast.gc'
> gcc -s -L/usr/local/mercury-compiler-0.8/lib/mercury/lib/asm_fast.gc/i386-unknown-freebsd3.0 -L/usr/local/mercury-compiler-0.8/lib/mercury/lib/i386-unknown-freebsd3.0 -R/usr/local/mercury-compiler-0.8/lib/mercury/lib/asm_fast.gc/i386-unknown-freebsd3.0 -R/usr/local/mercury-compiler-0.8/lib/mercury/lib/i386-unknown-freebsd3.0 -o hello_world hello_world_init.o hello_world.o -lmer_trace -lmer_browser -lmer_std -lmer_rt -lgc -lm |
> mdemangle
> hello_world.o(.rodata+0x10): undefined reference to `MR_grade_v1_asm_fast_gc_tags2'

Hmm. I'm not sure what's going wrong here.
That symbol is supposed to be defined in the -lmer_rt library, i.e.
in libmer_rt.a or (if you're using shared libraries) libmer_rt.so.

What's the output of the following commands?

	d=/usr/local/mercury-compiler-0.8/lib/mercury/lib/asm_fast.gc
	# or if you're using (t)csh
	# setenv d /usr/local/mercury-compiler-0.8/lib/mercury/lib/asm_fast.gc

	ls -l $d/i386-unknown-freebsd3.0
	nm $d/i386-unknown-freebsd3.0/libmer_rt.a | grep -i grade
	nm $d/i386-unknown-freebsd3.0/libmer_rt.so | grep -i grade

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list