Bug 107538 (1.23, compilation, failure, tag) - Intel-gpu-tools 1.23 tag fails compilation on Clang due to implicit declaration of function
Summary: Intel-gpu-tools 1.23 tag fails compilation on Clang due to implicit declarati...
Status: NEW
Alias: 1.23, compilation, failure, tag
Product: DRI
Classification: Unclassified
Component: IGT (show other bugs)
Version: XOrg git
Hardware: All All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-10 00:01 UTC by Casey Bowman
Modified: 2018-08-14 18:22 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Casey Bowman 2018-08-10 00:01:47 UTC
While cross-compiling the 'igt-gpu-tools-1.23' tag in the ChromeOS environment, which uses Clang, I observed the following error:

tests/gem_userptr_blits.c:1092:10: error: implicit declaration of function 'memfd_create' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        memfd = memfd_create("pages", 0);

This issue is resolved by the following commit (20 commits after tag):

bcb37a9 build: provide stub implementation for memfd_create


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.