From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Vong Subject: Re: gccgo package does not include gccgo binary Date: Sun, 10 Jul 2016 23:29:20 +0800 Message-ID: <87a8hpjyun.fsf@gmail.com> References: <87twg1zedu.fsf@gmail.com> <87shvizcnm.fsf@guixsd-mailerver.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMGfm-0007Qd-1h for help-guix@gnu.org; Sun, 10 Jul 2016 11:29:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMGfi-00007W-Om for help-guix@gnu.org; Sun, 10 Jul 2016 11:29:33 -0400 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]:33403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMGfi-00007R-HQ for help-guix@gnu.org; Sun, 10 Jul 2016 11:29:30 -0400 Received: by mail-pf0-x243.google.com with SMTP id c74so11961966pfb.0 for ; Sun, 10 Jul 2016 08:29:30 -0700 (PDT) In-Reply-To: <87shvizcnm.fsf@guixsd-mailerver.i-did-not-set--mail-host-address--so-tickle-me> (Matthew Jordan's message of "Sat, 09 Jul 2016 18:09:49 -0400") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Matthew Jordan Cc: help-guix@gnu.org Hello Mathew, Thank your help, but I still cannot build hello-world... Matthew Jordan writes: > Good Day Alex and everyone, > >> It seems the gccgo package does not come with the gccgo binary. Is there >> something I am missing here? I am installing the output 'out'. > > For gccgo-4.x and older releases there is no "go command". Gccgo 4.x > and older are library implementations of the various versions of the > "The Go Programming Language Specification". > > However as of gccgo 5.x this has changed. For gccgo 5.x the "gccgo" > command serves as a CLI interface to the library. > > I hope this clarifies things, also see the links below for more > information. > > > References: > > Setting up and using gccgo - The Go Programming Language > https://golang.org/doc/install/gccgo#Using_gccgo > This page suggests me to use gccgo command, which doesn't work. $ gccgo -c hello.go ==> bash: gccgo: command not found > Gccgo in GCC 4.7.1 - The Go Blog > https://blog.golang.org/gccgo-in-gcc-471 > This page suggests a new command: $ go build -compiler gccgo myprog ==> go build command-line-arguments: gccgo: exec: "gccgo": executable file not found in $PATH > The Go Programming Language Specification - The Go Programming Language > https://golang.org/ref/spec > > Sincerely, > > ---- > Matthew Jordan Also, in this page, https://gcc.gnu.org/onlinedocs/gcc-4.7.4/gccgo/Invoking-gccgo.html#Invoking-gccgo, it said, 'The gccgo command is a frontend to gcc and supports many of the same options'. Does this mean there is some kind of gccgo command even for gcc 4.7? Am I missing something here? Thanks, Alex