- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I installed the OneAPI BaseToolkit and create a vector-add sample project with oneapi-cli, but when I try to compile I get this error bellow.
I compile everything normally with g++ or clang++ with no errors at all.
How can I solve it?
/opt/intel/oneapi/compiler/2022.2.1/linux/bin-llvm/../include/sycl/CL/__spirv/spirv_types.hpp:26:10: fatal error: 'cstddef' file not found
Kubuntu 22.04
OneAPI Base Toolkit
Intel(R) oneAPI DPC++/C++ Compiler 2022.2.1 (2022.2.1.20221020)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2022.2.1/linux/bin-llvm
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for posting in Intel Communities and providing the details.
Could you please try on the system which has cstddef file? This should be available on the machine with Ubuntu's build-essentials package.
At our end, we have tried using the same command "oneapi-cli" and we are able to get the expected results. Please find the screenshot for more details:
Thanks & Regards,
Varsha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Varsha,
The file is available on the system, take a look
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found a solution, I needed to export this path to the CPATH variable
export CPATH=$CPATH:/usr/include/c++/11/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Glad to know that your issue is resolved. Thanks for sharing the solution. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.
Thanks & Regards,
Varsha
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page