Repository: ollama
Issue: Fails to build on macOS with "fatal error: {'string','cstdint'} file not found"
Labels: bug,macos,needs more info,build

### What is the issue?

I followed the instructions for building on mac [here](https://github.com/ollama/ollama/blob/main/docs/development.md#macos), but this failed at the `go generate` step.

Running `go generate ./...` fails with a set of header files not found errors.
```
$ go generate ./...
+ set -o pipefail
+ compress_pids=
+ echo 'Starting darwin generate script'
Starting darwin generate script
++ dirname ./gen_darwin.sh
<snip>
[ 26%] Linking CXX static library libggml.a
[ 26%] Built target ggml
[ 33%] Building CXX object src/CMakeFiles/llama.dir/llama.cpp.o
[ 40%] Building CXX object src/CMakeFiles/llama.dir/llama-vocab.cpp.o
[ 46%] Building CXX object src/CMakeFiles/llama.dir/llama-sampling.cpp.o
[ 53%] Building CXX object src/CMakeFiles/llama.dir/unicode-data.cpp.o
[ 53%] Building CXX object src/CMakeFiles/llama.dir/llama-grammar.cpp.o
[ 53%] Building CXX object src/CMakeFiles/llama.dir/unicode.cpp.o
In file included from .../src/github.com/ollama/ollama/llm/llama.cpp/src/unicode.cpp:5:
.../src/github.com/ollama/ollama/llm/llama.cpp/src/unicode.h:3:10: fatal error: 'cstdint' file not found
    3 | #include <cstdint>
      |          ^~~~~~~~~
1 error generated.
make[3]: *** [src/CMakeFiles/llama.dir/unicode.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from .../src/github.com/ollama/ollama/llm/llama.cpp/src/unicode-data.cpp:3:
.../src/github.com/ollama/ollama/llm/llama.cpp/src/unicode-data.h:3:10: fatal error: 'cstdint' file not found
    3 | #include <cstdint>
      |          ^~~~~~~~~
1 error generated.
make[3]: *** [src/CMakeFiles/llama.dir/unicode-data.cpp.o] Error 1
In file included from .../src/github.com/ollama/ollama/llm/llama.cpp/src/llama-grammar.cpp:1:
In file included from .../src/github.com/ollama/ollama/llm/llama.cpp/src/llama-grammar.h:3:
.../src/github.com/ollama/ollama/llm/llama.cpp/src/llama-impl.h:5:10: fatal error: 'string' file not found
    5 | #include <string>
      |          ^~~~~~~~
In file included from .../src/github.com/ollama/ollama/llm/llama.cpp/src/llama-vocab.cpp:1:
In file included from .../src/github.com/ollama/ollama/llm/llama.cpp/src/llama-vocab.h:3:
.../src/github.com/ollama/ollama/llm/llama.cpp/src/llama-impl.h:5:10: fatal error: 'string' file not found
    5 | #include <string>
      |          ^~~~~~~~
In file included from .../src/github.com/ollama/ollama/llm/llama.cpp/src/llama-sampling.cpp:1:
In file included from .../src/github.com/ollama/ollama/llm/llama.cpp/src/llama-sampling.h:5:
In file included from .../src/github.com/ollama/ollama/llm/llama.cpp/src/llama-grammar.h:3:
.../src/github.com/ollama/ollama/llm/llama.cpp/src/llama-impl.h:5:10: fatal error: 'string' file not found
    5 | #include <string>
      |          ^~~~~~~~
1 error generated.
make[3]: *** [src/CMakeFiles/llama.dir/llama-grammar.cpp.o] Error 1
1 error generated.
1 error generated.
make[3]: *** [src/CMakeFiles/llama.dir/llama-vocab.cpp.o] Error 1
In file included from .../src/github.com/ollama/ollama/llm/llama.cpp/src/llama.cpp:1:
.../src/github.com/ollama/ollama/llm/llama.cpp/src/llama-impl.h:5:10: fatal error: 'string' file not found
    5 | #include <string>
      |          ^~~~~~~~
make[3]: *** [src/CMakeFiles/llama.dir/llama-sampling.cpp.o] Error 1
1 error generated.
make[3]: *** [src/CMakeFiles/llama.dir/llama.cpp.o] Error 1
make[2]: *** [src/CMakeFiles/llama.dir/all] Error 2
make[1]: *** [ext_server/CMakeFiles/ollama_llama_server.dir/rule] Error 2
make: *** [ollama_llama_server] Error 2
llm/generate/generate_darwin.go:3: running "bash": exit status 2
```

Noted dependencies:
```
$ go version
go version go1.22.8 darwin/amd64
$ cmake --version
cmake version 3.30.5

CMake suite maintained and supported by Kitware (kitware.com/cmake).
$ gcc --version
Apple clang version 16.0.0 (clang-1600.0.26.3)
Target: x86_64-apple-darwin23.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
```

I expected to see a completed generation (as seen on linux). Alternatively, if other deps are required, I expected to see them listed in the [developer build instructions](https://github.com/ollama/ollama/blob/main/docs/development.md#macos).

### OS

macOS

### GPU

Apple

### CPU

AMD

### Ollama version

abd5dfd06a8e1309394b07c111be5f8412fca600