How to get bitbake to send gcc warnings to stdout?

取消
显示结果 
搜索替代 
您的意思是: 

How to get bitbake to send gcc warnings to stdout?

1,881 次查看
charlieschultz
Contributor II

When I run my recipe to build my app (which uses a makefile), compiler errors will be displayed on the console. But if there are only warnings, nothing is displayed.

I can run bitbake with the -v option and see the compiler warnings, but I also get a bunch of irrelevant bitbake processing messages too.

Is there any option to have it always send (only) compiler errors and warnings to the console?

标签 (2)
0 项奖励
1 回复

1,035 次查看
b36401
NXP TechSupport
NXP TechSupport

Please try to use this patch to send logging messages to stderr:
https://patchwork.openembedded.org/patch/131283/

And then optionally you can redirect stderr into stdout with 2>&1 at the end of the command.

Have a great day,
Victor

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励