Mesa does not build with the nouveau headers from libdrm 2.4.21 but configure does not check for libdrm >= 2.4.22.
Fixed in master. I guess nouveau developers don't care about stable branches, because they didn't announce their drivers being stable.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.