oneapi-src / oneapi-src/oneAPI-samples
Cannot compile samples using VS2019 GUI
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.2k
- Forks
- 745
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I tries to compile the saple project with the latest version of VS2019 (16.11.4) and the latest oneAPI (2021.4) and the latest samples from Nov. 1st. All samples show the same compile error with "llvm-objcopy.exe". Not shur what the problem is, but I found that I have different version of that file installed (Some in the VS 2019 folder, one other in the oneAPI 2021.4 folder)
1>llvm-objcopy.exe: : error : 'x64\Debug\main.obj': function not supported
1>C:\PROGRA2\Intel\oneAPI\compiler\202141.0\windows\bin\clang-offload-bundler: : error : 'llvm-objcopy' tool failed
1>dpcpp: : error : clang-offload-bundler command failed with exit code 1 (use -v to see invocation)
1>Done building project "mandelbrot.vcxproj" -- FAILED.
Any idea what I'm doing wrong?
Thanks,
Daniel
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure in the sample project using VS2019 16.11.4 and oneAPI 2021.4, starting with mandelbrot.vcxproj and the reported llvm-objcopy.exe, clang-offload-bundler, and dpcpp errors. Compare the tool locations and versions mentioned in the report; done means the cause of the compilation failure is identified and the affected samples compile successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100