Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,632 Views

aocl-clang exists but is not working!

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?
0 Kudos
11 Replies
Altera_Forum
Honored Contributor I
224 Views

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.

Altera_Forum
Honored Contributor I
224 Views

Hi HRZ, 

 

I'm using Windows 7 and UAC disabled. 

I starting a cmd session as admin and test but the error continued.
Altera_Forum
Honored Contributor I
224 Views

Did you try running the "aocl-clang" executable manually and see what happens as suggested by the original error message?

Altera_Forum
Honored Contributor I
224 Views

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
Altera_Forum
Honored Contributor I
224 Views

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.

MDavi14
Beginner
224 Views

Hi, I have the some problems with aocl-clang. do you have any documentation? I have problems with -board argument

SDesh12
Beginner
224 Views

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?

HRZ
Valued Contributor II
224 Views

Did you try the existing suggestions? Specifically, running the aocl-clang binary directly to see what error message it will print?

SDesh12
Beginner
224 Views

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.

Error-2.PNGError-1.PNG

HRZ
Valued Contributor II
224 Views

Please carefully check the following document and make sure you have correctly followed the steps to install the SDK and set the environmental variables:

 

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/opencl-sdk/aocl_getting_...

 

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/

lnlnln
Beginner
224 Views

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:

C:\Windows\system32

C:\Windows

C:\Windows\System32\Wbem

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.

Reply