Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22290

Will gcc10 upgrade golang library

$
0
0

I try compile golang program to sparc-sun-solaris2.11 with gcc but encountered problem

/tmp/go-build442023874/b001/_gomod_.go:3:3: error: __debug_modinfo__ is not a function; //go:linkname is only supported for functions    3 | //go:linkname __debug_modinfo__ runtime/debug.modinfo      |   ^make: *** [dbx] Error 2

but i found it fixed in go1.13 but golang in gcc9.3.0 still has go1.12.2

here my code

package mainimport ("database/sql"    _ "github.com/godror/godror")func main() {    db, err := sql.Open("godror", "u1/u1@192.168.2.10/ORCL")    if err != nil {        panic(err.Error())    }    err = db.Ping()    if err != nil {        panic(err.Error())    }    db.Close()}

Viewing all articles
Browse latest Browse all 22290

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>