jerpelea opened a new pull request, #19658:
URL: https://github.com/apache/nuttx/pull/19658

   ## Summary
   
   mkallsyms.py prints "Please execute the following command to install 
dependencies: pip install pyelftools cxxfilt" and then calls 
os._exit(errno.EINVAL).  os._exit() terminates without flushing stdio, so when 
stdout is a pipe -- which it always is under make -- the message sits in the 
buffer and is discarded.  What the developer sees is:
   
     make[1]: *** [Makefile:65: nuttx] Error 22
   
   with no indication of the cause anywhere in the build output.  Error 22 is 
just errno.EINVAL leaking out as an exit status.  The same applies to usage(), 
which exits ENOENT the same way.
   
   Use sys.exit() in both places, which raises SystemExit and lets the 
interpreter flush on the way out.  Nothing else changes:  the exit statuses are 
the same, and os is no longer referenced, so the import goes too.
   
   ## Impact
   
   RELEASE
   
   ## Testing
   
   CI


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to