public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug go/65404] New: cgo tool on powerpc-linux-gnu maybe incomplete
@ 2015-03-12 14:49 doko at gcc dot gnu.org
  2015-03-12 16:02 ` [Bug go/65404] " ian at airs dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: doko at gcc dot gnu.org @ 2015-03-12 14:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65404

            Bug ID: 65404
           Summary: cgo tool on powerpc-linux-gnu maybe incomplete
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: doko at gcc dot gnu.org
                CC: cmang at google dot com

cgo tool on powerpc-linux-gnu maybe incomplete

the symptom noted at https://launchpad.net/bugs/1431032
shows an error:
dist/src/github.com/lxc/lxd/shared/container.go:11:2: C source files not
allowed when not using cgo: sqlite3-binding.c

another not yet implemented issue is the support for PPC relocations, reported
as
https://github.com/golang/go/issues/10118


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug go/65404] cgo tool on powerpc-linux-gnu maybe incomplete
  2015-03-12 14:49 [Bug go/65404] New: cgo tool on powerpc-linux-gnu maybe incomplete doko at gcc dot gnu.org
@ 2015-03-12 16:02 ` ian at airs dot com
  2015-03-12 16:04 ` doko at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ian at airs dot com @ 2015-03-12 16:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65404

--- Comment #1 from Ian Lance Taylor <ian at airs dot com> ---
There is nothing in the cgo tool which would cause this error.

When the command runs "go", which go tool is actually running?  The difference
may be that on platforms other than powerpc-linux-gnu it is running the go tool
from the gc compiler, but on powerpc-linux-gnu it is running the go tool from
the gccgo compiler.  This could potentially happen because the gc compiler does
not support 32-bit powerpc.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug go/65404] cgo tool on powerpc-linux-gnu maybe incomplete
  2015-03-12 14:49 [Bug go/65404] New: cgo tool on powerpc-linux-gnu maybe incomplete doko at gcc dot gnu.org
  2015-03-12 16:02 ` [Bug go/65404] " ian at airs dot com
@ 2015-03-12 16:04 ` doko at gcc dot gnu.org
  2015-03-12 16:27 ` stgraber at stgraber dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: doko at gcc dot gnu.org @ 2015-03-12 16:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65404

--- Comment #2 from Matthias Klose <doko at gcc dot gnu.org> ---
see http://paste.ubuntu.com/10586128/

afaics it is both running the go tool from GCC 5. no other go tool is
installed.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug go/65404] cgo tool on powerpc-linux-gnu maybe incomplete
  2015-03-12 14:49 [Bug go/65404] New: cgo tool on powerpc-linux-gnu maybe incomplete doko at gcc dot gnu.org
  2015-03-12 16:02 ` [Bug go/65404] " ian at airs dot com
  2015-03-12 16:04 ` doko at gcc dot gnu.org
@ 2015-03-12 16:27 ` stgraber at stgraber dot org
  2015-03-12 16:42 ` ian at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: stgraber at stgraber dot org @ 2015-03-12 16:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65404

Stéphane Graber <stgraber at stgraber dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stgraber at stgraber dot org

--- Comment #3 from Stéphane Graber <stgraber at stgraber dot org> ---
Hi,

Correct, on both my powerpc and ppc64le systems, I'm running:

(vivid-ppc64el)stgraber@kelsey01:~$ go version
go version go1.4.2 gccgo (Ubuntu 5-20150309-1ubuntu1) 5.0.0 20150310
(experimental) [trunk revision 221296] linux/ppc64le

(vivid-powerpc-sbuild)root@winton-06:~# go version
go version go1.4.2 gccgo (Ubuntu 5-20150309-1ubuntu1) 5.0.0 20150310
(experimental) [trunk revision 221296] linux/ppc


The ppc64le one works fine, the powerpc one fails.
>From gcc-bugs-return-480203-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 12 16:32:23 2015
Return-Path: <gcc-bugs-return-480203-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118919 invoked by alias); 12 Mar 2015 16:32:22 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 118873 invoked by uid 48); 12 Mar 2015 16:32:19 -0000
From: "ian at airs dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug go/65404] cgo tool on powerpc-linux-gnu maybe incomplete
Date: Thu, 12 Mar 2015 16:32: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: UNCONFIRMED
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: <bug-65404-4-dbu5BAcuk9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65404-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65404-4@http.gcc.gnu.org/bugzilla/>
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/msg01347.txt.bz2
Content-length: 165

