Forum Discussion
This might be a bug for older version of Quartus. Can you try it with the latest release 20.1? I will file a bug to developer to check on this if it still happened on 20.1.
Also, When I check again the export GCC environment, it should show on the Path itsefl.
Example:
# GCC Enviroment
export GCC_ROOTDIR=/usr/local/gcc_version/bin
export PATH=$GCC_ROOTDIR:$PATH
export LD_LIBRARY_PATH=user/...
https://www.intel.co.jp/content/dam/www/programmable/us/en/pdfs/literature/an/an918.pdf
To check gcc version
gcc --version
- gwatcha5 years ago
New Contributor
I got it working, although in a sort of hackish way.
After installing `gcc44` on manjaro. I altered the Makefile of the counter example to have this at the top:
```
SOURCE_FILES := counter.cpp
HLS_CXX_FLAGS :=
CXXFLAGS := -I/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.7/include/c++ -I/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.7/include/c++/x86_64-pc-linux-gnu
CXX := i++```
So you can see I include the 4.4.7 library directly.
I also had to rename the `10.1.0` directory in /usr/lib/gcc/x86_64-pc-linux-gnu to `10.1.0_` so it wouldn't be able to find it and stop prioritizing it.
```
[zen x86_64-pc-linux-gnu]# pwd
/usr/lib/gcc/x86_64-pc-linux-gnu[zen x86_64-pc-linux-gnu]# ls
10.1.0_ 4.4.7```
After that, the example compiles!
- gwatcha5 years ago
New Contributor
I would try it with Quartus 20.1, but how do I install the HLS compiler for that version? I noticed that it is not under the additional software tab.