simbit18 commented on PR #13971: URL: https://github.com/apache/nuttx/pull/13971#issuecomment-2401902929
I tried this PR locally Cmake The problem does not occur when building NuttX only with Cmake. ``` [100%] Linking C static library libapps.a [100%] Built target apps [100%] Building C object apps/system/nsh/CMakeFiles/apps_nsh.dir/nsh_main.c.obj [100%] Linking C static library libapps_nsh.a [100%] Built target apps_nsh [100%] Building C object apps/system/nsh/CMakeFiles/apps_sh.dir/sh_main.c.obj [100%] Linking C static library libapps_sh.a [100%] Built target apps_sh [100%] Building C object apps/examples/hello/CMakeFiles/apps_hello.dir/hello_main.c.obj [100%] Linking C static library libapps_hello.a [100%] Built target apps_hello [100%] Building C object CMakeFiles/nuttx.dir/empty.c.obj [100%] Linking C executable nuttx [100%] Built target nuttx [100%] Generating nuttx.hex [100%] Built target nuttx-hex [100%] Generating nuttx.bin [100%] Built target nuttx-bin ``` Cmake+Ninja The problem occurs when building NuttX with Cmake+Ninja. ``` /bin/sh: line 1: /home/bit/nuttxnew/tools/gcc-arm-none-eabi/bin/arm-none-eabi-ar: Argument list too long [813/1026] Building C object mm/CMakeFiles/mm.dir/umm_heap/umm_malloc_size.c.obj ninja: build stopped: subcommand failed. ``` It is certainly related to the fact that Windows has a limit of 8192 characters for command line arguments. This does not seem an easy error to solve!!! Should we disable CMAKE + Ninja for Msys2 while waiting for a solution? -- 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]
