Re: mingw --enable-tui

gmail Vladimir Koković via Gdb-patches
2020-11-22T16:19:56Z

Hi,

checking build system type... x86_64-pc-linux-gnu
checking host system type... i686-w64-mingw32
checking target system type... i686-w64-mingw32

make[1]: Entering directory
'/home/vlada/AUR/mingw-w64-gdb/mingw-w64-gdb/vk/build-i686-w64-mingw32'

...

CXX    tui/tui-regs.o
CXX    tui/tui-source.o
CXX    tui/tui-stack.o
CXX    tui/tui-win.o
CXX    tui/tui-wingeneral.o
CXX    tui/tui-winsource.o
CXX    tui/tui.o

...

checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-w64-mingw32
checking target system type... x86_64-w64-mingw32

...

CXX    tui/tui-regs.o
CXX    tui/tui-source.o
CXX    tui/tui-stack.o
CXX    tui/tui-win.o
CXX    tui/tui-wingeneral.o
CXX    tui/tui-winsource.o
CXX    tui/tui.o
../../../src/gdb-10.1/gdb/tui/tui-win.c:130:1: error: narrowing
conversion of ‘2147483648’ from ‘chtype’ {aka ‘long long unsigned int’}
to ‘int’ [-Wnarrowing]
130 | };
| ^
../../../src/gdb-10.1/gdb/tui/tui-win.c:130:1: error: narrowing
conversion of ‘2483027968’ from ‘chtype’ {aka ‘long long unsigned int’}
to ‘int’ [-Wnarrowing]
make[2]: *** [Makefile:1614: tui/tui-win.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
'/home/vlada/AUR/mingw-w64-gdb/mingw-w64-gdb/vk/build-x86_64-w64-mingw32/gdb'
make[1]: *** [Makefile:10078: all-gdb] Error 2
make[1]: Leaving directory
'/home/vlada/AUR/mingw-w64-gdb/mingw-w64-gdb/vk/build-x86_64-w64-mingw32'
make: *** [Makefile:866: all] Error 2

On 22.11.20. 16:31, Eli Zaretskii wrote:
>> Date: Sun, 22 Nov 2020 12:44:56 +0100
>> From: gmail Vladimir Koković via Gdb-patches
>> <gdb-patches@sourceware.org>
>>
>> I managed to make mingw cross build 32 and 64, but I had to change
>> gdb/tui//tui-win.c because of mingw64.
> Can you tell what was the problem you saw without that change?
>
> Thanks.