Forum Discussion
Altera_Forum
Honored Contributor
11 years agoUsing emulator on ubuntu fails
Hi all, I have an opencl project that compiles and runs on Redhat just fine. I have installed Quartus/etc on my ubuntu machine as well. The executable created on Redhat runs fine on Ubuntu. Whe...
Altera_Forum
Honored Contributor
10 years agoApparently, Ubuntu/Debian tool-chain passes --as-needed flag to the linker by default.
We should add --no-as-needed flag to ensure correct linking. This is worked for my 64 bit OPENCL SDK 14.0 installation on Ubuntu 14.04 LTS. Change the makefile linking Flag as below: default: AOCL_LINK_CONFIG := $(shell aocl link-config) fixed: AOCL_LINK_CONFIG := -Wl,--no-as-needed $(shell aocl link-config)