Bug 28207

Summary: error: unknown type name 'uint' (78 | uint recursion;) avr-gcc mingw32 Windows Build
Product: binutils Reporter: Veit Devil <veit.friedrich>
Component: binutilsAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 2.37   
Target Milestone: ---   
Host: Ubuntu 20.04.2 LTS Target: avr
Build: Windows 64 Bit Last reconfirmed:
Attachments: Windows binutils make
if this is still helpful

Description Veit Devil 2021-08-07 22:09:31 UTC
Hi,

when building avr-gcc mingw32 toolchain for windows with gcc 11.2.0 and binutils 2.37 an error occurs during the build process of windows binutils.

error: unknown type name 'uint'
  78 | uint recursion;

A solution is to replace both "uint" with "unsigned" in the rust-demangle.c or to replace the file with the one of binutils 2.36.1.

If you continue building despite the error, files in /bin/ are missing later in the Windows build.
In /avr/bin/ some files are missing.
And the folder /avr/lib/ldscripts is missing completely.

Can you please fix this error? Thanks.
Comment 1 Veit Devil 2021-08-07 22:19:02 UTC
Created attachment 13598 [details]
Windows binutils make

see line from 124
Comment 2 Veit Devil 2021-08-07 22:20:38 UTC
Created attachment 13599 [details]
if this is still helpful

if this is still helpful what runs after make with make install
Comment 3 Alan Modra 2021-08-08 03:44:29 UTC
This bug was fixed on the binutils-2.37 branch with commit 999566402e3.
Comment 4 Veit Devil 2021-08-08 13:30:12 UTC
Thanks for this information.