k_msgq_get_attrs declared 'static' but never defined???


David Leach
 

Pulled master and went to build OpenThread echo server and get a ton of the following:

../../../../../include/kernel.h:3021:20: warning: ‘k_msgq_get_attrs’ declared ‘static’ but never defined [-Wunused-function]

__syscall void  k_msgq_get_attrs(struct k_msgq *q, struct k_msgq_attrs *attrs);

 

Not sure what changed from the last time I built the sample.

 

David Leach


Boie, Andrew P
 

I can't reproduce this.

Does doing a clean build help?

Is this sample built by our CI?

 

Andrew

 

From: devel@... [mailto:devel@...] On Behalf Of David Leach
Sent: Sunday, May 6, 2018 6:49 PM
To: zephyr-devel@...
Subject: [Zephyr-devel] k_msgq_get_attrs declared 'static' but never defined???

 

Pulled master and went to build OpenThread echo server and get a ton of the following:

../../../../../include/kernel.h:3021:20: warning: ‘k_msgq_get_attrs’ declared ‘static’ but never defined [-Wunused-function]

__syscall void  k_msgq_get_attrs(struct k_msgq *q, struct k_msgq_attrs *attrs);

 

Not sure what changed from the last time I built the sample.

 

David Leach


David Leach
 

Yes, that was it. I was being stupid and using ‘rm -rf *.*’ and not checking that the cmake files had been cleaned up… ‘rm -rf *’ does the job as does ‘ninja clean’

 

(back to my linux vm in my windows 10 machine… 😉 )

 

Thanks

 

From: Boie, Andrew P [mailto:andrew.p.boie@...]
Sent: Monday, May 7, 2018 4:23 PM
To: David Leach <david.leach@...>; zephyr-devel@...
Subject: RE: [Zephyr-devel] k_msgq_get_attrs declared 'static' but never defined???

 

I can't reproduce this.

Does doing a clean build help?

Is this sample built by our CI?

 

Andrew

 

From: devel@... [mailto:devel@...] On Behalf Of David Leach
Sent: Sunday, May 6, 2018 6:49 PM
To: zephyr-devel@...
Subject: [Zephyr-devel] k_msgq_get_attrs declared 'static' but never defined???

 

Pulled master and went to build OpenThread echo server and get a ton of the following:

../../../../../include/kernel.h:3021:20: warning: ‘k_msgq_get_attrs’ declared ‘static’ but never defined [-Wunused-function]

__syscall void  k_msgq_get_attrs(struct k_msgq *q, struct k_msgq_attrs *attrs);

 

Not sure what changed from the last time I built the sample.

 

David Leach


Leandro Pereira
 

On 05/07/2018 02:29 PM, David Leach wrote:
Yes, that was it. I was being stupid and using ‘rm -rf *.*’ and not checking that the cmake files had been cleaned up… ‘rm -rf *’ does the job as does ‘ninja clean’
(back to my linux vm in my windows 10 machine… 😉 )
Although you can use the "clean" target, try using "git clean -xfd" in the build directory instead of "rm".

It's less prone to errors: it will only remove files not tracked by Git, and will remove everything else. If you run the command outside your build directory, or type it wrongly (I once typed ~ instead of *), the catastrophe will be reduced.

(Important to note as well that "rm -rf *.*" and "rm -rf *" are not equivalent: Unix file systems consider "." as part of file names, and it's perfectly fine for files to not have "." in their names.)


Leandro