[Bug 875128] New: [devel:gcc] gccgo: hello world program requires explicit -pthread
https://bugzilla.novell.com/show_bug.cgi?id=875128 https://bugzilla.novell.com/show_bug.cgi?id=875128#c0 Summary: [devel:gcc] gccgo: hello world program requires explicit -pthread Classification: openSUSE Product: openSUSE Factory Version: 13.2 Milestone 0 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: rguenther@suse.com ReportedBy: crrodriguez@opensuse.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- cat main.go package main import "fmt" func main() { fmt.Println("Hello World") } #gccgo-4.9 main.go /usr/lib64/gcc/x86_64-suse-linux/4.9/libgo.a(proc.o): In function `runtime_newosproc': /home/abuild/rpmbuild/BUILD/gcc-4.9.0-r209611/obj-x86_64-suse-linux/x86_64-suse-linux/libgo/../../../libgo/runtime/proc.c:198: undefined reference to `pthread_attr_setstacksize' /home/abuild/rpmbuild/BUILD/gcc-4.9.0-r209611/obj-x86_64-suse-linux/x86_64-suse-linux/libgo/../../../libgo/runtime/proc.c:211: undefined reference to `pthread_sigmask' /home/abuild/rpmbuild/BUILD/gcc-4.9.0-r209611/obj-x86_64-suse-linux/x86_64-suse-linux/libgo/../../../libgo/runtime/proc.c:213: undefined reference to `pthread_sigmask' /usr/lib64/gcc/x86_64-suse-linux/4.9/libgo.a(runtime.o): In function `runtime_minit': /home/abuild/rpmbuild/BUILD/gcc-4.9.0-r209611/obj-x86_64-suse-linux/x86_64-suse-linux/libgo/../../../libgo/runtime/runtime.c:254: undefined reference to `pthread_sigmask' /usr/lib64/gcc/x86_64-suse-linux/4.9/libgo.a(go-signal.o): In function `sig_panic_leadin': /home/abuild/rpmbuild/BUILD/gcc-4.9.0-r209611/obj-x86_64-suse-linux/x86_64-suse-linux/libgo/../../../libgo/runtime/go-signal.c:255: undefined reference to `pthread_sigmask' /usr/lib64/gcc/x86_64-suse-linux/4.9/libgcc.a(generic-morestack.o): In function `__morestack_block_signals': /home/abuild/rpmbuild/BUILD/gcc-4.9.0-r209611/obj-x86_64-suse-linux/x86_64-suse-linux/libgcc/../../../libgcc/generic-morestack.c:675: undefined reference to `pthread_sigmask' /usr/lib64/gcc/x86_64-suse-linux/4.9/libgcc.a(generic-morestack.o):/home/abuild/rpmbuild/BUILD/gcc-4.9.0-r209611/obj-x86_64-suse-linux/x86_64-suse-linux/libgcc/../../../libgcc/generic-morestack.c:690: more undefined references to `pthread_sigmask' follow The http://golang.org compiler however has no such requirement.. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875128 https://bugzilla.novell.com/show_bug.cgi?id=875128#c1 Richard Biener <rguenther@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Richard Biener <rguenther@suse.com> 2014-04-25 09:24:20 UTC --- A requires is missing. If you install libgo5 it should work (and link dynamically). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875128 https://bugzilla.novell.com/show_bug.cgi?id=875128#c2 --- Comment #2 from Bernhard Wiedemann <bwiedemann@suse.com> 2014-04-25 16:00:12 CEST --- This is an autogenerated message for OBS integration: This bug (875128) was mentioned in https://build.opensuse.org/request/show/231424 Factory / gcc49 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875128 https://bugzilla.novell.com/show_bug.cgi?id=875128#c3 Cristian Rodríguez <crrodriguez@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from Cristian Rodríguez <crrodriguez@opensuse.org> 2014-04-25 21:17:59 CLT --- (In reply to comment #1)
A requires is missing. If you install libgo5 it should work (and link dynamically).
Yeah, that or the current package works. thank you Richard, that solves the problem as far as I am concerned. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875128 https://bugzilla.novell.com/show_bug.cgi?id=875128#c4 --- Comment #4 from Bernhard Wiedemann <bwiedemann@suse.com> 2014-04-28 15:01:18 CEST --- This is an autogenerated message for OBS integration: This bug (875128) was mentioned in https://build.opensuse.org/request/show/231904 Factory / gcc49 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875128 https://bugzilla.novell.com/show_bug.cgi?id=875128#c5 --- Comment #5 from Bernhard Wiedemann <bwiedemann@suse.com> 2014-04-30 11:00:13 CEST --- This is an autogenerated message for OBS integration: This bug (875128) was mentioned in https://build.opensuse.org/request/show/232158 Factory / gcc49 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com