]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
spdk: -march=core2 instead of -march=native 23078/head
authorNathan Cutler <ncutler@suse.com>
Mon, 16 Jul 2018 19:13:26 +0000 (21:13 +0200)
committerNathan Cutler <ncutler@suse.com>
Mon, 16 Jul 2018 19:13:26 +0000 (21:13 +0200)
commite2104f7005ef774c126d8756bc7b573f56543630
tree874e56478edc811b413bd67ce758701b7655bb6d
parent69725446c869ec0cce1cbdd4ba39a705846287b9
spdk: -march=core2 instead of -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.

Hopefully nobody will be running Ceph on x86_64 CPUs older than Core2 (?)

Fixes: http://tracker.ceph.com/issues/24948
Signed-off-by: Nathan Cutler <ncutler@suse.com>
src/spdk