lupyuen commented on PR #10655:
URL: https://github.com/apache/nuttx/pull/10655#issuecomment-1754168154

   Hi @qinwei2004: Sorry there's a minor issue with macOS Build, it shows some 
`sed` messages:
   
   ```text
   $ tools/configure.sh pinephone:nsh
   $ make
   sed: illegal option -- r
   ```
   
   [(See the Complete 
Log)](https://gist.github.com/lupyuen/1c3f1f1d71993609bed3b31767595beb#file-pinephone-release-log-L282-L690)
   
   The build completes successfully, so the `sed` message is harmless. I traced 
the message to this change: 
[arch/arm64/src/Toolchain.defs](https://github.com/apache/nuttx/blob/master/arch/arm64/src/Toolchain.defs#L169)
   
   ```text
   # Workaround for GCC-12.2 linker warning
   ifeq ($(CONFIG_ARCH_TOOLCHAIN_GNU),y)
     ifeq ($(GCCVER),)
       export GCCVER := $(shell $(CC) --version | grep gcc | sed -r "s/.* 
([0-9]+\.[0-9]+).*/\1/" | cut -d'.' -f1)
   ```
   
   Which doesn't work as expected on macOS `sed`. Let me study the code above 
and see whether I can make it work on macOS and Linux `sed`. It might be 
similar to this fix: 
https://github.com/apache/nuttx/commit/e334786f8124915e3ee2c56cca7ac08fbf0d9243.
 Thanks!


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to