#
%{__sed} -i -e 's/-Werror //' src/Makefile.am
+%ifarch %{ix86} x32
+# fail due to memory space limit or some unexpected allocation sizes(?)
+%{__sed} -i -e '/^TEST/ s/AnyTest, TestPackFromSerializationExceedsSizeLimit/DISABLED_&/' src/google/protobuf/any_test.cc
+%{__sed} -i -e '/^TEST/ s/ArenaTest, \(SpaceAllocated_and_Used\|BlockSizeSmallerThanAllocation\)/DISABLED_&/' src/google/protobuf/arena_unittest.cc
+%endif
+
%build
%{__libtoolize}
%{__aclocal} -I m4