Forum Discussion
Hi,
May I know how do you performed the installation? Have you check your system environment? You could check the environment by running the command "env" in the terminal.
- JSchr205 years ago
Occasional Contributor
Hi John, thanks for responding.
My steps were as follows:
* open a terminal window
* download OneAPI base toolkit from https://software.intel.com/en-us/oneapi/base-kit:
* under 'download the toolkit' selected 'get it now'
* chose Linux, chose Online Installer, downloaded l_BaseKit_b_2021.1.5.720.tar.gz
* tar xvf l_BaseKit_b_2021.1.5.720.tar.gz
* module load gcc/8.3.0
* in l_BaseKit: ./install.sh --tmp-dir ../tmp
* download FPGA add-on from https://dynamicinstaller.intel.com/oneapi/toolkits/base-kit/linux/ -- "Intel® FPGA Add-on for oneAPI Base Toolkit"
* tar xvf intel-fpga-addon-for-oneapi-base-kit-for-a10gx-linux.zip
* in addon l_intel subdirectory: ./setup.sh --install-dir /.alpha/public/inteloneapi --tmp-dir ../../tmp
The possibly-relevant entries in my environment (from running 'env' as you suggested):
TERM=xterm
SHELL=/bin/bash
QSYS_ROOTDIR=/.alpha/public/inteloneapi/intelfpgadpcpp/2021.1-beta05/QuartusPrimePro/17.1.1/qsys/bin
LD_LIBRARY_PATH=/.alpha/public/opt/gcc-8.3.0/lib64
QUARTUS_ROOTDIR=/.alpha/local/common/pkg/altera/quartus
PATH=/.alpha/public/opt/gcc-8.3.0/bin:/.alpha/lib64/qt-3.3/bin:/.alpha/local/sbin:/.alpha/local/bin:/.alpha/sbin:/.alpha/bin:/sbin:/bin:/bin:/.alpha/bin:/.alpha/X11R6/bin:/.alpha/local/common/pkg/altera/quartus/bin:/.alpha/local/common/pkg/altera/quartus/sopc_builder/bin:/.alpha/local/common/pkg/altera/modelsim_ase/linux:/.alpha/public/bin:/.alpha/local/common/pkg/altera/quartus/bin:/.alpha/local/common/pkg/altera/quartus/sopc_builder/bin:/.alpha/local/common/pkg/altera/modelsim_ase/linux:/.alpha/public/bin:/.alpha/local/common/pkg/altera/quartus/bin:/.alpha/local/common/pkg/altera/quartus/sopc_builder/bin:/.alpha/local/common/pkg/altera/modelsim_ase/linux:/.alpha/public/bin:/.alpha/local/common/pkg/altera/quartus/bin:/.alpha/local/common/pkg/altera/quartus/sopc_builder/bin:/.alpha/local/common/pkg/altera/modelsim_ase/linux:/.alpha/public/bin
ALTERA_ROOTDIR=/.alpha/local/common/pkg/altera
_LMFILES_=/.alpha/public/modulefiles/gcc/8.3.0
LOADEDMODULES=gcc/8.3.0
Thanks for any advice!
- JSchr205 years ago
Occasional Contributor
One additional clue (perhaps) from today. My colleague sent me the following:
In Makefile.fpga I replaced the following line:
CXX := dpcpp
with:
CXX := dpcpp --gcc-toolchain=/.alpha/public/opt/gcc-8.3.0
That got rid of the include file complaints, but added the new complaint
"Error: No recognized input file format on the command line".
Not sure whether it actually fixed the original problem and allowed the process to hit the next problem, or just caused a new problem to occur before the old problem could actually be encountered.
The only reason I have for thinking it's the first rather than the second is that while the commands
clang -x c -v -E /dev/null
and
dpcpp -x c -v -E /dev/null
both produce output that includes
"Selected GCC installation: /.alpha/lib/gcc/x86_64-redhat-linux/4.8.5",
the command
dpcpp --gcc-toolchain=/.alpha/public/opt/gcc-8.3.0 -x c -v -E /dev/null
produces output that includes:
"Selected GCC installation: /.alpha/public/opt/gcc-8.3.0/lib/gcc/x86_64-pc-linux-gnu/8.3.0".
Not really sure where to go from here.