[Bug go/64595] cgo installed into wrong directory

2015-01-20 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64595 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #15

[Bug go/64595] cgo installed into wrong directory

2015-01-20 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64595 --- Comment #14 from rguenther at suse dot de --- On Tue, 20 Jan 2015, ian at airs dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64595 > > --- Comment #12 from Ian Lance Taylor --- > It's not libbacktrace that is crashing the a

[Bug go/64595] cgo installed into wrong directory

2015-01-20 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64595 --- Comment #13 from rguenther at suse dot de --- On Mon, 19 Jan 2015, ian at airs dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64595 > > --- Comment #7 from Ian Lance Taylor --- > That failure is not related to the new gotool

[Bug go/64595] cgo installed into wrong directory

2015-01-19 Thread ian at airs dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64595 --- Comment #12 from Ian Lance Taylor --- It's not libbacktrace that is crashing the app, it's libgo. And, yes, probably libgo should not crash the app either. But it's also true that many Go programs simply won't work correctly if file/line in

[Bug go/64595] cgo installed into wrong directory

2015-01-19 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64595 --- Comment #11 from Andreas Schwab --- But it shouldn't crash the app if you don't have the full information.

[Bug go/64595] cgo installed into wrong directory

2015-01-19 Thread ian at airs dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64595 --- Comment #10 from Ian Lance Taylor --- The point of libbacktrace, at least if you call the backtrace_full function, is to get file/line information. If you don't need file/line information, you can just use _Unwind_Backtrace.

[Bug go/64595] cgo installed into wrong directory

2015-01-19 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64595 --- Comment #9 from Andrew Pinski --- (In reply to Andreas Schwab from comment #8) > Why does libbacktrace need debug info? All required unwind information is > included in the binary. Glibc's backtrace can do that too. Most likely the same re

[Bug go/64595] cgo installed into wrong directory

2015-01-19 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64595 --- Comment #8 from Andreas Schwab --- Why does libbacktrace need debug info? All required unwind information is included in the binary. Glibc's backtrace can do that too.

[Bug go/64595] cgo installed into wrong directory

2015-01-19 Thread ian at airs dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64595 --- Comment #7 from Ian Lance Taylor --- That failure is not related to the new gotools. I expect it would happen with any Go program. Go requires that there be enough debug info to do a stack backtrace with file/line information. It uses the

[Bug go/64595] cgo installed into wrong directory

2015-01-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64595 --- Comment #6 from Richard Biener --- The backtrace is Breakpoint 1, __GI_exit (status=4) at exit.c:104 104 exit.c: No such file or directory. (gdb) up #1 0x7731a52f in runtime_startpanic () from /usr/lib64/libgo.so.7 (gdb) #2 0x

[Bug go/64595] cgo installed into wrong directory

2015-01-19 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64595 --- Comment #5 from rguenther at suse dot de --- On Wed, 14 Jan 2015, ian at airs dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64595 > > --- Comment #4 from Ian Lance Taylor --- > To invoke cgo, put this code in a file foo.go

[Bug go/64595] cgo installed into wrong directory

2015-01-14 Thread ian at airs dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64595 --- Comment #4 from Ian Lance Taylor --- To invoke cgo, put this code in a file foo.go and type "go run foo.go" (or "go build foo.go && ./foo"). package main // #include // void cprintln(const char *s) { puts(s); } import "C" func main() {

[Bug go/64595] cgo installed into wrong directory

2015-01-14 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64595 --- Comment #3 from rguenther at suse dot de --- On Wed, 14 Jan 2015, ian at airs dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64595 > > --- Comment #2 from Ian Lance Taylor --- > Right, cgo is not run directly. It is run by

[Bug go/64595] cgo installed into wrong directory

2015-01-14 Thread ian at airs dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64595 --- Comment #2 from Ian Lance Taylor --- Right, cgo is not run directly. It is run by the go tool. It is in effect an internal program like cc1. The version suffix should be fine if libexecsubdir in libgo matches libexecsubdir in gotools, as t

[Bug go/64595] cgo installed into wrong directory

2015-01-14 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64595 --- Comment #1 from Andreas Schwab --- According to http://golang.org/cmd/cgo/ cgo isn't supposed to be called directly, but only via go tool cgo. But the version suffix will probably break it.