It looks like you've install gccgo, not go (sometimes called golang-go by 
operating system vendors).

If you uninstall gccgo and install Go from the 
website, https://golang.org/dl/, it should work fine.

On Thursday, 19 January 2017 22:03:10 UTC+11, Alessandro Re wrote:
>
> Hello,
> few months back, on Fedora 23, I wrote a code that used gonum/floats. Now 
> on Fedora 25 I was trying to use that code again, but I fail in building it 
> because a certain header file can't be found when getting gonum/floats.
>
> Here some details:
>
> MyGo$ go get github.com/gonum/floats
> # github.com/gonum/internal/asm
> src/github.com/gonum/internal/asm/daxpyinc_amd64.s:43:22: fatal error: 
> textflag.h: No such file or directory
>  #include "textflag.h"
>                       ^
> compilation terminated.
> MyGo$ go env
> GOARCH="amd64"
> GOBIN=""
> GOEXE=""
> GOHOSTARCH="amd64"
> GOHOSTOS="linux"
> GOOS="linux"
> GOPATH="/home/user/MyGo"
> GORACE=""
> GOROOT="/usr"
> GOTOOLDIR="/usr/libexec/gcc/x86_64-redhat-linux/6.3.1"
> GO15VENDOREXPERIMENT="1"
> CC="/usr/bin/gcc"
> GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
> CXX="/usr/bin/g++"
> CGO_ENABLED="1"
> MyGo$ echo $GOROOT
>
> MyGo$ echo $GOPATH 
> /home/user/MyGo
> MyGo$ ls /usr/lib/golang/src/runtime/textflag.h 
> /usr/lib/golang/src/runtime/textflag.h
>
> The package `golang` was installed, and `golang-src` is installed as well 
> (textflag.h is indeed on my system). $GOROOT is not set, and I guess that 
> go env defaults to something else, but even setting GOROOT to 
> /usr/lib/golang doesn't solve.
>
> Go tool is installed system-wide, and GOPATH is set to a directory in my 
> home folder.
>
> Until now, go get proved to work regularly.
>
> Oh, I don't know if they are related, but I am experiencing another weird 
> issue: go tools cannot be found. Here's an example
>
> somecode$ go fix
> go tool: no such tool "fix"
>
> but 
>
> $ ls /usr/lib/golang/pkg/tool/linux_amd64/fix
> /usr/lib/golang/pkg/tool/linux_amd64/fix
>
> fix seems to be present in the system.
>
> So, what's wrong?
> Thanks in advance
> ~Alessandro
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to