i'm doing make -j on llama.cpp on an mac m1,  why am i getting these errors

In file included from src/unicode-data.cpp:3:
src/unicode-data.h:3:10: fatal error: 'cstdint' file not found
    3 | #include <cstdint>
      |          ^~~~~~~~~
1 error generated.
In file included from common/console.cpp:1:
common/console.h:5:10: fatal error: 'string' file not found
    5 | #include <string>
      |          ^~~~~~~~
In file included from common/train.cpp:1:
common/train.h:5:10: fatal error: 'string' file not found
    5 | #include <string>
      |          ^~~~~~~~
In file included from src/llama-grammar.cpp:1:
In file included from src/llama-grammar.h:3:
src/llama-impl.h:5:10: fatal error: 'string' file not found
    5 | #include <string>
      |          ^~~~~~~~
In file included from common/common.cpp:5:
common/common.h:7:10: fatal error: 'string' file not found
    7 | #include <string>
      |          ^~~~~~~~
In file included from src/unicode.cpp:5:
src/unicode.h:3:10: fatal error: 'cstdint' file not found
    3 | #include <cstdint>
      |          ^~~~~~~~~
common/log.cpp:3:10: fatal error: 'condition_variable' file not found
    3 | #include <condition_variable>
      |          ^~~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from common/arg.cpp:1:
In file included from common/arg.h:3:
common/common.h:7:10: fatal error: 'string' file not found
    7 | #include <string>
      |          ^~~~~~~~
1 error generated.
In file included from src/llama-sampling.cpp:1:
In file included from src/llama-sampling.h:5:
In file included from src/llama-grammar.h:3:
src/llama-impl.h:5:10: fatal error: 'string' file not found
    5 | #include <string>
      |          ^~~~~~~~
1 error generated.
In file included from common/sampling.cpp:1:
In file included from common/sampling.h:5:
common/common.h:7:10: fatal error: 'string' file not found
    7 | #include <string>
      |          ^~~~~~~~
In file included from common/ngram-cache.cpp:1:
common/ngram-cache.h:5:10: fatal error: 'unordered_map' file not found
    5 | #include <unordered_map>
      |          ^~~~~~~~~~~~~~~
In file included from src/llama-vocab.cpp:1:
In file included from src/llama-vocab.h:3:
src/llama-impl.h:5:10: fatal error: 'string' file not found
    5 | #include <string>
      |          ^~~~~~~~
1 error generated.
1 error generated.
make: *** [common/log.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [src/unicode-data.o] Error 1
In file included from src/llama.cpp:1:
src/llama-impl.h:5:10: fatal error: 'string' file not found
    5 | #iggml/src/ggml-blas.cpp:5:10: fatal error: 'future' file not found
    5 | #include <future>
      |          ^~~~~~~~
1 error generated.
make: *** [common/ngram-cache.o] Error 1
make: *** [src/unicode.o] Error 1
make: *** [src/llama-grammar.o] Error 1
nclude <string>
      |          ^~~~~~~~
make: *** [src/llama-sampling.o] Error 1
1 error generated.
1 error generated.
make: *** [src/llama-vocab.o] Error 1
make: *** [common/sampling.o] Error 1
make: *** [common/train.o] Error 1
cc -Iggml/include -Iggml/src -Iinclude -Isrc -Icommon -D_XOPEN_SOURCE=600 -D_DARWIN_C_SOURCE -DNDEBUG -DGGML_USE_ACCELERATE -DGGML_USE_BLAS -DACCELERATE_NEW_LAPACK -DACCELERATE_LAPACK_ILP64 -DGGML_USE_LLAMAFILE -DGGML_USE_METAL -DGGML_METAL_EMBED_LIBRARY  -std=c11   -fPIC -O3 -g -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Werror=implicit-function-declaration -pthread -Wunreachable-code-break -Wunreachable-code-return -Wdouble-promotion  -c /var/folders/s8/qbb86qp17_3gqyrfngp053980000gn/T/tmp.sD1TblQK6s/ggml-metal-embed.s -o ggml/src/ggml-metal-embed.o
In file included from common/json-schema-to-grammar.cpp:1:
In file included from common/json-schema-to-grammar.h:6:
common/json.hpp:21:10: fatal error: 'algorithm' file not found
   21 | #include <algorithm> // all_of, find, for_each
      |          ^~~~~~~~~~~
1 error generated.
make: *** [common/console.o] Error 1
1 error generated.
make: *** [common/common.o] Error 1
1 error generated.
1 error generated.
make: *** [common/json-schema-to-grammar.o] Error 1
make: *** [common/arg.o] Error 1
1 error generated.
make: *** [src/llama.o] Error 1
1 error generated.
make: *** [ggml/src/ggml-blas.o] Error 1


what do i need to install to fix them?