Skip to content

Building with clspv enabled #621

@aji0915

Description

@aji0915

When trying to build amber with cmake -DAMBER_USE_CLSPV=TRUE -GNinja ../..
I get the following error after running the ninja command (screenshot of full error message attached.)

../../third_party/clspv-llvm/lib/Support/Unix/Process.inc:78:2: error: Cannot get the page size on this machine
#error Cannot get the page size on this machine
 ^
../../third_party/clspv-llvm/lib/Support/Unix/Process.inc:80:7: error: use of undeclared identifier 'page_size'
  if (page_size == -1)
      ^
../../third_party/clspv-llvm/lib/Support/Unix/Process.inc:83:32: error: use of undeclared identifier 'page_size'
  return static_cast<unsigned>(page_size);
<img width="1045" alt="Screen Shot 2019-08-22 at 12 43 46 PM" src="https://user-images.githubusercontent.com/54414080/63537073-86809880-c4da-11e9-956a-85b5fd112459.png">

I don't get the problem when I try to build without clspv. Any ideas how to fix this?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions