You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mynewt.apache.org by Cody Smith <co...@gmail.com> on 2016/08/29 16:32:25 UTC
newt build error
Hey Everybody,
I'm trying to build the ble tiny example in Ubuntu 16.04 using the Newt
0.8.0. I've done a newt upgrade, and still get this same error. The error
on a newt build is:
Building target targets/bleFuzzTiny_tgt
Compiling cmd.c
Error: cmd.c: In function 'cmd_passkey':
cmd.c:1523:27: error: storage size of 'pk' isn't known
struct passkey_action pk;
^
cmd.c:1523:27: error: unused variable 'pk' [-Werror=unused-variable]
cc1: all warnings being treated as errors
exit status 1
I'm using gcc version gcc version 5.4.0 20160609 (Ubuntu
5.4.0-6ubuntu1~16.04.2).
Thanks,
Cody Smith
Re: newt build error
Posted by Cody Smith <co...@gmail.com>.
Ah yes, now that I think of it, I did make some mods to the repo. I had
forgotten.
Thanks,
Cody
On Aug 29, 2016 11:26 AM, "Christopher Collins" <cc...@apache.org> wrote:
> On Mon, Aug 29, 2016 at 10:32:25AM -0600, Cody Smith wrote:
> > Hey Everybody,
> >
> > I'm trying to build the ble tiny example in Ubuntu 16.04 using the Newt
> > 0.8.0. I've done a newt upgrade, and still get this same error. The
> error
> > on a newt build is:
> >
> > Building target targets/bleFuzzTiny_tgt
> > Compiling cmd.c
> > Error: cmd.c: In function 'cmd_passkey':
> > cmd.c:1523:27: error: storage size of 'pk' isn't known
> > struct passkey_action pk;
> > ^
> > cmd.c:1523:27: error: unused variable 'pk' [-Werror=unused-variable]
> > cc1: all warnings being treated as errors
> >
> > exit status 1
> >
> >
> > I'm using gcc version gcc version 5.4.0 20160609 (Ubuntu
> > 5.4.0-6ubuntu1~16.04.2).
>
> Hi Cody,
>
> I am able to build bletiny from 0.8.0 and 0.9.0, so I think you might
> have a partially-upgraded apache-mynewt-core repo. This might happen if
> you have made some local modifications to the repos/mynewt-apache-core
> directory prior to performing the "newt upgrade". Does this sound like
> a possibility? You can see if this is the case by entering the
> repos/mynewt-apache-core directory and then running:
>
> git status
>
> Thanks,
> Chris
>
Re: newt build error
Posted by Christopher Collins <cc...@apache.org>.
On Mon, Aug 29, 2016 at 10:32:25AM -0600, Cody Smith wrote:
> Hey Everybody,
>
> I'm trying to build the ble tiny example in Ubuntu 16.04 using the Newt
> 0.8.0. I've done a newt upgrade, and still get this same error. The error
> on a newt build is:
>
> Building target targets/bleFuzzTiny_tgt
> Compiling cmd.c
> Error: cmd.c: In function 'cmd_passkey':
> cmd.c:1523:27: error: storage size of 'pk' isn't known
> struct passkey_action pk;
> ^
> cmd.c:1523:27: error: unused variable 'pk' [-Werror=unused-variable]
> cc1: all warnings being treated as errors
>
> exit status 1
>
>
> I'm using gcc version gcc version 5.4.0 20160609 (Ubuntu
> 5.4.0-6ubuntu1~16.04.2).
Hi Cody,
I am able to build bletiny from 0.8.0 and 0.9.0, so I think you might
have a partially-upgraded apache-mynewt-core repo. This might happen if
you have made some local modifications to the repos/mynewt-apache-core
directory prior to performing the "newt upgrade". Does this sound like
a possibility? You can see if this is the case by entering the
repos/mynewt-apache-core directory and then running:
git status
Thanks,
Chris