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

Window make Error. #34

Open
WEIFENG2333 opened this issue Dec 3, 2024 · 1 comment
Open

Window make Error. #34

WEIFENG2333 opened this issue Dec 3, 2024 · 1 comment

Comments

@WEIFENG2333
Copy link

I just:

mkdir build && cd build
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release ..
mingw32-make -j 8

and the error occur.

E:\Project\SenseVoice.cpp\build>mingw32-make -j 8
[  3%] Building C object sense-voice/csrc/third-party/ggml/src/CMakeFiles/ggml-base.dir/ggml.c.obj
[  7%] Building CXX object sense-voice/csrc/third-party/ggml/src/CMakeFiles/ggml-base.dir/ggml-threading.cpp.obj
[ 10%] Building C object sense-voice/csrc/third-party/ggml/src/CMakeFiles/ggml-base.dir/ggml-quants.c.obj
E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml.c: In function 'ggml_aligned_malloc':
E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml.c:239:12: error: implicit declaration of function '_aligned_malloc' [-Werror=implicit-function-declaration]
     return _aligned_malloc(size, alignment);
            ^~~~~~~~~~~~~~~
E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml.c:239:12: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return _aligned_malloc(size, alignment);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml.c: In function 'ggml_aligned_free':
E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml.c:290:5: error: implicit declaration of function '_aligned_free' [-Werror=implicit-function-declaration]
     _aligned_free(ptr);
     ^~~~~~~~~~~~~
