Hi all,
when I tried to build GCC, an error showed up when compiling the binutils:
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: dwarf.o:D:\Download\TI-99\gcc\binutils-2.19.1\binutils/dwarf.c:56: multiple definition of `do_wide'; readelf.o:D:\Download\TI-99\gcc\binutils-2.19.1\binutils/readelf.c:169: first defined here
collect2.exe: error: ld returned 1 exit status
My environment:
Windows 10
msys2
mingw32_64 10.2.0
The variable do_wide is defined in both dwarf.c and readelf.c. When linking, you then get the error because the generated file readelf.exe consists of, among others, dwarf.o and readelf.o.
Does anybody know a workaround or a solution for it?
Thanks in advance.