19.01.2026 18:07, [email protected] пишет:
> bulk build on octeon.ports.openbsd.org
> started on  Wed Jan 7 16:47:18 UTC 2026
> finished at Tue Jan 13 07:12:20 UTC 2026
> lasted 06D14h25m
> done with kern.version=OpenBSD 7.8-current (GENERIC.MP) #120: Mon Dec 29 
> 00:57:14 MST 2025
> 
> built packages:8646
> Jan 7:1442
> Jan 8:1815
> Jan 9:2029
> Jan 10:605
> Jan 11:355
> Jan 12:398
> Jan 13:2001
> 
> 
> build failures: 81

> http://build-failures.rhaalovely.net/mips64/2026-01-07/devel/boost.log
The very first clang++ invocation fails:

| > clang++ -x c++ -std=c++11 -pthread -Wno-deprecated-declarations -DNDEBUG 
bindjam.cpp [...] -o b2
| [...]
| bindjam.cpp:(.text+0x600): relocation truncated to fit: R_MIPS_CALL16 against 
`b2::value* b2::jam::to_jam<std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > 
>(std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >)'
| bindjam.cpp:(.text+0x61c): additional relocation overflows omitted from the 
output
| clang++: error: linker command failed with exit code 1 (use -v to see 
invocation)

I switched to ports-gcc, now it's been building for hours.

Assuming it packages:  Feedback? OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/boost/Makefile,v
diff -u -p -r1.157 Makefile
--- Makefile    15 Jan 2026 15:00:58 -0000      1.157
+++ Makefile    22 Jan 2026 14:13:07 -0000
@@ -75,7 +75,11 @@ WANTLIB-md+= ${COMPILER_LIBCXX} boost_da
 WANTLIB-md+=   boost_filesystem-mt boost_filesystem boost_system-mt
 WANTLIB-md+=   boost_system kvm m
 
+.if ${MACHINE_ARCH} == "mips64"
+COMPILER=      ports-gcc
+.else
 COMPILER=      base-clang ports-gcc
+.endif
 
 MULTI_PACKAGES=        -main -md
 
@@ -92,11 +96,7 @@ LIB_DEPENDS-md=      devel/boost
 
 .include <bsd.port.arch.mk>
 
-.if ${PROPERTIES:Mclang}
-TOOLSET=       clang
-.else
-TOOLSET=       gcc
-.endif
+TOOLSET=       ${CHOSEN_COMPILER:base-%=:ports-%=}
 
 BJAM_CONFIG=   -sICU_PATH=${LOCALBASE} \
                -sBZIP2_INCLUDE=${LOCALBASE}/include \

Reply via email to