[mercury-users] undefined reference to unification predicate

André Platzer api at gmx.de
Sat Jan 29 21:22:25 AEDT 2005


Hello!

> > though I'm not completely sure it seems as if the problem from 1999
> > "[mercury-users] Issues with gcc 2.95.2?" reappears. On my Suse 9.1 linux
> > box with gcc 3.4.1 and mercury 0.11.0 (binaries as well as sources
> > distribution) provoke several errors of the following kind
>
> Mercury 0.11 is not really compatible with gcc 3.4.x,

Indeed, using gcc 3.3.3 is better. Yet, after installing the binaries, 
compiling the hello world mercury file still is impossible for another 
reason: __ctype_b is undefined.

mmc --compile-to-c --grade asm_fast.gc          hello > hello.err 2>&1 
mgnuc --grade asm_fast.gc        --      -c hello.c -o hello.o
mgnuc --grade asm_fast.gc        --      -c hello_init.c -o hello_init.o
ml --grade asm_fast.gc              --    -o hello hello_init.o \
        hello.o \

hello_init.o(.text+0x281): In function `mercury_init':
: undefined reference to `<predicate 'main'/2 mode 0>'
/usr/local/mercury-0.11.0/lib/mercury/lib/asm_fast.gc/i686-pc-linux-gnu/libmer_std.a(lexer.o)
(.text+0xcd44): In function `<predicate 'lexer:get_float_decimals'/4 mode 
0>':
: undefined reference to `__ctype_b'
/usr/local/mercury-0.11.0/lib/mercury/lib/asm_fast.gc/i686-pc-linux-gnu/libmer_std.a(lexer.o)
(.text+0xcf95): In function `<predicate 'lexer:get_float_decimals'/4 mode 
0>':
: undefined reference to `__ctype_b'
/usr/local/mercury-0.11.0/lib/mercury/lib/asm_fast.gc/i686-pc-linux-gnu/libmer_std.a(lexer.o)
(.text+0xd231): In function `<predicate 'lexer:string_get_float_decimals'/7 
mode 0>':
: undefined reference to `__ctype_b'
/usr/local/mercury-0.11.0/lib/mercury/lib/asm_fast.gc/i686-pc-linux-gnu/libmer_std.a(lexer.o)
(.text+0xd35d): In function `<predicate 'lexer:string_get_float_decimals'/7 
mode 0>':
: undefined reference to `__ctype_b'
/usr/local/mercury-0.11.0/lib/mercury/lib/asm_fast.gc/i686-pc-linux-gnu/libmer_std.a(lexer.o)
(.text+0xd644): In function `<predicate 'lexer:get_float_exponent'/4 mode 
0>':
: undefined reference to `__ctype_b'
/usr/local/mercury-0.11.0/lib/mercury/lib/asm_fast.gc/i686-pc-linux-gnu/libmer_std.a(lexer.o)
(.text+0xddbe): more undefined references to `__ctype_b' follow
collect2: ld returned 1 exit status
gmake: *** [hello] Error 1

Do you know any solutions?

Best regards,

Andre
--------------------------------------------------------------------------
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