- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I try run hello_world and get this error:
C:\Windows\system32>aocl version aocl 16.0.0.211 (Altera SDK for OpenCL, Version 16.0.0 Build 211, Copyright (C) 2016 Altera Corporation) C:\Windows\system32>%ALTERAOCLSDKROOT%\init_opencl.bat AOCL_BOARD_PACKAGE_ROOT is set to C:\altera\16.0\hld\board\s5phq. Using that. Adding C:\altera\16.0\hld\bin to PATH Adding C:\altera\16.0\hld\host\windows64\bin to PATH Adding C:\altera\16.0\hld\board\s5phq\windows64\bin to PATH C:\Windows\system32>cd C:\Users\usuario\Documents\Master\hello_world C:\Users\usuario\Documents\Master\hello_world>aoc -march=emulator device\hello_w orld.cl -o bin\hello_world.aocx --board s5phq_a7 Error: aoc: Executable C:/altera/16.0/hld/windows64/bin/aocl-clang exists but is not working! The cause of failure cannot be determined. Run executable manually and watch for error messages. Can anybody help me?Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Since you seem to have installed Quartus in Drive C, assuming that you are using Windows 10 or you have UAC enabled, windows security settings could be interfering with the process. Starting a cmd session as admin and test with that to see if it bypasses the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi HRZ,
I'm using Windows 7 and UAC disabled. I starting a cmd session as admin and test but the error continued.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you try running the "aocl-clang" executable manually and see what happens as suggested by the original error message?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, i have the same issue but in Ubuntu environment. When i did execute "aocl-clang" manually the system reported:
error while loading shared libraries: libmip_common.so: cannot open shared object file: No such file or directory Now, i'm trying to solve this missed library- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That library is shipped with Quartus itself. Either your installation is incomplete or you have not added the path to the libraries required by the OpenCL compiler to LD_LIBRARY_PATH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I have the some problems with aocl-clang. do you have any documentation? I have problems with -board argument
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey
I am facing a similar issue.
C:\intelFPGA_pro\Examples\1.hotspot>aoc -v -board=s10gx device/hotspot.cl -o bin/hotspot.aocx
aoc: Clang version:
Error: aoc: Executable C:/intelFPGA_pro/19.1/hld/windows64/bin/../../llvm/bin/aocl-clang exists but is not working!
The cause of failure cannot be determined. Run executable manually and watch for error messages.
Where you able to solve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you try the existing suggestions? Specifically, running the aocl-clang binary directly to see what error message it will print?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes I did run the aocl-clang binary. It displayed a series of system error windows. But these files are present in the C:\intelFPGA_pro\19.1\quartus\dspba\backend\windows64 directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please carefully check the following document and make sure you have correctly followed the steps to install the SDK and set the environmental variables:
If you are using Windows 10, it is best not to install Quartus in drive C due to possible permission problems. You can try changing the permission of the installation folder of Quartus and all its subfolders so that they are accessible by "Everyone" and see if it fixes your problem. You can also try running the cmd shell through which you run your commands as admin. More info can be found here:
https://www.howtogeek.com/194041/how-to-open-the-command-prompt-as-administrator-in-windows-8.1/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I also encountered this problem, but it has been solved. Everyone may have a different reason for this problem. Let me talk about my situation.
I encountered this situation because the system environment variable PATH lacks the following path:
As for why the lack of these will lead to this problem, emmmm, maybe, I don't know, and if it causes this problem, you should also find that command shutdown will be invalid at the command prompt.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page