Forum Discussion

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

mesage of error from aoc: Error: Can't change into dir:

Hi:

I'm starting using this tool from quartus II 13.0 (SDK)... I've instaled the software just like the "getting started" said... and when I wrote "where aoc" it answer me the right "path".... here is my problem: When i wrote "aoc -c moving_average.cl" its give me "Error: Can't change into dir:"...

I think the problem is it can't generate the directory for the quartus projet?? but why?

Thanks!!

12 Replies

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

    --- Quote Start ---

    Which localization setting were you using that caused this issue? I assume Spanish (Argentina)

    --- Quote End ---

    I have exactly the same problem (Erro : can't change into dir") when invoking file.cl. I am working with version 13.1 of Quartus and SDK, and using the Terasic DE5net board. All the Terasic "tests" example work fine when using the aocx files that are provided. But it is impossible to compile new version of the .cl files. I have tried all the suggestions that were indicated in the previous threads about this issue, without any effect. By the way, the aocl --list-boards command doesn't recognize the board, while the board can be corrected programmed by the Quartus programmers and the matrixMult projects work fine. Thanks for your help.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I suspect you may be running into the same issue fernandor85 was seeing which should be fixed in the next version of the tools. So if you are using a non-english language setting on your workstation I would try switching it to english to see if that works around the issue. If you are already using english settings the next thing to check is whether you have any special characters in the install directory name.

    In order for aocl --list-boards to list the board ensure your AOCL_BOARD_PACKAGE_ROOT environment variable is pointing to the .xml file for the DE5 board. This is the file that the command is looking for when it lists out the boards that are being used.

    I caution against using the Quartus II programmer to configure the board. If that board is already enumerated by the BIOS and you configure the FPGA using the Quartus II programmer you run the risk of crashing the computer because you'll end up wiping out all the PCIe enumeration data when you configure the new FPGA image. Instead use aocl program which will restore the enumeration data. The usual flow is that you don't manually configure the FPGA but rather rely on the OpenCL runtime to do this at execution time.