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

__restrict not defined Error #400

Closed
JBlaschke opened this issue Nov 20, 2022 · 3 comments
Closed

__restrict not defined Error #400

JBlaschke opened this issue Nov 20, 2022 · 3 comments

Comments

@JBlaschke
Copy link

While trying to generate C-bindings for Hwloc_jll I get the following error:

ERROR: LoadError: UndefVarError: __restrict not defined

Looking at the generated code, the error is being thrown by:

const __hwloc_restrict = __restrict

Should this be ignored by the code generator (it looks like it might be getting confused by restrict, __restrict, and __restrict__)?

@Gnimuc
Copy link
Member

Gnimuc commented Nov 21, 2022

Basically, if you don't need that symbol(__hwloc_restrict), you could workaround this by adding it in the output_ignorelist.

Should this be ignored by the code generator (it looks like it might be getting confused by restrict, __restrict, and __restrict__)?

Yes. I'm currently expanding this list case by case.

@Gnimuc
Copy link
Member

Gnimuc commented Nov 21, 2022

Fixed by e3a60ee .

@Gnimuc Gnimuc closed this as completed Nov 21, 2022
@JBlaschke
Copy link
Author

Brilliant ! Thanks @Gnimuc

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

2 participants