Hi, Sibin

Try earlier version of Go. Go-1.7 works for me.

BR,
Andrey

On 05.06.2017 18:00, Sibin P. Thomas wrote:
Hi,

I am at step 4 in the list of steps prescribed here - 
https://mynewt.apache.org/newt/install/newt_linux/ for installing Newt on a 
Linux machine.

I give the command "go install" (even "go build") and I get the error -
# mynewt.apache.org/newt/newt/newtutil
newtutil/newtutil.go:32: import 
/opt/golang/pkg/linux_amd64/mynewt.apache.org/newt/newt/interfaces.a: not a 
package file

Details -

*        pwd:
/opt/golang/src/mynewt.apache.org/newt/newt

*        ls:
builder  compat      flash   image       mfg      newtutil  project  resolve  
syscfg   target     vendor
cli      downloader  Godeps  interfaces  newt.go  pkg       repo     symbol   
sysinit  toolchain

*        ls interfaces:
interfaces.go

*        go env:
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/opt/golang"
GORACE=""
GOROOT="/opt/go"
GOTOOLDIR="/opt/go/pkg/tool/linux_amd64"
GCCGO="/usr/bin/gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 
-fdebug-prefix-map=/tmp/go-build393681247=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"

*        go version:
go version go1.8 linux/amd64

I haven't used Go earlier.

Regards,
Sibin


________________________________

http://www.mindtree.com/email/disclaimer.html


Reply via email to