ElectricRCAircraftGuy / Microchip_XC32_Compiler

[Works!] Build your own license-free, GPL version of the latest gcc-based Microchip MPLAB X IDE XC32 C++ compiler
GNU General Public License v3.0
5 stars 1 forks source link

Build attempt fails on Windows #1

Open ElectricRCAircraftGuy opened 8 months ago

ElectricRCAircraftGuy commented 8 months ago

See my Q here: checking size of mp_limb_t... 0 and configure: error: Oops, mp_limb_t doesn't seem to work when compiling the Microchip XC32 compiler from source, especially the "More leads to follow up on" section at the bottom of the question.

ElectricRCAircraftGuy commented 8 months ago

I answered the above question. Here's the next build error I'm stuck on: C++: error: expected ',' or '...' before string constant before __FILE__ in fancy_abort (__FILE__, __LINE__, __FUNCTION__) when compiling gcc

ElectricRCAircraftGuy commented 8 months ago

It works. Both Q's above have solutions.

ElectricRCAircraftGuy commented 8 months ago

See my bug report here, too: https://github.com/msys2/MINGW-packages/issues/19036

ElectricRCAircraftGuy commented 8 months ago

For the 2nd question above, do the proper fix! See the bottom of my answer here:

Basically, you should always #define WIN32_LEAN_AND_MEAN before calling #include <windows.h>. This, apparently, is the proper fix.

So:

  1. [ ] do a find and replace of all of those includes, replacing them with the #define before them and then the include. Save that as a patch file, and apply it just before doing the Windows builds.
  2. [ ] Make patch files for the other couple fixes too, as described here: https://github.com/ElectricRCAircraftGuy/Microchip_XC32_Compiler/blob/3ead0bf05fd95eef1c082bf0071240d9fd73430b/README.md#the-final-windows-fixesmanual-file-changes