focus icon indicating copy to clipboard operation
focus copied to clipboard

Compilation Error: Using '-std=c++11' on a C file

Open walidabualafia opened this issue 2 months ago • 5 comments

Hi all,

I'm trying to install focus on our cluster, but I keep erroring out with the following:

cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C
cc1: error: too many filenames given.  Type cc1 --help for usage
cc1: fatal error: CMakeFiles/byte_swap_map.dir/byte_swap_map.c.d: No such file or directory
compilation terminated.
make[2]: *** [kernel/mrc/source/CMakeFiles/byte_swap_map.dir/build.make:76: kernel/mrc/source/CMakeFiles/byte_swap_map.dir/byte_swap_map.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:4846: kernel/mrc/source/CMakeFiles/byte_swap_map.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
Build failed for Focus

Any idea why this is happening? I am using gcc 8.4.1 to compile this. I have qt5, cmake 3.27.3, CUDA 11.8, and libfftw in my environment.

Also, the No such file or directory is concerning me. I'm wondering if the latest release ships without this file, or if this is an intermediate file that is not generating correctly.

Anyway, all help is appreciated! :)

walidabualafia avatar Apr 12 '24 17:04 walidabualafia