g2gps commented on code in PR #8173: URL: https://github.com/apache/nuttx/pull/8173#discussion_r1080646614
########## boards/sim/sim/sim/scripts/Make.defs: ########## @@ -164,6 +164,10 @@ ifeq ($(CONFIG_LIBCXX),y) # It makes libcxx __availability header unhappy. # https://github.com/llvm/llvm-project/blob/2e2999cd44f6ec9a5e396fa0113497ea82582f69/libcxx/include/__availability#L258 CXXFLAGS += -D_LIBCPP_DISABLE_AVAILABILITY + + # Force inclusion of Nuttx math.h, which undefines __GLIBC__. + # Without this inclusing, the system math.h may be picked up first, casuing an incorrect configuration in llvm. + CXXFLAGS += -include$(TOPDIR)$(DELIM)include$(DELIM)arch$(DELIM)math.h Review Comment: I overlooked this option. Adding it to `defconfig` solves this issue. -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org