]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: do not build DPDK with -march=native
authorNathan Cutler <ncutler@suse.com>
Thu, 2 Aug 2018 18:15:15 +0000 (20:15 +0200)
committerKefu Chai <kchai@redhat.com>
Fri, 17 Aug 2018 06:09:08 +0000 (14:09 +0800)
commit18dc98e3f0b6dfabb37e2cb2d17c73e3bc4e291a
tree294605c4e1e76bf789f4a88d0231c82a3a49c71c
parent65f6a3c564f2afdf3448da6ea0387c7976fec598
cmake: do not build DPDK with -march=native

-march=native causes gcc to use opcodes according to whichever CPU happens to
be installed in the build host, which can be different for every build. This
makes it impossible to achieve a reproducible build.

Also, if the build host has a very new CPU, running the resulting binaries on
older CPUs (of the same family, i.e. x86_64) could result in segmentation
fault.

References: http://tracker.ceph.com/issues/24948
Signed-off-by: Nathan Cutler <ncutler@suse.com>
cmake/modules/Finddpdk.cmake