xiaoxiang781216 commented on issue #131: Improve config URL: https://github.com/apache/incubator-nuttx/pull/131#issuecomment-579700425 > _The defintion actually come form nuttx/include/sys/types.h:_ > > false. the size_t definition is the NuttX sys/types is not used in this case at all. It is irrelevant to the discussion > > _Since the code generated by toolchain call many internal functions which is replaced/provided by NuttX(new is just one case). Is it better to use the basic typedef from toolchain directly? This approach could resolve all potential conflict but without any manual configuration._ > > No, can't be done. NuttX will not compile if you use try to include any newlib header files. The newlib header files all include numerous other header files and they are almost all incompatible with NuttX binary representations. See for example: https://cwiki.apache.org/confluence/display/NUTTX/Integrating+with+Newlib > > None of that will work. The only know solution is to make CONFIG_CXX_NEWLONG controllable as an input to testbuild.sh. We are wasting time arguing. You do not understand issues, clearly, and this change must be done. If you cannot fix it, I will restore the functionality tomorrow. Not all header files in toolchain are provided by newlib or glibc, newlib or glibc are the seperate project from gcc at all. The same gcc binary can/should work with newlib, glibc even musl. Here is header files provided by my gcc: ls -l prebuilts/gcc/linux/arm/lib/gcc/arm-none-eabi/9.2.1/include -rw-rw-r-- 1 xiaox xiaox 7786 Jan 14 23:48 arm_acle.h -rw-rw-r-- 1 xiaox xiaox 4900 Jan 14 23:48 arm_cmse.h -rw-rw-r-- 1 xiaox xiaox 6717 Jan 14 23:48 arm_fp16.h -rw-rw-r-- 1 xiaox xiaox 595196 Jan 14 23:48 arm_neon.h -rw-rw-r-- 1 xiaox xiaox 16979 Jan 14 23:48 float.h -rw-rw-r-- 1 xiaox xiaox 1394 Jan 14 23:48 gcov.h -rw-rw-r-- 1 xiaox xiaox 1272 Jan 14 23:48 iso646.h -rw-rw-r-- 1 xiaox xiaox 48219 Jan 14 23:48 mmintrin.h -rw-rw-r-- 1 xiaox xiaox 1210 Jan 14 23:48 stdalign.h -rw-rw-r-- 1 xiaox xiaox 4072 Jan 14 23:48 stdarg.h -rw-rw-r-- 1 xiaox xiaox 9321 Jan 14 23:48 stdatomic.h -rw-rw-r-- 1 xiaox xiaox 1524 Jan 14 23:48 stdbool.h -rw-rw-r-- 1 xiaox xiaox 12959 Jan 14 23:48 stddef.h -rw-rw-r-- 1 xiaox xiaox 6000 Jan 14 23:48 stdfix.h -rw-rw-r-- 1 xiaox xiaox 9457 Jan 14 23:48 stdint-gcc.h -rw-rw-r-- 1 xiaox xiaox 328 Jan 14 23:48 stdint.h -rw-rw-r-- 1 xiaox xiaox 1136 Jan 14 23:48 stdnoreturn.h -rw-rw-r-- 1 xiaox xiaox 5461 Jan 14 23:48 tgmath.h -rw-rw-r-- 1 xiaox xiaox 8196 Jan 14 23:48 unwind-arm-common.h -rw-rw-r-- 1 xiaox xiaox 3222 Jan 14 23:48 unwind.h -rw-rw-r-- 1 xiaox xiaox 139 Jan 14 23:48 varargs.h You can see the compiler tightly coupling basic types are defined here: float.h, stdarg.h, stdatomic.h, stdbool.h, stddef.h and stdint.h All of them don't depend on newlib/glibc. On the other hand, the header files provided by newlib/glibc come from here: ls -l prebuilts/gcc/linux/arm/arm-none-eabi/include/ -rw-rw-r-- 1 xiaox xiaox 2625 Oct 16 22:20 _ansi.h -rw-rw-r-- 1 xiaox xiaox 337 Oct 16 22:20 _newlib_version.h -rw-rw-r-- 1 xiaox xiaox 1170 Oct 16 22:20 _syslist.h -rw-rw-r-- 1 xiaox xiaox 412 Oct 16 22:20 alloca.h -rw-rw-r-- 1 xiaox xiaox 2958 Oct 16 22:20 ar.h ...
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
