mgo

tests do not link with gccgo

Bug #1252540 reported by Michael Hudson-Doyle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mgo
Invalid
Undecided
Unassigned

Bug Description

This is strange:

mwhudson@narsil:goplay$ go test -compiler gccgo labix.org/v2/mgo
# testmain
/tmp/go-build503794647/labix.org/v2/mgo/_test/labix.org/v2/libmgo_test.a(mgo_test.o): In function `mgo_test.cLogger$hash':
/home/mwhudson/goplay/src/labix.org/v2/mgo/suite_test.go:240: undefined reference to `launchpad.net_gocheck.timer$hash'
collect2: error: ld returned 1 exit status
FAIL labix.org/v2/mgo [build failed]

At a wild guess code in mgo's tests causes a gocheck.timer to be shoved into a map but for some reason the hash function is not compiled when you compile libgocheck.a?

Tags: gccgo
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

This seems to be fixed in gccgo tip.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Argh, no it isn't. Sorry for the noise.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :
Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

This is a bug in gccgo.

Changed in mgo:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.