Using the latest xmake produces fatal error: 'stdlib.h' file not found #include_next <stdlib.h> #4252
-
I tried to use the latest xmake to build mogan in macos with m1 chip, and an error like this occurred. Then the system environment seemed to be messed up. Now the hello world of cpp cannot be compiled. What could be the problem? Below is a screenshot of the error I generated This is a screenshot of compiling the simplest helloworld cpp |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 4 replies
-
please run
and let me see the output |
Beta Was this translation helpful? Give feedback.
-
····
checking for HAVE_SYS_STAT_H ... no
checking for HAVE_MEMORY_H ... no
checking for HAVE_UNISTD_H ... no
checking for HAVE_SYS_TYPES_H ... no
checking for HAVE_PTY_H ... no
checking for HAVE_INTTYPES_H ... no
checking for HAVE_STRINGS_H ... no
checking for CONFIG_LARGE_POINTER ... no
checking for HAVE_STDLIB_H ... no
checking for HAVE_UTIL_H ... no
checking for HAVE_STRING_H ... no
stack traceback:
checking for libdl ... no
checking for HAVE_INTPTR_T ... no
|
Beta Was this translation helpful? Give feedback.
-
我要看完整 logs ,不是 error |
Beta Was this translation helpful? Give feedback.
-
tangjiahui@tangjiahuideMacBook-Air mogan % xmake -rvD
stack traceback: |
Beta Was this translation helpful? Give feedback.
-
再试试,xmake update -s dev |
Beta Was this translation helpful? Give feedback.
-
@Waruq xmake f -cvD
xmake f -cvD
finding pcre2/libpcre2-8 from brew ..
checking for llhttp ... no
xmake -rvD
checking for g++ ... /usr/bin/g++
stack traceback: |
Beta Was this translation helpful? Give feedback.
再试试,xmake update -s dev