I know this has shown up on the mailing list but there's no responses yet. Is anyone looking into this at all?
Seems to only trigger under -gcodeview, any other variant of the flag has not triggered it for me. However I need that particular option so I can cross-debug my application under the wine debugger, at least I assume that's the format it's looking for since every other one I've successfully compiled has not shown the call stack that causes the segfault in my project's win32 builds
Ah, forgot to add the version in, --version gave me x86_64-w64-mingw32-gcc (GCC) 15.1.0
Caused the compiler to segfault with code that compiled fine under gcc
Never mind, I'm a numpty, didn't realise I had the wrong name for the function, was supposed to be using SetFilePointer, guessing the same happened with FlushFile On Fri, 20 Jan 2023 at 12:10, Lee Shallis gb2985@gmail.com wrote: In fileapi.h line 29 there's this line: if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) || _WIN32_WINNT >= _WIN32_WINNT_WIN10 The problem with this is that it prevents compiling when using FileSetPointer, FileSetPointerEx &/or FlushFile. The 1st condition is fine but...
In fileapi.h line 29 there's this line: if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) || _WIN32_WINNT >= _WIN32_WINNT_WIN10 The problem with this is that it prevents compiling when using FileSetPointer, FileSetPointerEx &/or FlushFile. The 1st condition is fine but those functions are definitely available in earlier versions of windows so there's no reason they should be hidden behind that. I even tried setting WINAPI_FAMILY directly to WINAPI_PARTITION_DESKTOP only to find that nothing is...
Resolved it by adding the mingw prefix, for other people who had the same problem and came across this thread, here's a little more clarity with the makefile macros I'm using: CC?=cc CC32?=i686-w64-mingw32- CC64?=x86_64-w64-mingw32- Edit: Here's the usage too ~~~ build_ext_app=$(CC) -fPIC build_ext_elf=$(CC) -fPIC build_ext_AppImage=$(CC) -fPIC build_ext_dylib=$(CC) -fPIC -shared build_ext_so=$(CC) -fPIC -shared build_ext_a=$(AR) -rcs build_ext_o=$(CC) -fPIC build_ext_exe:= build_ext_dll:=-fPIC -shared...
Resolved it by adding the mingw prefix, for other people who had the same problem and came across this thread, here's a little more clarity with the makefile macros I'm using: CC?=cc CC32?=i686-w64-mingw32- CC64?=x86_64-w64-mingw32-