Forum Discussion
Altera_Forum
Honored Contributor
10 years agoHi there,
I have exactly the same issue on ubuntu 14.04 and 14.10 setups running hld 14.0 and 15.0 the -march=emulate flags works fine with aoc, builds the emulated kernel, but issuing the corresponding host binary command with CL_CONTEXT_EMULATOR_DEVICE_ALTERA=p385_hpc_a7 ./hello_world fails with: Emulator runtime library missing in host program. Please relink host with -lacl_emulator_kernel_rt the "aocl link-config" shows that the emulator lib being provided and its in LD_LIBRARY_PATH, however the ldd of the resulting host binary does not show the lib is being linked against: # aocl link-config -L/root/altera/14.0/hld/board/nalla_pcie//linux64/lib -L/root/altera/14.0/hld/host/linux64/lib -lalteracl -ldl -lacl_emulator_kernel_rt -lalterahalmmd -lnalla_pcie_mmd -lelf -lrt -lstdc++" # ldd bin/hello_world linux-vdso.so.1 => (0x00007fff419c8000) libalteracl.so => /root/altera/14.0/hld/host/linux64/lib/libalteracl.so (0x00007f06fc1b0000) libalterahalmmd.so => /root/altera/14.0/hld/host/linux64/lib/libalterahalmmd.so (0x00007f06fafa0000) libnalla_pcie_mmd.so => /root/altera/14.0/hld/board/nalla_pcie/linux64/lib/libnalla_pcie_mmd.so (0x00007f06fa568000) libelf.so.0 => /usr/lib/x86_64-linux-gnu/libelf.so.0 (0x00007f06fa350000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f06fa140000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f06f9e38000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f06f9c20000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f06f9858000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f06f9638000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f06f9330000) /lib64/ld-linux-x86-64.so.2 (0x00007f0705598000) many thanks for your responses