Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

aoc reports aocl-opt.exe not found

someone's installer (cough bwtk1.7 cough) wiped my path environment variable. I think I recreated it properly. But when I run aoc I get this error message:

--- Quote Start ---

Error: aoc: Can't find a working version of executable (aocl-opt.exe) for the Altera SDK for OpenCL

--- Quote End ---

aocl-opt.exe runs if invoked directly. Does this make any sense? I'd rather not go through and reinstall

17 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    your advice is well taken, however changing the perl file has seemingly fixed the issue. It's in the last stage of compilation

    --- Quote Start ---

    # Do setup checks:

    sub check_env() {

    }

    --- Quote End ---

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I can verify that the above change resulted in a successful build. My current thought is that these checks somehow run afoul of Microsoft EMET, which is an anti-malware program that is installed on these systems. Unfortunately, I can't disable it to make sure. It was actually installed during the period between successful and unsuccessful builds

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I'm a little surprised that nobody else has had this problem. I just d/l and installed the most recent update, and I have to make this change again

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    I'm a little surprised that nobody else has had this problem. I just d/l and installed the most recent update, and I have to make this change again

    --- Quote End ---

    As of yesterday, I am having the same problem. How frustrating!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    As of yesterday, I am having the same problem. How frustrating!

    --- Quote End ---

    just edit the file as I detailed above, that routine doesn't do anything useful. All I can see is if the license isn't set up right you will get a little bit more cryptic error message
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks unterhausen but my case was somehow different. I forgot to put back in my %PATH% variable c:\windows and c:\windows\system32. Now, aoc is working as before, without your correction. Thanks for the advice anyway.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you for your posting.

    I had same issue to compile a cl project and now it seems pretty good to work.

    (I commented two line from aoc.pl.)