>> The problem is that you might have to cross build the packages gdb >> requires. If you're lucky, your distro also packages them for >> mingw-w64. For instance, it looks like Suse packages libgmp: >> >> https://software.opensuse.org/package/mingw64-gmp?locale=ro >> >> These are the configure flags I currently use for this build: >> >> '--host=x86_64-w64-mingw32' \ >> 'CFLAGS=-g3 -O0' \ >> 'CC=ccache x86_64-w64-mingw32-gcc' \ >> 'CXXFLAGS=-g3 -O0 -fmax-errors=1' \ >> 'CXX=ccache x86_64-w64-mingw32-g++' \ >> '--disable-source-highlight' \ >> '--disable-gold' \ >> '--disable-ld' \ >> '--disable-binutils' \ >> '--disable-gprof' \ >> '--disable-gas' \ >> '--without-python' \ >> '--disable-nls' >> >> I'll try to get it to build inside a Suse container. >> > > Oh, I see, that's a good idea, thanks, I'll try that. > > - Tom Ok, I think I got it to work. See attached Dockerfile. Use with (fixup the path to the source tree in the `-v` flag): $ docker build -t opensuse-gdb-mingw-w64 . $ docker run -v /home/simark/src/binutils-gdb:/src -it opensuse-gdb-mingw-w64:latest # ./build.sh Of course, since you likely have a tumbleweed system already, you can simply install the required packages on that machine. Simon