https://gcc.gnu.org/bugzilla/show_bug.cgi?ide404

--- Comment #4 from Ian Lance Taylor <ian at airs dot com> ---
OK, found it.  Thanks.  Will send patch shortly.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug go/65404] cgo tool on powerpc-linux-gnu maybe incomplete
  2015-03-12 14:49 [Bug go/65404] New: cgo tool on powerpc-linux-gnu maybe incomplete doko at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2015-03-12 16:27 ` stgraber at stgraber dot org
@ 2015-03-12 16:42 ` ian at gcc dot gnu.org
  2015-03-12 16:46 ` ian at airs dot com
  2015-03-13 16:53 ` stgraber at stgraber dot org
  5 siblings, 0 replies; 7+ messages in thread
From: ian at gcc dot gnu.org @ 2015-03-12 16:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65404

--- Comment #5 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> ---
Author: ian
Date: Thu Mar 12 16:41:28 2015
New Revision: 221396

URL: https://gcc.gnu.org/viewcvs?rev=221396&root=gcc&view=rev
Log:
    PR go/65404
go/build: cgo works on linux/pcc.

Modified:
    trunk/libgo/go/go/build/build.go


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug go/65404] cgo tool on powerpc-linux-gnu maybe incomplete
  2015-03-12 14:49 [Bug go/65404] New: cgo tool on powerpc-linux-gnu maybe incomplete doko at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2015-03-12 16:42 ` ian at gcc dot gnu.org
@ 2015-03-12 16:46 ` ian at airs dot com
  2015-03-13 16:53 ` stgraber at stgraber dot org
  5 siblings, 0 replies; 7+ messages in thread
From: ian at airs dot com @ 2015-03-12 16:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65404

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Ian Lance Taylor <ian at airs dot com> ---
This one should be fixed.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug go/65404] cgo tool on powerpc-linux-gnu maybe incomplete
  2015-03-12 14:49 [Bug go/65404] New: cgo tool on powerpc-linux-gnu maybe incomplete doko at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2015-03-12 16:46 ` ian at airs dot com
@ 2015-03-13 16:53 ` stgraber at stgraber dot org
  5 siblings, 0 replies; 7+ messages in thread
From: stgraber at stgraber dot org @ 2015-03-13 16:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65404

--- Comment #7 from Stéphane Graber <stgraber at stgraber dot org> ---
So with the cherry-picked fix, I get:

(vivid-powerpc-sbuild)root@winton-06:~# cat test.go
package main

/*
#include <stdio.h>
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=/tmp/go-build320378268
command-line-arguments
mkdir -p $WORK/command-line-arguments/_obj/
cd /root
CGO_LDFLAGS="-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=1 but 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: <gcc-bugs-return-480307-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
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" <gcc-bugzilla@gcc.gnu.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: <bug-65404-4-0YPHXBOlae@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65404-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65404-4@http.gcc.gnu.org/bugzilla/>
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=65404

--- Comment #8 from Stéphane Graber <stgraber at stgraber dot org> ---
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: <gcc-bugs-return-480308-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
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" <gcc-bugzilla@gcc.gnu.org>
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: <bug-65404-4-irXYyEHtl8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65404-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65404-4@http.gcc.gnu.org/bugzilla/>
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?ide404

--- Comment #9 from Ian Lance Taylor <ian at airs dot com> ---
It could be due to PR 65417, yes.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-03-13 16:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-12 14:49 [Bug go/65404] New: cgo tool on powerpc-linux-gnu maybe incomplete doko at gcc dot gnu.org
2015-03-12 16:02 ` [Bug go/65404] " ian at airs dot com
2015-03-12 16:04 ` doko at gcc dot gnu.org
2015-03-12 16:27 ` stgraber at stgraber dot org
2015-03-12 16:42 ` ian at gcc dot gnu.org
2015-03-12 16:46 ` ian at airs dot com
2015-03-13 16:53 ` stgraber at stgraber dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).