[4.8.4] Build issue in picojson with GCC 11
The `_serialize internal macro in GCC 11 shipped by brew on MacOS creates a build issue in bundle picoson with gmsh 4.8.4:
/Users/jdoe/src/gitlab.onelab.info/gmsh/gmsh/Common/picojson.h:189:63: error: macro "_serialize" passed 2 arguments, but takes just 0
189 | template <typename Iter> void _serialize(Iter os, int indent) const;
| ^
In file included from /usr/local/Cellar/gcc/11.1.0_1/lib/gcc/11/gcc/x86_64-apple-darwin20/11.1.0/include/x86gprintrin.h:71,
from /usr/local/Cellar/gcc/11.1.0_1/lib/gcc/11/gcc/x86_64-apple-darwin20/11.1.0/include/immintrin.h:27,
from /Users/tristan/src/gitlab.onelab.info/gmsh/gmsh/contrib/eigen/Eigen/Core:210,
from /Users/tristan/src/gitlab.onelab.info/gmsh/gmsh/contrib/eigen/Eigen/Dense:1,
from /Users/tristan/src/gitlab.onelab.info/gmsh/gmsh/Numeric/fullMatrix.h:21,
from /Users/tristan/src/gitlab.onelab.info/gmsh/gmsh/Numeric/polynomialBasis.h:13,
from /Users/tristan/src/gitlab.onelab.info/gmsh/gmsh/Common/gmsh.cpp:41:
/usr/local/Cellar/gcc/11.1.0_1/lib/gcc/11/gcc/x86_64-apple-darwin20/11.1.0/include/serializeintrin.h:37: note: macro "_serialize" defined here
37 | #define _serialize() __builtin_ia32_serialize ()
|