From 8956a52b6a2c7f13bd0e9f20b18b48602e07dfa3 Mon Sep 17 00:00:00 2001 From: Dongsu Park Date: Thu, 17 Sep 2020 13:28:07 +0200 Subject: [PATCH] profiles: disable sse2 from CPU_FLAGS_X86 for rsync Since rsync 3.2.0, the ebuild sets `--enable-simd` option in case of amd64. However, the cross toolchain in Flatcar SDK is not able to deal with the SIMD feature, so configure in rsync fails like: ``` gcc version 8.3.0 (Gentoo Hardened 8.3.0-r1 p1.1) configure.sh:3774: $? = 0 configure.sh:3763: x86_64-cros-linux-gnu-g++ -V >&5 x86_64-cros-linux-gnu-g++: error: unrecognized command line option '-V' x86_64-cros-linux-gnu-g++: fatal error: no input files compilation terminated. ``` Until we could resolve the toolchain issue, we should disable `cpu_flags_x86_sse2`, to disable simd for rsync. --- .../coreos-overlay/profiles/coreos/base/package.use | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.use b/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.use index bb7a47c329..c92ec70682 100644 --- a/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.use +++ b/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.use @@ -102,3 +102,6 @@ sys-fs/btrfs-progs -zstd # enable regular expression processing in jq app-misc/jq oniguruma + +# Disable sse2 from CPU_FLAGS_X86 to avoid config error around simd +net-misc/rsync -cpu_flags_x86_sse2