Dpcpp++ unable to handle switch -MD -MT -MF with -fintelfpga
Hello Support Team,
I am trying to use cmake to generate build script for Dpcpp for FPGA target.
The following is a compilation command generated to compile a sycl cxx source code target for FPGA but the dpcpp returns error (running on Ubuntu 18.04):
/opt/intel/oneapi/compiler/2021.1.1/linux/bin/dpcpp -DFPGA_EMULATOR -DUSE_DPCPP -I../.. -g -g -g -fintelfpga -std=gnu++17 -MD -MT parallel/CMakeFiles/parallel.dir/iota_parallel.cpp.o -MF parallel/CMakeFiles/parallel.dir/iota_parallel.cpp.o.d -o parallel/CMakeFiles/parallel.dir/iota_parallel.cpp.o -c ../parallel/iota_parallel.cpp
/opt/intel/oneapi/compiler/2021.1.1/linux/bin/clang-offload-bundler: error: number of input files and targets should match in bundling mode
dpcpp: error: clang-offload-bundler command failed with exit code 1 (use -v to see invocation)
If I remove manually the -MD -MT and -MF switches, then the compilation can be successfully completed.
A note here that dpcpp can work with -MD -MT -MF if -fintelfpga is absent (for sycl code not target for FPGA).
May Intel engineer please follow.
Best Regards,
Amon