Bug 28207 - error: unknown type name 'uint' (78 | uint recursion;) avr-gcc mingw32 Windows Build
Summary: error: unknown type name 'uint' (78 | uint recursion;) avr-gcc mingw32 Window...
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.37
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-07 22:09 UTC by Veit Devil
Modified: 2021-08-08 13:30 UTC (History)
0 users

See Also:
Host: Ubuntu 20.04.2 LTS
Target: avr
Build: Windows 64 Bit
Last reconfirmed:


Attachments
Windows binutils make (1.94 KB, text/plain)
2021-08-07 22:19 UTC, Veit Devil
Details
if this is still helpful (2.73 KB, text/plain)
2021-08-07 22:20 UTC, Veit Devil
Details

Note You need to log in before you can comment on or make changes to this bug.
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.