Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cc: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory #110

Closed
clillianhong opened this issue Feb 14, 2024 · 4 comments

Comments

@clillianhong
Copy link

Attempting to build with 'make' fails with:

I ccache not found. Consider installing it for faster compilation.
I llama.cpp build info:
I UNAME_S:   Windows_NT
I UNAME_P:   unknown
I UNAME_M:   x86_64
I CFLAGS:    -I. -Icommon -D_XOPEN_SOURCE=600 -DNDEBUG -D_WIN32_WINNT=0x602  -std=c11   -fPIC -O3 -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Werror=implicit-function-declaration -march=native -mtune=native -Xassembler -muse-unaligned-vector-move -Wdouble-promotion
I CXXFLAGS:  -I. -Icommon -D_XOPEN_SOURCE=600 -DNDEBUG -D_WIN32_WINNT=0x602  -std=c++11 -fPIC -O3 -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wmissing-declarations -Wmissing-noreturn -Xassembler -muse-unaligned-vector-move  -march=native -mtune=native -Wno-array-bounds -Wno-format-truncation -Wextra-semi
I NVCCFLAGS: -O3
I LDFLAGS:
I CC:        cc (GCC) 13.2.0
I CXX:       g++ (GCC) 13.2.0

cc  -I. -Icommon -D_XOPEN_SOURCE=600 -DNDEBUG -D_WIN32_WINNT=0x602  -std=c11   -fPIC -O3 -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Werror=implicit-function-declaration -march=native -mtune=native -Xassembler -muse-unaligned-vector-move -Wdouble-promotion    -c ggml.c -o ggml.o
cc: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory
compilation terminated.
make: *** [Makefile:588: ggml.o] Error 1

I've attempted to resolve this by disabling Windows Defender.

@skeeto
Copy link
Owner

skeeto commented Feb 14, 2024 via email

@EliasVincent
Copy link

I've had the same issue. Windows Defender identified w64devkit as malware and probably messed with some things there as a result, even when allowing it.

I disabled Windows Defender and unzipped the release using 7zip instead of Windows Explorer, then it worked fine.

@skeeto
Copy link
Owner

skeeto commented Jun 6, 2024 via email

@skeeto skeeto mentioned this issue Aug 8, 2024
@skeeto
Copy link
Owner

skeeto commented Aug 8, 2024

This particular issue should be mitigated with the new 7z SFX distribution.

@skeeto skeeto closed this as completed Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants