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

Problem with latest ClangSharpPInvokeGenerator #591

Open
DeafMan1983 opened this issue Jan 22, 2025 · 1 comment
Open

Problem with latest ClangSharpPInvokeGenerator #591

DeafMan1983 opened this issue Jan 22, 2025 · 1 comment

Comments

@DeafMan1983
Copy link

Hello,

I have tried #586 ( I already installed dotnet tool install clangsharppinvokegenerator, dotnet add package libclang-runtime-linux-x64 and dotnet add package libclangsharp-runtime-linux-x64

And I already installed clang and buildessential etc.

Why does it happen because it has error:

ClangSharpPInvokeGenerator --file /usr/include/CL/cl.h -n OpenCL --methodClassName CLInterop --libraryPath libOpenCL.so -o CSharp/Class.cs -i /usr/lib/gcc/x86_64-linux-gnu/13/include -i /usr/include
Diagnostics for '/usr/include/CL/cl.h':
    /usr/include/CL/cl_platform.h:362:10: fatal error: 'stddef.h' file not found
Skipping '/usr/include/CL/cl.h' due to one or more errors listed above.

And I checked find command:

find /usr -name stddef.h
/usr/include/linux/stddef.h
/usr/src/linux-headers-6.8.0-51/include/uapi/linux/stddef.h
/usr/src/linux-headers-6.8.0-51/include/linux/stddef.h
/usr/lib/llvm-18/lib/clang/18/include/stddef.h
/usr/lib/llvm-17/lib/clang/17/include/stddef.h
/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h

I have tried and it tells same skipping error cause I want to port to C# with OpenCL because it said error of stddef.h

How do I fix it? Please forgive me!

@naratteu
Copy link

#586 (comment)

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