acassis commented on PR #10124:
URL: https://github.com/apache/nuttx/pull/10124#issuecomment-1673790778
Please fix this error in the nuttx-apps:
```
====================================================================================
Configuration/Tool: esp32-devkitc/watcher
------------------------------------------------------------------------------------
Cleaning...
Configuring...
Building NuttX...
In file included from wdt.c:38:
Error: task_mn.h:74:35: error: 'struct noteram_get_taskname_s' declared
inside parameter list will not be visible outside of this definition or
declaration [-Werror]
74 | void task_mn_get_task_name(struct noteram_get_taskname_s *task);
| ^~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [/github/workspace/sources/apps/Application.mk:171:
wdt.c.github.workspace.sources.apps.examples.watcher.o] Error 1
In file included from task_mn.c:37:
Error: task_mn.h:74:35: error: 'struct noteram_get_taskname_s' declared
inside parameter list will not be visible outside of this definition or
declaration [-Werror]
74 | void task_mn_get_task_name(struct noteram_get_taskname_s *task);
| ^~~~~~~~~~~~~~~~~~~~~~
task_mn.c: In function 'task_mn_print_tasks_status':
Error: task_mn.c:65:33: error: storage size of 'task' isn't known
65 | struct noteram_get_taskname_s task;
| ^~~~
Error: task_mn.c:86:25: error: 'NOTERAM_GETTASKNAME' undeclared (first use
in this function); did you mean 'NOTERAM_GETMODE'?
86 | ioctl(notefd, NOTERAM_GETTASKNAME, (unsigned long)&task);
| ^~~~~~~~~~~~~~~~~~~
| NOTERAM_GETMODE
task_mn.c:86:25: note: each undeclared identifier is reported only once for
each function it appears in
Error: task_mn.c:65:33: error: unused variable 'task'
[-Werror=unused-variable]
65 | struct noteram_get_taskname_s task;
| ^~~~
task_mn.c: At top level:
Error: task_mn.c:244:35: error: 'struct noteram_get_taskname_s' declared
inside parameter list will not be visible outside of this definition or
declaration [-Werror]
244 | void task_mn_get_task_name(struct noteram_get_taskname_s *task)
| ^~~~~~~~~~~~~~~~~~~~~~
Error: task_mn.c:244:6: error: conflicting types for
'task_mn_get_task_name'; have 'void(struct noteram_get_taskname_s *)'
244 | void task_mn_get_task_name(struct noteram_get_taskname_s *task)
| ^~~~~~~~~~~~~~~~~~~~~
task_mn.h:74:6: note: previous declaration of 'task_mn_get_task_name' with
type 'void(struct noteram_get_taskname_s *)'
74 | void task_mn_get_task_name(struct noteram_get_taskname_s *task);
| ^~~~~~~~~~~~~~~~~~~~~
task_mn.c: In function 'task_mn_get_task_name':
Error: task_mn.c:255:17: error: 'NOTERAM_GETTASKNAME' undeclared (first use
in this function); did you mean 'NOTERAM_GETMODE'?
255 | ioctl(notefd, NOTERAM_GETTASKNAME, (unsigned long)task);
| ^~~~~~~~~~~~~~~~~~~
| NOTERAM_GETMODE
task_mn.c: In function 'task_mn_subscribe':
Error: task_mn.c:261:33: error: storage size of 'task' isn't known
261 | struct noteram_get_taskname_s task;
| ^~~~
Error: task_mn.c:261:33: error: unused variable 'task'
[-Werror=unused-variable]
task_mn.c: In function 'task_mn_unsubscribe':
Error: task_mn.c:281:33: error: storage size of 'task' isn't known
281 | struct noteram_get_taskname_s task;
| ^~~~
Error: task_mn.c:281:33: error: unused variable 'task'
[-Werror=unused-variable]
cc1: all warnings being treated as errors
make[3]: *** [/github/workspace/sources/apps/Application.mk:171:
task_mn.c.github.workspace.sources.apps.examples.watcher.o] Error 1
In file included from watcher_main.c:34:
Error: task_mn.h:74:35: error: 'struct noteram_get_taskname_s' declared
inside parameter list will not be visible outside of this definition or
declaration [-Werror]
74 | void task_mn_get_task_name(struct noteram_get_taskname_s *task);
| ^~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [/github/workspace/sources/apps/Application.mk:231:
watcher_main.c.github.workspace.sources.apps.examples.watcher.o] Error 1
make[3]: Target 'all' not remade because of errors.
make[2]: *** [Makefile:53:
/github/workspace/sources/apps/examples/watcher_all] Error 2
make[2]: Target '/github/workspace/sources/apps/libapps.a' not remade
because of errors.
make[1]: *** [Makefile:47: all] Error 2
make: *** [tools/LibTargets.mk:232:
/github/workspace/sources/apps/libapps.a] Error 2
make: Target 'all' not remade because of errors.
/github/workspace/sources/nuttx/tools/testbuild.sh: line 370:
/github/workspace/sources/nuttx/../nuttx/nuttx.manifest: No such file or
directory
Normalize esp32-devkitc/watcher
```
--
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]