darrylring opened a new issue, #20823: URL: https://github.com/apache/nuttx/issues/20823
### Description / Steps to reproduce the issue The changes in this commit https://github.com/apache/nuttx/commit/321105a3b4d67fac061ceafe5e5e988de15bc6f1 conflict with the definition of `main` in sys/types.h: https://github.com/apache/nuttx/blob/master/include/sys/types.h#L384 If `CONFIG_INIT_ENTRYPOINT` is anything other than `main` (the Kconfig default) it's fine. I have renamed our board entry points to `board_main` to work around this, but I wanted to flag it. ``` FAILED: [code=1] arch/arm/src/common/CMakeFiles/STARTUP_OBJS.dir/crt0.c.o /usr/bin/arm-none-eabi-gcc -D__NuttX__ -I/home/daring/Repos/pequod/vendor/nuttx-apps/system/argtable3/argtable3/src -isystem /home/daring/Repos/pequod/vendor/nuttx/include -isystem /home/daring/Repos/pequod/build/br-test-canfd-cant/nuttx/include -g -mtune=cortex-m33 -march=armv8-m.main+dsp -mfpu=fpv5-sp-d16 -mfloat-abi=hard --param=min-pagesize=0 -fno-common -Wall -Wshadow -Wundef -nostdlib -fomit-frame-pointer -mthumb -Wa,-mthumb -Wa,-mimplicit-it=always -ffunction-sections -fdata-sections -g -Wno-attributes -Wno-unknown-pragmas -Wstrict-prototypes -Wno-psabi -fdiagnostics-color=always -fmacro-prefix-map=/home/daring/Repos/pequod/vendor/nuttx= -fmacro-prefix-map=/home/daring/Repos/pequod/vendor/nuttx-apps= -fmacro-prefix-map=/home/daring/Repos/pequod/boards/br-test-canfd= -fmacro-prefix-map=/home/daring/Repos/pequod/vendor/nuttx/arch/arm/src/stm32h5= -fvisibility=hidden -mlong-calls @arch/arm/src/common/CMakeFiles/STARTUP_OBJS.dir/crt0.c.o.rsp -MD -MT arch/arm/src/common/CMakeFil es/STARTUP_OBJS.dir/crt0.c.o -MF arch/arm/src/common/CMakeFiles/STARTUP_OBJS.dir/crt0.c.o.d -o arch/arm/src/common/CMakeFiles/STARTUP_OBJS.dir/crt0.c.o -c /home/daring/Repos/pequod/vendor/nuttx/arch/arm/src/common/crt0.c /home/daring/Repos/pequod/vendor/nuttx/arch/arm/src/common/crt0.c:53:5: error: conflicting types for 'main'; have 'int(int, char **, char **)' 53 | int main(int argc, char *argv[], char *envp[]); | ^~~~ In file included from /home/daring/Repos/pequod/vendor/nuttx/arch/arm/src/common/crt0.c:27: /home/daring/Repos/pequod/vendor/nuttx/include/sys/types.h:384:5: note: previous declaration of 'main' with type 'int(int, char **)' 384 | int CONFIG_INIT_ENTRYPOINT(int argc, FAR char *argv[]); | ^~~~~~~~~~~~~~~~~~~~~~ [4/7] Linking C static library apps/external/libraries/blueberry/libblueberry_message.a ninja: build stopped: subcommand failed. ``` ### On which OS does this issue occur? [OS: Linux] ### What is the version of your OS? 7.2.10-arch1-1 ### NuttX Version master ### Issue Architecture [Arch: arm] ### Issue Area [Area: Other] ### Host information _No response_ ### Verification - [x] I have verified before submitting the report. -- 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]
