pussuw commented on PR #6197:
URL: https://github.com/apache/incubator-nuttx/pull/6197#issuecomment-1117420539
> @pussuw there seem to be some warnings:
>
> ```
> stdlib/lib_cxa_atexit.c:83:13: error: '__cxa_callback' defined but not
used [-Werror=unused-function]
> ```
>
> CI turns warnings into errors, I don't know if you do that too, but you
can with: `make EXTRAFLAGS="-Werror"`.
>
> (there are some `make[3]: arm-nuttx-eabi-gcc: Command not found` as well,
there is an issue with the script apparently, please ignore it for now.)
I always fix warnings but I don't get this warning locally. But yes, it is
due to this:
```
#if !defined (CONFIG_BUILD_FLAT)
return __atexit_register(ATTYPE_CXA, (void (*)(void))func, arg, NULL);
#elif defined (CONFIG_SCHED_ONEXIT)
```
The first ifded leaves the second branch which refers to __cxa_callback
masked. I think the fix is to wrap the definiton of __cxa_callback with
!CONFIG_BUILD_FLAT. I'll fix that tomorrow.
The other build error which I listed above is way beyond my understanding.
The make recipe works locally for the targets that fail in 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]