-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
mingw32-make: Bad default value for $(CXX) #183
Comments
What exactly is the issue you are trying to report? It looks like you're seeing what is set in your environment. How is that a bad value? |
Why is You need to check the environment from where you're calling |
@brechtsanders I just had a similar problem. I try compile https://github.com/notepad-plus-plus/notepad-plus-plus through last WinLibs (GCC 14.1.0 with POSIX threads MSVCRT runtime) and returns an error at the first compiled file: The last properly working version WinLibs without this problem is GCC 13.1.0 with POSIX threads MSVCRT runtime. From the screenshot above you can see that there is actually something wrong with default CXX detection: I did some digging and noticed that the problem was with
although these files are different in next Winlibs versions. If we copy the one from GCC 13.1.0 (the last one that worked properly) to newer versions of Winlibs (even GCC 15.0.0), there will be no detection problems. I haven't analyzed the |
@Aerocatia In which executable(s) exactly did you find this, and in which version? I would need to know if something changed in the sources (e.g. a new build flag for relocatability) to fix this. I just checked my build recipes: GCC is build with |
@ArkadiuszMichalski
compared to part of the command being called As it happens So possibly this is an issue related to how Strange thing is I have been shipping |
This exist in all version of In earlier working version (like 13.1.0) it was: I haven't noticed that they made any changes to the paths, but I could be wrong http://git.savannah.gnu.org/cgit/make.git/log/. Also it in the bug list http://savannah.gnu.org/bugs/?group=make no one mentions about this, Maybe it's worth reporting a new one? Well it should be specify how exactly this code is compiled.
But if you compile from the current source, this file is different with each new version of WinLibs (even if it reports as GNU Make 4.4.1).
Probably not, because when I set CXX explicitly, everything works OK. Either way, mingw32-make.exe often has path problems. Recently I tried using it with Ccache and got the message:
The strange thing is that on Github Action and Msys2 this build goes without any problem, but locally (even with the same mingw32-make.exe file) it doesn't work. Maybe something is wrong on the WinLibs side, or something is wrong with my environment (until someone confirms it there is no point in deeper analyzing). https://github.com/ArkadiuszMichalski/notepad-plus-plus/actions/runs/8859141894/job/24328608354 |
Found it! Apparently the make sources store the value of CXX set at build time of make in the I modified my build script to strip the full path in New builds are in progress alread, since gdb just released a new version, so the fixed version will be in this next release. |
The text was updated successfully, but these errors were encountered: