Hi! On Sun, Jul 13, 2025 at 11:38:33PM +0200, Georg-Johann Lay via Gcc-help wrote: > Am 12.07.25 um 20:46 schrieb Georg-Johann Lay via Gcc-help: > > ../../src-gcc/gcc/system.h:737:30: error: expected identifier before > > string constant > > 737 | #define abort() fancy_abort (__FILE__, __LINE__, __FUNCTION__) > > | ^~~~~~~~ > As it seems, the error goes like this: > > gcc-8/gcc/system.h defines abort(): > > extern void fancy_abort (const char *, int, const char *) > ATTRIBUTE_NORETURN ATTRIBUTE_COLD; > #define abort() fancy_abort (__FILE__, __LINE__, __FUNCTION__) > > This is then plugged in /usr/share/mingw-w64/include/msxml.h > which has > For now I am building with CXXFLAGS=-D__msxml_h__ so that > msxml.h is skipped. > > ...But setting CXXFLAGS kicks out flags like -g -O2. Is there > a better way? I find CXXFLAGS_FOR_BUILD in Makefile but it > has no effect. https://gcc.gnu.org/install/ doesn't mention > anything either. Or was is CXXFLAGS_FOR_HOST or BUILD_CXXFLAGS ...? Searching this problem on the interwebs, many people seem to work around it by commenting out the failing line. Your solution seeme better :-) But, try CXXFLAGS="$(CXXFLAGS) -D__msxml_h__" or similar? Or use += , but that is only inside GNU make (the += operator in Bourne shell isn't quite the same). GL;HF, Segher