In file included from E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml.c:5:0:
E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml.c: In function 'ggml_graph_print':
E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml.c:5961:23: warning: unknown conversion type character 'I' in format [-Wformat=]
         GGML_LOG_INFO(" - %3d: [ %5" PRId64 ", %5" PRId64 ", %5" PRId64 "] %16s %s\n",
                       ^
E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml-impl.h:79:69: note: in definition of macro 'GGML_LOG_INFO'
 #define GGML_LOG_INFO(...)  ggml_log_internal(GGML_LOG_LEVEL_INFO , __VA_ARGS__)
                                                                     ^~~~~~~~~~~
E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml.c:5961:23: warning: unknown conversion type character 'I' in format [-Wformat=]
         GGML_LOG_INFO(" - %3d: [ %5" PRId64 ", %5" PRId64 ", %5" PRId64 "] %16s %s\n",
                       ^
E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml-impl.h:79:69: note: in definition of macro 'GGML_LOG_INFO'
 #define GGML_LOG_INFO(...)  ggml_log_internal(GGML_LOG_LEVEL_INFO , __VA_ARGS__)
                                                                     ^~~~~~~~~~~
E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml.c:5961:23: warning: unknown conversion type character 'I' in format [-Wformat=]
         GGML_LOG_INFO(" - %3d: [ %5" PRId64 ", %5" PRId64 ", %5" PRId64 "] %16s %s\n",
                       ^
E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml-impl.h:79:69: note: in definition of macro 'GGML_LOG_INFO'
 #define GGML_LOG_INFO(...)  ggml_log_internal(GGML_LOG_LEVEL_INFO , __VA_ARGS__)
                                                                     ^~~~~~~~~~~
E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml.c:5961:23: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int64_t {aka long long int}' [-Wformat=]
         GGML_LOG_INFO(" - %3d: [ %5" PRId64 ", %5" PRId64 ", %5" PRId64 "] %16s %s\n",
                       ^
E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml-impl.h:79:69: note: in definition of macro 'GGML_LOG_INFO'
 #define GGML_LOG_INFO(...)  ggml_log_internal(GGML_LOG_LEVEL_INFO , __VA_ARGS__)
                                                                     ^~~~~~~~~~~
In file included from E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml-quants.c:6:0:
E:\Project\SenseVoice.cpp\sense-voice\cE:\Project\SenseVoice.cpp\sensrse-voice\cc\thirsrc\d-party\ggml\third-party\ggmlsrc\ggml-cpu\src\ggml.c:5961:23: warning: format '%s' expects argument of t/ype 'char *ggml-cpu-impl.h:326:20: fatal error', but argument : int5 hars in.htype: No 'int64_t {ak sauch file l or directory
 #include <intrin.h>
                    ^
ong long int}' [-Wformat=]
         GGML_LOG_INFO(" - %3d: [ %5"c PRId64 ", %5" PRIod64 "m, %5" PRId64 "] %16s %s\n",
                       ^
E:\Projepct\SenseVoice.cpp\sense-voicei\csrc\third-party\ggml\src\ggml-impl.h:79:69: note: in definitioln of macro 'GGaML_tLOG_iINFO'
 #define GGML_oLOGn_INFO(...)  ggml_l og_intternal(eGGML_LOG_LrEVEL_mINFO , __VA_ARGS__)
                                                                   i  n^~~~~~~~~~~a
ted.
E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml.c:5961:23: warning: too many arguments for format [-Wformat-extra-args]
         GGML_LOG_INFO(" - %3d: [ %5" PRId64 ", %5" PRId64 ", %5" PRId64 "] %16s %s\n",
                       ^
E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml-impl.h:79:69: note: in definition of macro 'GGML_LOG_INFO'
 #definsense-voice\cse GGML_LOG_INFO(...)  ggml_log_internal(GGML_LOG_LEVEL_INFO , __VA_ARGS__)
                               rc\third-party\g              gml\src\CMa      keFiles\ ggml-ba                 ^~~s~~~~~~~~
e.dir\build.make:153: recipe for target 'sense-voice/csrc/third-party/ggml/src/CMakeFiles/ggml-base.dir/ggml-quaE:\Prnts.ojecc.obj' failed
t\SenmseVoicie.cpp\sennse-voigce\csrc\wthird-party\ggml\src\ggml.3c:5972:23: warning: unknown conversion type character 'I' in format 2[-Wformat=]
         -GGMLm_LOG_INFO(" a- %3d: [ %5"k PRId64 ", %e5" PRId64 "] %8s %16s\n",
                       ^
E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml-impl.h:[E72:\Projec9:69: not]te: in d:\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml-threading.cpp:4:6: error: 'mutex' in namespace 'std' does not name e a tfinition of maype
 std::mcro*u 'GGML_tex ggml_cr*LOGi*_INFO'
 #define Gtical_section_mutex;
      ^~~~~
GML_LOG_INFO(...)  ggml_log_internal(GGML_LOG_LEVEL_INFO , __VA_ARGS__)
                        [Es :\Project\S              enseVe  oicn   se.cpp\sense-voicee    \csrc\third-party\ggml\src\ggml-threading.cpp: In function 'void ggml_critical_section_start()':
E:\Project -\SenseVoice.cpp\sense-voice\csrcv \oth          ird-party\ggml\src\i ggml-threading.cpp:7:5: error: 'ggmlc  e_critical_section_mut/ cex' was not declas     ^~~~~~~~~~~
red in this scope
     ggml_critical_scE:ection_mutex.loc\Project\SenseVoi/kce.cpp\set(nse-voic);
     ^e\csrc~~~~~~~~~~~~~~~~~~~~~~~~~~
\third-party\ggml\src\ggml.c:5972:23: warning: unknown conversion type character 'I' in foEhrmiat [-Wfo:\Projecrmt\SenseVat=]
         Groice.cppGML_LOG_INFO(" - %3d: [ %5" PRId64 ", %5" PRId64 "] %8s %16s\n",
                       ^
E:\Projecd\t\S-sense-voiceen\cspsrc\eVoaice.rtcpp\sethnsire-vyd-party\g/oicgmegl\src\ggml-th\csrc\third-party\ggml\src\ggml-impl.h:79:69: note: in definition of macro 'GGML_LOG_INFOgreading.cpp:m'
 #defil Inn f/e unction 'void ggml_criGstical_section_end()':
E:\Project\SenseVoice.cpp\sense-voice\csrc\third-party\ggml\src\ggml-threading.cpp:11:5: error: 'ggml_critical_section_rGML_LOmutcG_INFOex' was not de(...)  ggml_log_internc/al(GClared in this scope
     ggml_critical_section_mutex.unlock();
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
MGML_LOG_LEVEL_INFaO , __kVA_ARGS__)
      e        F              i     l                                    ^~~~~~~~~~~
es/ggml-base.E:\Project\SenseVoice.cpp\sense-voice\csrc\third-padrty\ggiml\src\ggml.c:5972:2r3: /wargning: format g'%s' exmpects argument of type 'char *', but argument 4 has type 'int64_t {aka long long int}' [-Wformat=]
         GGML_LOG_INFO(" - %3d: [ %5" PRlId64- ", q%5" PRuId64a "] %8s %n16st\n"s,
      .                 ^
E:\Project\SencseVoice.cpp\sense-voice\csrc\third-party\ggm.l\sorc\ggml-impl.h:79:69: note: in definition of bmacro 'GGML_LOjG_INFO]'
 #d efEine GGML_LOG_INFO(...)  ggml_rlog_interrnal(GGML_LOG_LEVEL_INFO , __VA_ARGS__)
           o    r                    1
            m  i             ^~n~~~~~g~~~~
32-make[2]E:\Pro:ject\Se ns*eVoi*ce*.c pp\sense-voice\Wcsrc\third-party\ggml\src\gagml.c:i5972:2t3:i nwarning: formatg '%s' expects arg umefnt oof rtype  'char *', but argument 5 has type 'int64_t {aka long long int}' [-Wformat=]
         GGuML_LOG_INFO(" - %3d: [ %n5" PRfId64 ", %5i" PnRId6i4 "] %s8sh %16s\n",
                e       ^
E:\Project\SenseVoice.cpp\sense-voice\csrc\third-partdy\ggml\src\ggml-impl.h:79:69: note: in definition o f macro j'GoGML_LbOG_INFO'
 #desfine GGML_LOG_.INF.O(...)  ggml_l.og_internal(GGM.L_LOG_LEVEL_INFO , __VA_ARGS__)
                                                                     ^~~~~~~~~~~

E:\Psensroject\SenseVoiece.-voicecp\csrc\third-party\ggml\src\Cp\sense-voice\csrc\third-party\ggml\src\ggml.c:5972:23: warMakeFiles\ggml-base.dir\build.make:138: recipe for target 'sense-voice/csrc/thirning:d-party too ma/ggml/src/CMany argukeFiles/gments gfor ml-bformat [-Wase.dir/ggml-threading.cpp.obj' failedforma
t-extra-args]
         GGML_LOG_INFO(" - %3d: [ m%5" PRId64 ", %5" PRId64 "] %8si %n16sg\n",
w                       ^
E:3\Proje2ct\SenseVoice.cp-p\sense-voice\csrc\third-party\ggml\src\ggml-impl.h:79:69: note: in definition of macro 'GGML_LOG_INFO'
 #defimne GGaML_LOG_INFO(...)  ggml_klog_internal(GGML_LOG_LeEVEL_INFO [, __VA_ARGS__)
         2                                                            ^~~~~~~~~~~
]: *** [sense-voice/csrc/third-party/ggml/src/CMakeFiles/ggml-base.dir/ggml-threading.cpp.obj] Error 1
cc1.exe: some warnings being treated as errors
sense-voice\csrc\third-party\ggml\src\CMakeFiles\ggml-base.dir\build.make:78: recipe for target 'sense-voice/csrc/third-party/ggml/src/CMakeFiles/ggml-base.dir/ggml.c.obj' failed
mingw32-make[2]: *** [sense-voice/csrc/third-party/ggml/src/CMakeFiles/ggml-base.dir/ggml.c.obj] Error 1
CMakeFiles\Makefile2:305: recipe for target 'sense-voice/csrc/third-party/ggml/src/CMakeFiles/ggml-base.dir/all' failed
mingw32-make[1]: *** [sense-voice/csrc/third-party/ggml/src/CMakeFiles/ggml-base.dir/all] Error 2
Makefile:134: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
@lovemefan
Copy link
Owner

ggml变动较大,请同步更新ggml再试试,后续有问题请继续反馈

git submodule sync && git submodule update --init --recursive

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

2 participants