Forum Discussion

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

Cannot compile .aocx files

I have the Altera Cyclone V SoC board and have installed OpenCL SDK 16.0.2.222

I am also dual booting Windows 10 and Ubuntu 16.04 and I have tried both OS's with different issues when I followed the 'Altera SDK for OpenCL Cyclone V SoC Getting Started' guide trying to use the hello_world demo.

ubuntu 16.04

When trying to compile I get error: compilation error, not able to generate hardware and when I look at the Quartus compilation log it says that "Top.sof" cannot be found. In anycase, the AOC compiler generated most of the Quartus project already, so I opened the "Top.qpf" project in Quartus and compiled it there. Now I have the "Top.sof" file and I successfully compiled with the AOC compiler.

Now I try to make the host program ( I tried g++ 5 and 4.4 compiler), I get a warning that "libacl_emulator_kernel_rt.so" needed by "libalteracl.so" not found, but I checked and both these files exist in the same directory. The host program is still generated in anycase, so I copy the hello_world.aocx and the host program onto the board via ethernet (the board is using the linux SD image provided by Altera) and when I try to run the host I get version errors:

libstdcd++.so.6 version: GLIBCXX_3.4.19 not found
libstdcd++.so.6 version: GLIBCXX_3.4.20 not found

I copied an updated libstdc++.so.6 library onto the board. now the board fails the aocl diagnose and when I run the host program I do not get an error, but I also do not get any output at all.

windows 10

Trying to compile with aoc it fails with error: ip-generate failed I have checked the environment variable and made sure this is included in PATH, I also tried switching backslashes for forward slashes because I believe that Linux is running under the hood. Looking at the log file it appears the Errors stem from error: cannot find sequencer/sequencer.elf. The "Top.qpf" is not complete enough to compile in Quartus at this point so I am unable to test this on the board.

I was able make the host program after I switched backslashes for forward ones in the relevant environment variables, however I get a warning about clock skew.

I don't think it should be this difficult to run through a demo, am I doing something fundamentally wrong and naive here? I know Ubuntu isn't officially supported, but I wasn't having much luck with Windows 10 either.

Any help would be appreciated, I can also provide additional details, I didn't want to inundate the post with extensive logs and messages unless necessary.

1 Reply

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

    Update,

    I managed to get a program running by using the .aocx file compiled on Ubuntu and the host program made on Windows.