[OpenAFS-devel] OpenAFS fails to build with GCC 7 when building for Linux 4.9+
Bastian Beischer
bastian.beischer@rwth-aachen.de
Tue, 30 May 2017 13:35:30 +0200
--001a113db9e476f8520550bc3353
Content-Type: text/plain; charset="UTF-8"
Dear all,
Just a heads up: Due to a compiler bug OpenAFS fails to build with GCC 7
when building for Linux 4.9+. There is a compiler crash which causes the
check for the "gid" member of the "group_info" struct in "cred.h" to fail,
even though it shouldn't. As a consequence STRUCT_GROUP_INFO_HAS_GID is not
defined and thus GROUP_AT isn't either, which causes the build of the
kernel module to fail.
The GCC bug is tracked here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80919
Cheers
Bastian
--001a113db9e476f8520550bc3353
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:arial,he=
lvetica,sans-serif">Dear all,</div><div class=3D"gmail_default" style=3D"fo=
nt-family:arial,helvetica,sans-serif"><br></div><div class=3D"gmail_default=
" style=3D"font-family:arial,helvetica,sans-serif">Just a heads up: Due to =
a compiler bug OpenAFS fails to build with GCC 7 when building for Linux 4.=
9+. There is a compiler crash which causes the check for the "gid"=
; member of the "group_info" struct in "cred.h" to fail=
, even though it shouldn't. As a consequence=C2=A0STRUCT_GROUP_INFO_HAS=
_GID is not defined and thus GROUP_AT isn't either, which causes the bu=
ild of the kernel module to fail.</div><div class=3D"gmail_default" style=
=3D"font-family:arial,helvetica,sans-serif"><br></div><div class=3D"gmail_d=
efault" style=3D"font-family:arial,helvetica,sans-serif">The GCC bug is tra=
cked here:</div><div class=3D"gmail_default" style=3D"font-family:arial,hel=
vetica,sans-serif"><br></div><div class=3D"gmail_default"><font face=3D"ari=
al, helvetica, sans-serif"><a href=3D"https://gcc.gnu.org/bugzilla/show_bug=
.cgi?id=3D80919">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80919</a></=
font><br></div><div class=3D"gmail_default"><font face=3D"arial, helvetica,=
sans-serif"><br></font></div><div class=3D"gmail_default"><font face=3D"ar=
ial, helvetica, sans-serif">Cheers</font></div><div class=3D"gmail_default"=
><font face=3D"arial, helvetica, sans-serif">Bastian<br></font></div>
</div>
--001a113db9e476f8520550bc3353--