You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mynewt.apache.org by F Campos <fi...@gmail.com> on 2017/04/08 18:06:24 UTC
mynewt, build on ubuntu
Hi,
when building the mynewt on ubuntu I have an error on go builder:
*syscfg/syscfg.go:965: constant 4294967295 overflows int*
Seems that the SYSCFG_INTERRUPT_PRIO_MAX is too big for the variable "int"
*Linux Version:*
lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
*Go version:*
go version
go version go1.7 linux/386
Filipe
Re: mynewt, build on ubuntu
Posted by Sterling Hughes <st...@gmail.com>.
I believe just making this -1 should also fix the problem for now (and
we should update the code.). But I\u2019ll let Chris chime in. I\u2019d
change it to -1 for now.
Best,
Sterling
On 8 Apr 2017, at 12:58, Sterling Hughes wrote:
> We just noticed this the other day, we have not tested on a 32-bit
> ubuntu vm, just the 64-bit vms, as all our stuff is 64-bit here.
> It\u2019s a bug.
>
> Can you try building newt with a 64-bit GOARCH? I think it\u2019s
> GOARCH=amd64.
>
> If you use a 64-bit ubuntu vm, that should work too.
>
> sterling
>
> On 8 Apr 2017, at 11:06, F Campos wrote:
>
>> Hi,
>> when building the mynewt on ubuntu I have an error on go builder:
>>
>> *syscfg/syscfg.go:965: constant 4294967295 overflows int*
>>
>> Seems that the SYSCFG_INTERRUPT_PRIO_MAX is too big for the variable
>> "int"
>>
>>
>>
>> *Linux Version:*
>> lsb_release -a
>> Distributor ID: Ubuntu
>> Description: Ubuntu 14.04.4 LTS
>> Release: 14.04
>> Codename: trusty
>>
>>
>> *Go version:*
>> go version
>> go version go1.7 linux/386
>>
>>
>> Filipe
Re: mynewt, build on ubuntu
Posted by Sterling Hughes <st...@gmail.com>.
We just noticed this the other day, we have not tested on a 32-bit
ubuntu vm, just the 64-bit vms, as all our stuff is 64-bit here. It\u2019s
a bug.
Can you try building newt with a 64-bit GOARCH? I think it\u2019s
GOARCH=amd64.
If you use a 64-bit ubuntu vm, that should work too.
sterling
On 8 Apr 2017, at 11:06, F Campos wrote:
> Hi,
> when building the mynewt on ubuntu I have an error on go builder:
>
> *syscfg/syscfg.go:965: constant 4294967295 overflows int*
>
> Seems that the SYSCFG_INTERRUPT_PRIO_MAX is too big for the variable
> "int"
>
>
>
> *Linux Version:*
> lsb_release -a
> Distributor ID: Ubuntu
> Description: Ubuntu 14.04.4 LTS
> Release: 14.04
> Codename: trusty
>
>
> *Go version:*
> go version
> go version go1.7 linux/386
>
>
> Filipe
Re: mynewt, build on ubuntu
Posted by Christopher Collins <ch...@runtime.io>.
Thanks Filipe. I just pushed a fix for this issue. The setting type
that caused this problem (interrupt_priority) was broken and unused
anyway. I thought we had already removed it, but obviously not! The
fix is to remove this setting type.
I believe the latest on master should build on a 32-bit system.
Chris
On Sat, Apr 08, 2017 at 07:06:24PM +0100, F Campos wrote:
> Hi,
> when building the mynewt on ubuntu I have an error on go builder:
>
> *syscfg/syscfg.go:965: constant 4294967295 overflows int*
>
> Seems that the SYSCFG_INTERRUPT_PRIO_MAX is too big for the variable "int"
>
>
>
> *Linux Version:*
> lsb_release -a
> Distributor ID: Ubuntu
> Description: Ubuntu 14.04.4 LTS
> Release: 14.04
> Codename: trusty
>
>
> *Go version:*
> go version
> go version go1.7 linux/386
>
>
> Filipe