Beignet-1.1.2 ( utests ) does not seem to compile on Ubuntu 16.04. Please find the error listed below. /Beignet-1.1.2-Source/build$ ldd --version ldd (Ubuntu GLIBC 2.23-0ubuntu3) 2.23 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper. /Beignet-1.1.2-Source/build$ gcc --version gcc (Ubuntu 5.3.1-14ubuntu2) 5.3.1 20160413 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Errors: Beignet-1.1.2-Source/utests/generated/builtin_acos_float.cpp: In function ‘void builtin_acos_float()’: Beignet-1.1.2-Source/utests/generated/builtin_acos_float.cpp:78:30: error: ‘isinf’ was not declared in this scope if (isinf(cpu_data[index])){ /home/developer/Beignet-1.1.2-Source/utests/generated/builtin_acos_float.cpp:81:35: error: ‘isnan’ was not declared in this scope else if (isnan(cpu_data[index])){ ^ /home/developer/Beignet-1.1.2-Source/utests/generated/builtin_acos_float.cpp:81:35: note: suggested alternative: In file included from xxxx/Beignet-1.1.2-Source/utests/generated/builtin_acos_float.cpp:10:0: /usr/include/c++/5/cmath:641:5: note: ‘std::isnan’ isnan(_Tp __x) ^ Beignet-1.1.2-Source/utests/generated/builtin_acos_float.cpp:108:30: error: ‘isinf’ was not declared in this scope if (isinf(cpu_data[index])){ ^ Beignet-1.1.2-Source/utests/generated/builtin_acos_float.cpp:108:30: note: suggested alternative: In file included from xxxx/Beignet-1.1.2-Source/utests/generated/builtin_acos_float.cpp:10:0: /usr/include/c++/5/cmath:621:5: note: ‘std::isinf’ isinf(_Tp __x) ^ /Beignet-1.1.2-Source/utests/generated/builtin_acos_float.cpp:112:35: error: ‘isnan’ was not declared in this scope else if (isnan(cpu_data[index])){ ^ /Beignet-1.1.2-Source/utests/generated/builtin_acos_float.cpp:112:35: note: suggested alternative: In file included from /Beignet-1.1.2-Source/utests/generated/builtin_acos_float.cpp:10:0: /usr/include/c++/5/cmath:641:5: note: ‘std::isnan’
Hi Edwin, This is a known issue with the gcc 5.3 and this patch should help you solve this problem: https://cgit.freedesktop.org/beignet/commit/?id=14bd8855dddcf683df8138c1062bc65b05d46f94 This problem is caused by some std lib change. Thanks Xiuli
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.