-
Notifications
You must be signed in to change notification settings - Fork 11.7k
common/log.h:290:61: error: expected primary-expression before ',' token #2898
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
Comments
Hi, the log's new, but I had no problems building in Linux with @staviq Do you recognize this compile issue? |
If you change |
This is likely Windows stray comma shenanigans, builds were fully passing yesterday, so that has to be some quirk of w64devkit If you can tell me how did you set up the compilation environment I would be able to recreate it In the mean time Can you edit log.h and at the top, after includes and before the rest add #undef _WIN32 and at the very bottom add #define _WIN32 And see if it fixes it ? Edit: This w64devkit ? As in, mingw thing ? https://www.mingw-w64.org/downloads/ |
I am using w64devkit and am encountering the same issue. |
I'm stuck at work for couple more hours, but i have a general idea as to what is going on. |
Ok, this is 100% because _WIN32 is defined on w64devkit, yet it compiles the "unix" way with gcc. Fix is already on the way, just testing if it doesn't break other builds. I used ifdef _WIN32 because other parts of the project are using it, but it turns out to be a bad idea, and now i can see lots of warning from other source files related to _WIN32 Proper way of detecting MSVC seems to be checking for This appears to be specific to w64devkit/msys/mingw |
I have the exact same issue using the latest version of w64devkit (https://github.com/skeeto/w64devkit/releases/tag/v1.20.0) Just doing this :
|
@staviq I think you can use |
@slaren
Done. |
|
After recompiling, there was no error: expected primary expression before ',' token error, but a new error occurred |
Fix for this particular issue is already prepared to be merged, but we noticed other problems with w64devkit specifically, and we aren't sure yet, but those other problems might be w64devkit fault, so I would try something other than w64devkit untill we determine the source cause. |
I compiled successfully with cmake and did not encounter any errors |
Running environment: Windows
Compilation method: BLAS Build
When I open w64devkit.exe and CD it to the llama.cpp directory, enter the command make LLAMA_ OPENBLAS=1 encountered the following error
The text was updated successfully, but these errors were encountered: