From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 33168 invoked by alias); 13 Mar 2015 16:53:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 33082 invoked by uid 48); 13 Mar 2015 16:53:17 -0000 From: "stgraber at stgraber dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/65404] cgo tool on powerpc-linux-gnu maybe incomplete Date: Fri, 13 Mar 2015 16:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stgraber at stgraber dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg01450.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65404 --- Comment #7 from St=C3=A9phane Graber --- So with the cherry-picked fix, I get: (vivid-powerpc-sbuild)root@winton-06:~# cat test.go package main /* #include now void hello() { printf("Hello world!\n"); } */ import "C" func main() { C.hello() } (vivid-powerpc-sbuild)root@winton-06:~# go build -v -x test.go WORK=3D/tmp/go-build320378268 command-line-arguments mkdir -p $WORK/command-line-arguments/_obj/ cd /root CGO_LDFLAGS=3D"-g" "-O2" /usr/lib/gcc/powerpc-linux-gnu/5/cgo -objdir $WORK/command-line-arguments/_obj/ -gccgo -- -I $WORK/command-line-arguments/_obj/ test.go # command-line-arguments ./test.go:13:5: call of non-function C.hello So cgo is now supported and I don't have to force it with CGO_ENABLED=3D1 b= ut I still can't use my cgo function. >>From gcc-bugs-return-480307-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 13 16:58:25 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 44972 invoked by alias); 13 Mar 2015 16:58:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 44902 invoked by uid 48); 13 Mar 2015 16:58:16 -0000 From: "stgraber at stgraber dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/65404] cgo tool on powerpc-linux-gnu maybe incomplete Date: Fri, 13 Mar 2015 16:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stgraber at stgraber dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg01451.txt.bz2 Content-length: 256 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65404 --- Comment #8 from St=C3=A9phane Graber --- Mathias suggested this may be #65417 but I'm not familiar enough with gccgo= and cgo to know whether that's the case or not. >>From gcc-bugs-return-480308-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 13 17:02:31 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71213 invoked by alias); 13 Mar 2015 17:02:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 71170 invoked by uid 48); 13 Mar 2015 17:02:28 -0000 From: "ian at airs dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/65404] cgo tool on powerpc-linux-gnu maybe incomplete Date: Fri, 13 Mar 2015 17:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ian at airs dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg01452.txt.bz2 Content-length: 150 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65404 --- Comment #9 from Ian Lance Taylor --- It could be due to PR 65417, yes.