Building omp version issue

When trying to run ‘make omp’ the following error arises:

g++: unrecognized command line option ‘-restrict’; did you mean ‘-Wrestrict’

OpenMPI is installed.
Serial version builds without errors.

Hi Dima, “-restrict” is a flag of the Intel compiler (icpc), not of g++

It looks like the flag was added in this modification:
https://github.com/lammps/lammps/commit/1cd4c48cccdbbee0711b08449f260d05ce9f6e9e

You may want to submit an issue here:
https://github.com/lammps/lammps/issues

to ask that the flag is removed, or a comment is added to Makefile.omp stating that it’s specific for Intel.

Giacomo