From 7305f40d491672b03a3f9b41b6b3a0628d7508b1 Mon Sep 17 00:00:00 2001 From: Christoph Erhardt Date: Tue, 25 Jan 2022 22:28:04 +0100 Subject: [PATCH] Don't build on i686 mold 1.0.2 on i686 is broken with a failing assertion: elf/../mold.h:315: std::pair mold::ConcurrentMap::insert(std::string_view, mold::u64, const T&) [with T = mold::elf::SectionFragment; std::string_view = std::basic_string_view; mold::u64 = long long unsigned int]: Assertion `__builtin_popcount(nbuckets) == 1' failed. Since 32-bit i686 is no longer supported by Fedora anyway, it doesn't matter for us. --- mold.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mold.spec b/mold.spec index e6fb886..e56c342 100644 --- a/mold.spec +++ b/mold.spec @@ -22,8 +22,8 @@ Patch1: bundled_lib_system_flags.patch # Fix for failed assertion on aarch64 Patch2: 0001-Fix-out-of-bounds-error-on-aarch64-with-_GLIBCXX_ASS.patch -# mold can currently produce native binaries for these architectures only -ExclusiveArch: x86_64 %{ix86} aarch64 +# mold can currently produce native binaries for x86 and aarch64 only +ExclusiveArch: x86_64 aarch64 BuildRequires: cmake BuildRequires: gcc