jasonbu commented on PR #14802:
URL: https://github.com/apache/nuttx/pull/14802#issuecomment-2478028788

   > I tested your changes in my repo: 
[nuttxpr@824f616](https://github.com/nuttxpr/nuttx/commit/824f616ced7c8f4b8d689c238f4a8106d228bd06)
   > 
   > But it's still failing? 
https://github.com/nuttxpr/nuttx/actions/runs/11849999668/job/33024190610#step:7:266
   > 
   > ```
   > Configuration/Tool: sim/segger
   > segger/stream_rtt.c: In function 'lib_rttoutstream_open':
   > Error: segger/stream_rtt.c:137:23: error: assignment to 'lib_puts_t' {aka 
'long int (*)(struct lib_outstream_s *, const void *, long unsigned int)'} from 
incompatible pointer type 'int (*)(struct lib_outstream_s *, const void *, 
int)' [-Werror=incompatible-pointer-types]
   >   137 |   stream->common.puts = rttstream_puts;
   >       |                       ^
   > segger/stream_rtt.c: In function 'lib_rttinstream_open':
   > Error: segger/stream_rtt.c:185:23: error: assignment to 'lib_gets_t' {aka 
'long int (*)(struct lib_instream_s *, void *, long unsigned int)'} from 
incompatible pointer type 'int (*)(struct lib_instream_s *, void *, int)' 
[-Werror=incompatible-pointer-types]
   >   185 |   stream->common.gets = rttstream_gets;
   >       |                       ^
   > cc1: all warnings being treated as errors
   > make[1]: *** [Makefile:109: segger/stream_rtt.o] Error 1
   > make[1]: Target 'libdrivers.a' not remade because of errors.
   > make: *** [tools/LibTargets.mk:107: drivers/libdrivers.a] Error 2
   > make: Target 'all' not remade because of errors.
   > ```
   
   I have no idea why it happen,
   
   already tried both docker and my local linux environment,
   cannot reproduce again once picked the patch.
   cmake should not able to work with sim:segger
   
   also review the branch, stream.h and stream_rtt.c all work as expected. 
nuttx/config.h also should be OK.
   
   double check code found small issue, updated patch _size_t -> size_t.
   
   possible the environment problem? 


-- 
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