There is not enough information here to give any meaningful advice. Please see this post for some guidelines and suggestions.
We do not see this kind of error when building LAMMPS, but I vaguely recall that somebody has reported a similar error before, thus I would suggest to search the forum archives or the entire web with a search engine for the same kind of error message in relation to LAMMPS and check out how the specific problem was resolved.