whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

not building main.exe

Open anubhav712 opened this issue 1 year ago • 1 comments

Main.exe fails with bad array length bad_array

Fails stack below

GCC -I. -O3 -std=c11 -mfma -mf16c -mavx -mavx2 -c ggml.c -o ggml.o g++ -I. -I./examples -O3 -std=c++11 -c whisper.cpp -o whisper.o g++ -I. -I./examples -O3 -std=c++11 examples/main/main.cpp whisper.o ggml.o -o main ./main -h mingw32-make: *** [Makefile:98: main] Error -1073741511

Env : windows 10 .

was able to build till 30th oct

anubhav712 avatar Nov 09 '22 17:11 anubhav712

Able to solve the issue for now , but not sure why does it require static libstdc+

modified line 98 in MAKEFILE to

$(CXX) $(CXXFLAGS) examples/main/main.cpp whisper.o ggml.o -static-libstdc++ -static-libgcc -o main $(LDFLAGS)

anubhav712 avatar Nov 09 '22 19:11 anubhav712