Thanks. I found that on Solaris 11 the 64 bit libs are generated under
/usr/gnu/lib/64 when gcc was configured with --prefix= /usr/gnu. Everything
works on Solaris 11. However, I am facing problems on Solaris 10 as it
seems there are no 64-bit libs generated there. I will ask another question
On Fri, Sep 28, 2018 at 5:33 PM, wrote:
> Hi Ian,
>Setting GCCGO env variable helped. I basically compiled, helloworld.go
> with the following options and it compiled a 64 bit exectable:
>
> CC=/home/amandeep/workspace/mygcc.sh
> GCCGO=/home/amandeep/workspace/mygccgo.sh CGO_CFLAGS='-m64'
>
Hi Ian,
Setting GCCGO env variable helped. I basically compiled, helloworld.go
with the following options and it compiled a 64 bit exectable:
CC=/home/amandeep/workspace/mygcc.sh
GCCGO=/home/amandeep/workspace/mygccgo.sh CGO_CFLAGS='-m64'
CGO_LDFLAGS='-m64' GOARCH=sparc64 CGO_ENABLED=1 go
On Fri, Sep 28, 2018 at 4:00 PM, wrote:
> Actually, I now understand what you meant. And even that does not work:
>
> amandeep@s113ldom1:/opt/go_pkgs/src/github.com/golang/glog$ sudo
> GOPATH=/opt/go_pkgs CC='/home/amandeep/workspace/mygcc.sh' CGO_CFLAGS='-m64'
> CGO_LDFLAGS='-m64'
Actually, I now understand what you meant. And even that does not work:
amandeep@s113ldom1:/opt/go_pkgs/src/github.com/golang/glog$ sudo
GOPATH=/opt/go_pkgs CC='/home/amandeep/workspace/mygcc.sh'
CGO_CFLAGS='-m64' CGO_LDFLAGS='-m64' GOARCH=sparc64 CGO_ENABLED=1 go
install -x -gccgoflags=-m64
hmm...filed a bug here: https://github.com/golang/go/issues/27929
Could you explain the workaround for this again? I did not understand the
fallback option.
Apart from that, I tried to run each command manually to force m64 option
whenever possible. I was able to get a 64 bit executable for
On Fri, Sep 28, 2018 at 10:14 AM, wrote:
> nopes...doesn't work either. I tried both variations...with and without
> GOARCH=sparc64 flag. Following is the output with sparc64 flag:
>
> amandeep@s113ldom1:/opt/go_pkgs/src/github.com/golang/glog$ sudo
> GOPATH=/opt/go_pkgs CC='gcc -m64'
nopes...doesn't work either. I tried both variations...with and without
GOARCH=sparc64 flag. Following is the output with sparc64 flag:
amandeep@s113ldom1:/opt/go_pkgs/src/github.com/golang/glog$ sudo
GOPATH=/opt/go_pkgs CC='gcc -m64' CGO_CFLAGS='-m64' CGO_LDFLAGS='-m64'
GOARCH=sparc64
On Fri, Sep 28, 2018 at 12:43 AM, wrote:
> Seems like even that does not seem to work. Please see:
>
> amandeep@s113ldom1:/opt/go_pkgs/src/github.com/golang/glog$ sudo
> GOPATH=/opt/go_pkgs CGO_CFLAGS='-m64' CGO_LDFLAGS='-m64' go install -x
> -gccgoflags=-m64
> WORK=/tmp/go-build357879094
>
Seems like even that does not seem to work. Please see:
amandeep@s113ldom1:/opt/go_pkgs/src/github.com/golang/glog$ sudo
GOPATH=/opt/go_pkgs CGO_CFLAGS='-m64' CGO_LDFLAGS='-m64' go install -x
-gccgoflags=-m64
WORK=/tmp/go-build357879094
mkdir -p $WORK/b001/
cd $WORK
/usr/gnu/bin/gccgo
On Thu, Sep 27, 2018 at 5:34 PM, wrote:
> Yes, this works for a simple program I have. Now I modified the helloworld
> to use glog as follows:
>
> package main
>
> import (
> "fmt"
> "github.com/golang/glog"
> )
>
> func main() {
> fmt.Println("Hello world")
> glog.Info("Hello
On Thu, Sep 27, 2018 at 2:57 PM, Amandeep Gautam
wrote:
> Hi,
>I am trying to compile a 64bit executable using gccgo on Solaris 11/10.
> Following is what I have tried:
>
> CGO_LDFLAGS='-m64' go build hello_world.go
> GOARCH=sparc64 CGO_LDFLAGS='-m64' go build hello_world.go
>
> Below is the
Hi,
I am trying to compile a 64bit executable using gccgo on Solaris 11/10.
Following is what I have tried:
CGO_LDFLAGS='-m64' go build hello_world.go
GOARCH=sparc64 CGO_LDFLAGS='-m64' go build hello_world.go
Below is the output of the first command:
amandeep@s113ldom1:~/workspace$
13 matches
Mail list logo