fdcavalcanti opened a new issue, #9596:
URL: https://github.com/apache/nuttx/issues/9596
I just rebased my current fork and can't compile anymore. Something to do
with misc/lib_memfd.c.
Here's the information:
```
misc/lib_memfd.c: In function 'memfd_create':
CC: misc/lib_crc32.c misc/lib_memfd.c:39:32: error:
'CONFIG_LIBC_MEM_FD_VFS_PATH' undeclared (first use in this function); did you
mean 'CONFIG_LIBC_FTOK_VFS_PATH'?
39 | # define LIBC_MEM_FD_VFS_PATH CONFIG_LIBC_MEM_FD_VFS_PATH
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
misc/lib_memfd.c:42:34: note: in expansion of macro 'LIBC_MEM_FD_VFS_PATH'
42 | #define LIBC_MEM_FD_VFS_PATH_FMT LIBC_MEM_FD_VFS_PATH "/%s"
| ^~~~~~~~~~~~~~~~~~~~
misc/lib_memfd.c:56:32: note: in expansion of macro
'LIBC_MEM_FD_VFS_PATH_FMT'
56 | snprintf(path, sizeof(path), LIBC_MEM_FD_VFS_PATH_FMT, name);
| ^~~~~~~~~~~~~~~~~~~~~~~~
misc/lib_memfd.c:39:32: note: each undeclared identifier is reported only
once for each function it appears in
39 | # define LIBC_MEM_FD_VFS_PATH CONFIG_LIBC_MEM_FD_VFS_PATH
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
misc/lib_memfd.c:42:34: note: in expansion of macro 'LIBC_MEM_FD_VFS_PATH'
42 | #define LIBC_MEM_FD_VFS_PATH_FMT LIBC_MEM_FD_VFS_PATH "/%s"
| ^~~~~~~~~~~~~~~~~~~~
misc/lib_memfd.c:56:32: note: in expansion of macro
'LIBC_MEM_FD_VFS_PATH_FMT'
56 | snprintf(path, sizeof(path), LIBC_MEM_FD_VFS_PATH_FMT, name);
| ^~~~~~~~~~~~~~~~~~~~~~~~
misc/lib_memfd.c:42:55: error: expected ')' before string constant
42 | #define LIBC_MEM_FD_VFS_PATH_FMT LIBC_MEM_FD_VFS_PATH "/%s"
| ^~~~~
misc/lib_memfd.c:56:32: note: in expansion of macro
'LIBC_MEM_FD_VFS_PATH_FMT'
56 | snprintf(path, sizeof(path), LIBC_MEM_FD_VFS_PATH_FMT, name);
| ^~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:150: bin/lib_memfd.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [tools/LibTargets.mk:180: libs/libc/libc.a] Error 2
make: *** Waiting for unfinished jobs....
```
Maybe someone who worked on it could check?
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]