Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include/spirv/OpenCL.std.h:271:2: error: extra ‘;’ [-Werror=pedantic] #153

Closed
azur3 opened this issue Mar 15, 2016 · 6 comments
Closed

Comments

@azur3
Copy link

azur3 commented Mar 15, 2016

Building on Ubuntu and getting this message.

Need to fix the code or remove pedantic?

Thanks

@dekimir
Copy link

dekimir commented Mar 15, 2016

Hi, @azur3. Sorry about the trouble.

Could you provide the whole build log? How closely are you following the README instructions?

@dneto0
Copy link
Collaborator

dneto0 commented Mar 15, 2016

This is a problem with the OpenCL header as published in the SPIR-V Registry.

@dneto0
Copy link
Collaborator

dneto0 commented Mar 15, 2016

I've filed a bug on the Khronos public bugzilla to track this at the working group level.
https://www.khronos.org/bugzilla/show_bug.cgi?id=1476

@dekimir
Copy link

dekimir commented Mar 15, 2016

@dneto0 agreed, but:

  1. if @azur3 is getting this error by turning on SPIRV_WARN_EVERYTHING, they can work around the problem by turning it off
  2. we can fix SPIRV_WARN_EVERYTHING by disabling certain warnings for files we can't control that have known problems

@dneto0
Copy link
Collaborator

dneto0 commented Mar 15, 2016

Correct. I don't want to turn off things in SPIRV_WARN_EVERYTHING because that's how I noticed the pedantic problem in the first place.
Recommend action: don't use SPIRV_WARN_EVERYTHING or -pedantic right now. Use those only after we get a fixed header file from upstream.

@AWoloszyn
Copy link
Contributor

This should now be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants