Re: Newt build issue

2017-06-05 Thread Wanda Chiu
Hi Sabin,
Sorry you are having build issues with newt. For some reason, the link you 
refer to points to outdated documentation. The newt installation instructions, 
when you select  either Version:develop  or Version: 1.0.0 from the drop down 
menu on mynewt.apache.org, should give you instructions on how to install 1.0 
newt using apt-get. The URLs for them are 
http://mynewt.apache.org/latest/newt/install/newt_linux/ for the latest doc and 
http://mynewt.apache.org/v1_0_0/newt/install/newt_linux/ for 1.0 docs. Can 
please let me know how you got the link for the instructions.

What version of linux are you running? If you are using 16.10 ubuntu, you 
should be able to follow the instructions on either of the link above and 
install the newt 1.0 binary. If you would like to build from the latest newt 
source, please use the instructions here: 
http://mynewt.apache.org/latest/faq/go_env/
I just verified building on Ubuntu 16.10 sucessfully using both go 1.7.1 and 
1.8.3 successfully.

Please give it another try and let us know if you need further assistance.
Thanks,
Wanda




  From: Sibin P. Thomas 
 To: "dev@mynewt.incubator.apache.org"  
 Sent: Monday, June 5, 2017 8:01 AM
 Subject: Newt build issue
   
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

   

Re: Newt build issue

2017-06-05 Thread Pierre Kircher
or the sane alternative is run the docker container

pierre
> On 5 Jun 2017, at 16:52, Andrey Serdtsev  
> wrote:
> 
> 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
>> 
> 



signature.asc
Description: Message signed with OpenPGP


Re: Newt build issue

2017-06-05 Thread Andrey Serdtsev

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





Newt build issue

2017-06-05 Thread Sibin P. Thomas
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