I have built cockroachDB binary using "make build" and the result for x86 appeared not to be portable to other x86 machines aside from my build machine due to an error relating to the AVX2 instruction set. Does anyone know if "make build" performs a build that is not optimized to the build machine's processor? or would using "make buildoss" solve the problem? If not, does anyone know of build flags that can be passed to prevent using "advanced" instruction sets during the build, such that the resulting binary can run on any "generic" x86 processor? Like the settings available here in gcc? https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html
question from:https://stackoverflow.com/questions/65832460/building-cockroachdb-binary-doesnt-seem-to-work-in-all-x86-machines