[Beignet] patch to get beignet to compile on gcc 3.5.0
Pan, Xiuli
xiuli.pan at intel.com
Tue Mar 29 03:32:19 UTC 2016
Hi Sean,
I was quite confused with the gcc 3.5.0, I searched on gcc.gnu.org and found there is no version named 3.5.0.
If you mean the newest version 5.3.0, I have built one release version and try to build beignet and there is no error. Could you post the change log or anything related to the “removal of isnan and friends from the global namespace”.
The git describe show something misleading may because we have not set any tags for our project. It’s a very good idea for us to have some tags for beignet and we will figure out how to add some.
Thanks
Xiuli
From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of Sean Lynch
Sent: Saturday, March 26, 2016 11:24 PM
To: beignet at lists.freedesktop.org
Subject: [Beignet] patch to get beignet to compile on gcc 3.5.0
Hi, folks. Due to the removal of isnan and friends from the global namespace, beignet's master does not currently compile on Arch Linux and probably other platforms using gcc 3.5.0 (not sure if this is when it started but at least on this version). The following patch prepends std:: to isnan and friends and makes beignet compile and, as far as I've been able to tell from my somewhat limited testing (generating simpex noise using Reikna), work.
https://gist.github.com/seanlynch/725e2999ba79c54ed3af
I have created a "beignet-git" package in the AUR (Arch User Repository) that applies this patch, but I'll remove the patch once it's applied.
Also, please let me know if I shouldn't be using the master branch for the package; the version numbers I'm getting from "git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'" look like "Release_v1.0.0.r676.gad86ed3" when I would have thought I'd see 1.1.1 in there. https://aur.archlinux.org/packages/beignet-git/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/beignet/attachments/20160329/a8b6cd69/attachment.html>
More information about the Beignet
mailing list