Source: abseil
Version: 20230125.3-2
Severity: serious
Tags: ftbfs
https://buildd.debian.org/status/fetch.php?pkg=abseil&arch=mipsel&ver=20230125.3-2&stamp=1691047974&raw=0
...
virtual memory exhausted: Cannot allocate memory
make[4]: *** [absl/container/CMakeFiles/absl_btree_test.dir/build.make:79:
absl/container/CMakeFiles/absl_btree_test.dir/btree_test.cc.o] Error 1
The patch below works around the address space issue, but later there is a test
failure:
...
86: ./absl/log/scoped_mock_log.cc:39: Failure
86: Mock function called more times than expected - returning directly.
86: Function call: Log(INFO, @0x7f9b9b2c "./absl/log/log_format_test.cc",
@0x7f9b9b14 "nan")
86: Expected: to be never called
86: Actual: called once - over-saturated and active
86: ./absl/log/log_format_test.cc:611: Failure
86: Actual function call count doesn't match EXPECT_CALL(test_sink, Send(AllOf(
TextMessage(MatchesOstream(comparison_stream)), TextMessage(AnyOf(Eq("-nan"),
Eq("nan"), Eq("NaN"), Eq("-nan(ind)"))), ::testing::_)))...
86: Expected: to be called once
86: Actual: never called - unsatisfied and active
86: [ FAILED ] FloatingPointLogFormatTest/0.NegativeNaN, where TypeParam =
float (0 ms)
...
99% tests passed, 1 tests failed out of 208
Total Test time (real) = 235.11 sec
The following tests FAILED:
86 - absl_log_format_test (Failed)
Errors while running CTest
make[2]: *** [Makefile:74: test] Error 8
Full log is in eller:~bunk/build/LOG.abseil
The test failure is obviously triggered by my enabling of the unit tests,
keeping them disabled would of course "fix" the problem (this might also
be an option for some ports architectures).
--- debian/rules.old 2023-08-04 22:56:54.349545220 +0000
+++ debian/rules 2023-08-05 09:40:50.315873020 +0000
@@ -17,12 +17,8 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow reproducible=+fixfilepath
-# Unit tests require more than 2 GB of RAM, so disable them on mipsel.
-#
-# Disable unit tests unconditionally if nocheck is set.
-ifeq ($(DEB_HOST_ARCH),mipsel)
-ABSL_RUN_TESTS=OFF
-else ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+# Disable unit tests if nocheck is set.
+ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
ABSL_RUN_TESTS=OFF
else
ABSL_RUN_TESTS=ON
@@ -34,6 +30,12 @@
ABSL_TEST_EXTRA_ARGS=--no-parallel
endif
+# Reduce debug info on architectures with only 2 GB address space
+ifneq (,$(filter $(DEB_HOST_ARCH), mipsel sh4))
+export DEB_CXXFLAGS_MAINT_APPEND += -g1
+endif
+
+
%:
dh $@