Bug 95562 - Unable to compile Beignet on Ubuntu 16.04
Summary: Unable to compile Beignet on Ubuntu 16.04
Status: RESOLVED FIXED
Alias: None
Product: Beignet
Classification: Unclassified
Component: Beignet (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium blocker
Assignee: Xiuli Pan
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-23 19:28 UTC by Edwin van Eggelen
Modified: 2016-08-25 02:17 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Edwin van Eggelen 2016-05-23 19:28:53 UTC
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’
Comment 1 Xiuli Pan 2016-05-26 09:14:34 UTC
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.