[mercury-users] Issues with gcc 2.95.2?

Tyson Dowd trd at cs.mu.OZ.AU
Sat Nov 6 13:43:14 AEDT 1999


On 06-Nov-1999, Robert Ernst Johann JESCHOFNIK <rejj at cat.cs.mu.OZ.AU> wrote:
> Hello all.
> 
> Before I submit this as a bug report, I'd just like to make sure that this
> is actually a bug, and not a problem with my installation.
> 
> I just finished installing gcc 2.95.2, and of course the first thing I did
> was test it. All my C stuff compiles just fine.. so far so good. So I go
> to make sure it hasn't broken Mercury, and to my dismay:
> 
> helloworld_init.o: In function `mercury_init':
> helloworld_init.o(.text+0xa8): undefined reference to `<predicate 'main'/2
> mode 0>'
> collect2: ld returned 1 exit status
> Error: system command returned non-zero exit status.
> Error: link failed.
> 
> Are there issues with 2.95.2 that I should be made aware of, or is this a
> genuine bug / problem?
> helloworld.m is exactly as you would expect, nothing tricky. This error
> is occurring for every mercury file I attempt to compile, I also get
> referencing errors when I define a new type:
> 
> Mercury/os/poly.o(.rodata+0x244): undefined reference to `<unification
> predicate for type 'poly:world'/0 mode 0>'
> Mercury/os/poly.o(.rodata+0x248): undefined reference to `<index/2
> predicate for type 'poly:world'/0>'
> Mercury/os/poly.o(.rodata+0x24c): undefined reference to `<compare/3
> predicate for type 'poly:world'/0>'
> 
> 
> gcc passed it's three stage bootscrap whilst building, and is correctly
> building any C tests I'm giving it, so it *shouldn't* have broken things..
> I think.

You need to use a recent version of the Mercury compiler, support for
compiling under gcc 2.95.2 wasn't added until recently.

Also, even if you have a recent version, if you go and change the C
compiler behind Mercury's back, it won't know about it.  So you may have
to re-cofigure, re-compile and re-install.

-- 
The quantum sort: 
	while (!sorted) { do_nothing(); }
Tyson Dowd   <tyson at tyse.net>   http://tyse.net/
--------------------------------------------------------------------------
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