[Gluster-devel] Gluster and GCC 5.1
Anoop C S
achiraya at redhat.com
Mon Jun 29 18:40:21 UTC 2015
-----BEGIN PGP SIGNED MESSAGE-----
On 06/29/2015 11:56 PM, Kaleb S. KEITHLEY wrote:
> On 06/29/2015 02:04 PM, Anoop C S wrote:
>> Reading through gcc docs I could see that with gcc v5, it
>> defaults to C99 semantics and compiling with -fgnu89-inline
>> solves the above issue. I'm wondering how glusterfs compiled
>> successfully without providing this flag.
> Well, it didn't originally.
> Most of the bugs were fixed before Fedora 22 arrived with gcc-5.
> E.g. by building on Fedora Rawhide last year, reporting the bugs,
> and getting them fixed before Rawhide turned into Fedora 22.
Immediately after the Fedora 22 release, we had a similar issue
reported from a user with gcc v5 and was fixed through .
>> I'm investigating on other ways to use inline that behave the
>> same in the old and the new semantics.
> Using a command line option to get 1989 compiler semantics in 2015
> seems like a mistake.
That's correct. I just tried that 89 option to see whether it fixes or
not. I will have to check once more building glusterfs on f22 with gcc
v5. I will update the thread when I'm done.
- --Anoop C S.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-----END PGP SIGNATURE-----
More information about the Gluster-devel