25.10.2026 16:44, [email protected] пишет:
> http://build-failures.rhaalovely.net/mips64/2026-10-17/net/libcares.log
C library builds, C++ tests fail at the very end:
[119/130] : && /pobj/libcares-1.34.8/bin/c++ -DNDEBUG
test/CMakeFiles/arestest.dir/ares-test-main.cc.o
test/CMakeFiles/arestest.dir/ares-test-init.cc.o
test/CMakeFiles/arestest.dir/ares-test.cc.o
test/CMakeFiles/arestest.dir/ares-test-ns.cc.o
test/CMakeFiles/arestest.dir/ares-test-parse.cc.o
test/CMakeFiles/arestest.dir/ares-test-parse-a.cc.o
test/CMakeFiles/arestest.dir/ares-test-parse-aaaa.cc.o
test/CMakeFiles/arestest.dir/ares-test-parse-caa.cc.o
test/CMakeFiles/arestest.dir/ares-test-parse-mx.cc.o
test/CMakeFiles/arestest.dir/ares-test-parse-naptr.cc.o
test/CMakeFiles/arestest.dir/ares-test-parse-ns.cc.o
test/CMakeFiles/arestest.dir/ares-test-parse-ptr.cc.o
test/CMakeFiles/arestest.dir/ares-test-parse-soa.cc.o
test/CMakeFiles/arestest.dir/ares-test-parse-soa-any.cc.o
test/CMakeFiles/arestest.dir/ares-test-parse-srv.cc.o
test/CMakeFiles/arestest.dir/ares-test-parse-txt.cc.o
test/CMakeFiles/arestest.dir/ares-test-parse-uri.cc.o
test/CMakeFiles/arestest.dir/ares-test-misc.cc.o
test/CMakeFiles/arestest.dir/ares-test-live.cc.o
test/CMakeFiles/arestest.dir/ares-test-mock.cc.o
test/CMakeFiles/arestest.dir/ares-test-mock-ai.cc.o
test/CMakeFiles/arestest.dir/ares-test-mock-et.cc.o
test/CMakeFiles/arestest.dir/ares-test-internal.cc.o
test/CMakeFiles/arestest.dir/dns-proto.cc.o
test/CMakeFiles/arestest.dir/dns-proto-test.cc.o -o bin/arestest
-Wl,-z,origin,-rpath,/usr/local/lib:/pobj/libcares-1.34.8/build-mips64/lib
/usr/local/lib/libgmock.so.3.0 lib/libcares.so.4.5
/usr/local/lib/libgtest.so.5.0 -lpthread
-Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib && :
...
test/CMakeFiles/arestest.dir/ares-test-mock.cc.o: In function `.L0 ':
ares-test-mock.cc:(.text+0x58): relocation truncated to fit: R_MIPS_GOT_DISP
against `ares::test::NoDNS0x20MockTest_Basic_Test::gtest_registering_dummy_'
test/CMakeFiles/arestest.dir/ares-test-mock.cc.o: In function
`ares::test::NoDNS0x20MockTest_Basic_Test::TestBody()':
ares-test-mock.cc:(.text+0x270): relocation truncated to fit: R_MIPS_CALL16
against
`ares::test::MockServer::gmock_OnRequest(testing::Matcher<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&,
testing::Matcher<int> const&)'
ares-test-mock.cc:(.text+0x2ac): relocation truncated to fit: R_MIPS_CALL16
against `testing::internal::MockSpec<void ()(std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&,
int)>::operator()(testing::internal::WithoutMatchers const&, void*)'
ares-test-mock.cc:(.text+0x340): relocation truncated to fit: R_MIPS_CALL16
against
`ares::test::SetReplyDataActionP2<testing::NiceMock<ares::test::MockServer>*,
std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > >
ares::test::SetReplyData<testing::NiceMock<ares::test::MockServer>*,
std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >
>(testing::NiceMock<ares::test::MockServer>*, std::__1::vector<unsigned char,
std::__1::allocator<unsigned char> >)'
ares-test-mock.cc:(.text+0x384): relocation truncated to fit: R_MIPS_CALL16
against `testing::internal::OnCallSpec<void ()(std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&,
int)>::WillByDefault(testing::Action<void ()(std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&, int)> const&)'
ares-test-mock.cc:(.text+0x3a0): relocation truncated to fit: R_MIPS_CALL16
against `testing::Action<void ()(std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&,
int)>::~Action()'
ares-test-mock.cc:(.text+0x404): relocation truncated to fit: R_MIPS_CALL16
against `testing::Matcher<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&>::~Matcher()'
ares-test-mock.cc:(.text+0x444): relocation truncated to fit: R_MIPS_GOT_DISP
against `ares::test::HostCallback(void*, int, int, hostent*)'
ares-test-mock.cc:(.text+0x46c): relocation truncated to fit: R_MIPS_CALL16
against `ares::test::MockChannelOptsTest::Process(unsigned int)'
ares-test-mock.cc:(.text+0x488): relocation truncated to fit: R_MIPS_CALL16
against
`_ZN7testing15AssertionResultC2IbTnNSt3__19enable_ifIXntsr3stdE16is_convertible_vIRKT_S0_EEiE4typeELi0EEES6_'
ares-test-mock.cc:(.text+0x558): additional relocation overflows omitted from
the output
c++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
My approach from a few heavy CMake/C++ projects to defer building tests
avoids this; not a real fix, but should yield a package on octeon.
No PLIST change; tested on amd64.
Feedback? OK?
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/libcares/Makefile,v
diff -u -p -r1.43 Makefile
--- Makefile 21 Oct 2026 08:11:11 -0000 1.43
+++ Makefile 25 Oct 2026 14:20:55 -0000
@@ -28,4 +28,14 @@ CONFIGURE_ARGS+=-DCARES_BUILD_TESTS=ON \
-DCARES_BUILD_TOOLS=OFF \
-DCARES_SYMBOL_HIDING=ON
+# XXX octeon C++ test build failure prevents packaging built C library
+# ares-test-mock.cc:(.text+0x58): relocation truncated to fit: R_MIPS_*
+
+# everything except tests
+ALL_TARGET= libcares.so
+
+# build whatever is left (37 C++ test files)
+pre-test:
+ ${MODCMAKE_BUILD_TARGET}
+
.include <bsd.port.mk>