[package - 132powerpc64-quarterly][lang/rust-bootstrap] Failed for powerpc64-rust-bootstrap-1.74.0 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Wed, 07 Feb 2024 13:19:00 UTC
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     rust@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/foul1/data/132powerpc64-quarterly/aa3532662c1f/logs/powerpc64-rust-bootstrap-1.74.0.log
Build URL:      https://pkg-status.freebsd.org/foul1/build.html?mastername=132powerpc64-quarterly&build=aa3532662c1f
Log:

=>> Building lang/rust-bootstrap
build started at Wed Feb  7 13:01:18 UTC 2024
port directory: /usr/ports/lang/rust-bootstrap
package name: powerpc64-rust-bootstrap-1.74.0
building for: FreeBSD 132powerpc64-quarterly-job-13 13.2-RELEASE FreeBSD 13.2-RELEASE powerpc
maintained by: rust@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root  wheel  5759 Feb  3 01:03 /usr/ports/lang/rust-bootstrap/Makefile
Ports top last git commit: aa3532662
Ports top unclean checkout: no
Port dir last git commit: aa3532662
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.1
Host OSVERSION: 1500003
Jail OSVERSION: 1302001
Job Id: 13

---Begin Environment---
SHELL=/bin/csh
OSVERSION=1302001
UNAME_v=FreeBSD 13.2-RELEASE
UNAME_r=13.2-RELEASE
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
MAKE_OBJDIR_CHECK_WRITABLE=0
LOCALBASE=/usr/local
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.4.1
MASTERMNT=/usr/local/poudriere/data/.m/132powerpc64-quarterly/ref
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
PWD=/usr/local/poudriere/data/.m/132powerpc64-quarterly/13/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=132powerpc64-quarterly
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/usr/local/poudriere/data/.m/132powerpc64-quarterly/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.1
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=powerpc64
MAKE_ARGS= FLAVOR=powerpc64
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
---End OPTIONS List---

--MAINTAINER--
rust@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
ac_cv_path_PERL=/usr/local/bin/perl ac_cv_path_PERL_PATH=/usr/local/bin/perl  PERL_USE_UNSAFE_INC=1 PYTHON="/usr/local/bin/python3.9" XDG_DATA_HOME=/wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64  XDG_CONFIG_HOME=/wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64  XDG_CACHE_HOME=/wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64/.cache  HOME=/wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64 TMPDIR="/wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64" PATH=/wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
NINJA_STATUS="[%p %s/%t] " PERL_USE_UNSAFE_INC=1 XDG_DATA_HOME=/wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64  XDG_CONFIG_HOME=/wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64  XDG_CACHE_HOME=/wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64/.cache  HOME=/wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64 TMPDIR="/wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64" PATH=/wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-st
 rict-aliasing  "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
PYTHON_INCLUDEDIR=include/python3.9  PYTHON_LIBDIR=lib/python3.9  PYTHON_PLATFORM=freebsd13  PYTHON_SITELIBDIR=lib/python3.9/site-packages  PYTHON_SUFFIX=39  PYTHON_EXT_SUFFIX=.cpython-39  PYTHON_VER=3.9  PYTHON_VERSION=python3.9 PYTHON2="@comment " PYTHON3="" OSREL=13.2 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib PERL_VERSION=5.36.3  PERL_VER=5.36  PERL5_MAN1=lib/perl5/site_perl/man/man1  PERL5_MAN3=lib/perl5/site_perl/man/man3  SITE_PERL=lib/perl5/site_perl  SITE_ARCH=lib/perl5/site_perl/mach/5.36 DOCSDIR="share/doc/rust"  EXAMPLESDIR="share/examples/rust"  DATADIR="share/rust"  WWWDIR="www/rust"  ETCDIR="etc/rust"
--End PLIST_SUB--

--SUB_LIST--
PYTHON_INCLUDEDIR=/usr/local/include/python3.9  PYTHON_LIBDIR=/usr/local/lib/python3.9  PYTHON_PLATFORM=freebsd13  PYTHON_SITELIBDIR=/usr/local/lib/python3.9/site-packages  PYTHON_SUFFIX=39  PYTHON_EXT_SUFFIX=.cpython-39  PYTHON_VER=3.9  PYTHON_VERSION=python3.9 PYTHON2="@comment " PYTHON3="" PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/rust DOCSDIR=/usr/local/share/doc/rust EXAMPLESDIR=/usr/local/share/examples/rust  WWWDIR=/usr/local/www/rust ETCDIR=/usr/local/etc/rust
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
####  ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 3 jobs
MAKE_JOBS_NUMBER=3
#### Misc Poudriere ####
.include "/etc/make.conf.ports_env"
GID=0
UID=0
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  33554432
stack size              (kbytes, -s)  524288
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  8192
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License APACHE20 MIT accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   powerpc64-rust-bootstrap-1.74.0 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.20.9.pkg
[132powerpc64-quarterly-job-13] Installing pkg-1.20.9...
[132powerpc64-quarterly-job-13] Extracting pkg-1.20.9: .......... done
===>   powerpc64-rust-bootstrap-1.74.0 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of powerpc64-rust-bootstrap-1.74.0
===========================================================================
=======================<phase: fetch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: fetch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License APACHE20 MIT accepted by the user
===> Fetching all distfiles required by powerpc64-rust-bootstrap-1.74.0 for building
===========================================================================
=======================<phase: checksum       >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License APACHE20 MIT accepted by the user
===> Fetching all distfiles required by powerpc64-rust-bootstrap-1.74.0 for building
=> SHA256 Checksum OK for rust/rustc-1.74.0-src.tar.xz.
===========================================================================
=======================<phase: extract-depends>============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: extract        >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License APACHE20 MIT accepted by the user
===> Fetching all distfiles required by powerpc64-rust-bootstrap-1.74.0 for building
===>  Extracting for powerpc64-rust-bootstrap-1.74.0
=> SHA256 Checksum OK for rust/rustc-1.74.0-src.tar.xz.
===========================================================================
=======================<phase: patch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: patch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Patching for powerpc64-rust-bootstrap-1.74.0
===>  Applying FreeBSD patches for powerpc64-rust-bootstrap-1.74.0 from /usr/ports/lang/rust-bootstrap/../rust/files
===========================================================================
=======================<phase: build-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   powerpc64-rust-bootstrap-1.74.0 depends on package: powerpc64-freebsd-sysroot>=a2021.09.14 - not found
===>   Installing existing package /packages/All/powerpc64-freebsd-sysroot-a2023.12.30.pkg
[132powerpc64-quarterly-job-13] Installing powerpc64-freebsd-sysroot-a2023.12.30...
[132powerpc64-quarterly-job-13] Extracting powerpc64-freebsd-sysroot-a2023.12.30: .......... done
===>   powerpc64-rust-bootstrap-1.74.0 depends on package: powerpc64-freebsd-sysroot>=a2021.09.14 - found
===>   Returning to build of powerpc64-rust-bootstrap-1.74.0
===>   powerpc64-rust-bootstrap-1.74.0 depends on executable: cmake - not found
===>   Installing existing package /packages/All/cmake-core-3.28.1.pkg
[132powerpc64-quarterly-job-13] Installing cmake-core-3.28.1...
[132powerpc64-quarterly-job-13] `-- Installing expat-2.5.0...
[132powerpc64-quarterly-job-13] `-- Extracting expat-2.5.0: .......... done
[132powerpc64-quarterly-job-13] `-- Installing jsoncpp-1.9.5...
[132powerpc64-quarterly-job-13] `-- Extracting jsoncpp-1.9.5: .......... done
[132powerpc64-quarterly-job-13] `-- Installing libuv-1.47.0...
[132powerpc64-quarterly-job-13] `-- Extracting libuv-1.47.0: .......... done
[132powerpc64-quarterly-job-13] `-- Installing rhash-1.4.4...
[132powerpc64-quarterly-job-13] |   `-- Installing gettext-runtime-0.22.3...
[132powerpc64-quarterly-job-13] |   | `-- Installing indexinfo-0.3.1...
[132powerpc64-quarterly-job-13] |   | `-- Extracting indexinfo-0.3.1: .... done
[132powerpc64-quarterly-job-13] |   `-- Extracting gettext-runtime-0.22.3: .......... done
[132powerpc64-quarterly-job-13] `-- Extracting rhash-1.4.4: .......... done
[132powerpc64-quarterly-job-13] Extracting cmake-core-3.28.1: .......... done
===>   powerpc64-rust-bootstrap-1.74.0 depends on executable: cmake - found
===>   Returning to build of powerpc64-rust-bootstrap-1.74.0
===>   powerpc64-rust-bootstrap-1.74.0 depends on executable: gmake - not found
===>   Installing existing package /packages/All/gmake-4.3_2.pkg
<snip>
[  6% 154/2399] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.o
[  6% 155/2399] Linking CXX static library lib/libLLVMSupport.a
[  6% 156/2399] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/Error.cpp.o
[  6% 157/2399] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/DetailedRecordsBackend.cpp.o
[  6% 158/2399] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/JSONBackend.cpp.o
[  6% 159/2399] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/Parser.cpp.o
[  6% 160/2399] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/Main.cpp.o
[  6% 161/2399] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/StringMatcher.cpp.o
[  6% 162/2399] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/SetTheory.cpp.o
[  6% 163/2399] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/TableGenBackend.cpp.o
[  6% 164/2399] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/TableGenBackendSkeleton.cpp.o
[  6% 165/2399] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/Record.cpp.o
[  6% 166/2399] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/TGLexer.cpp.o
[  6% 167/2399] Building CXX object utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/Attributes.cpp.o
[  6% 168/2399] Building CXX object utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/CodeGenIntrinsics.cpp.o
[  6% 169/2399] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/TGParser.cpp.o
[  7% 170/2399] Linking CXX static library lib/libLLVMTableGen.a
[  7% 171/2399] Building CXX object utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/DirectiveEmitter.cpp.o
[  7% 172/2399] Building CXX object utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/RISCVTargetDefEmitter.cpp.o
[  7% 173/2399] Building CXX object utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/SDNodeProperties.cpp.o
[  7% 174/2399] Building CXX object utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/IntrinsicEmitter.cpp.o
[  7% 175/2399] Generating VCSRevision.h
CMake Warning at /wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64/rustc-1.74.0-src/src/llvm-project/llvm/cmake/modules/VersionFromVCS.cmake:49 (message):
  Git not found.  Version cannot be determined.
Call Stack (most recent call first):
  /wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64/rustc-1.74.0-src/src/llvm-project/llvm/cmake/modules/GenerateVersionFromVCS.cmake:44 (get_source_info)


[  7% 176/2399] Building CXX object utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/VTEmitter.cpp.o
[  7% 177/2399] Linking CXX static library lib/libLLVMTableGenCommon.a
[  7% 178/2399] Building CXX object utils/TableGen/CMakeFiles/llvm-min-tblgen.dir/TableGen.cpp.o
[  7% 179/2399] Linking CXX executable bin/llvm-min-tblgen
FAILED: bin/llvm-min-tblgen 
: && /usr/local/freebsd-sysroot/powerpc64/bin/c++ -ffunction-sections -fdata-sections -fPIC -m64 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -w -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -lz  -fstack-protector-strong -Wl,--color-diagnostics    -Wl,-z,origin  -Wl,--gc-sections utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/Attributes.cpp.o utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/CodeGenIntrinsics.cpp.o utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/DirectiveEmitter.cpp.o utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/IntrinsicEmitter.cpp.o utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/RISCVTargetDefEmitter.cpp.o utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/SDNodeProperties.cpp.o utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/VTEmitter.cpp.o utils/TableGen/CMakeFiles/llvm-min-tblgen.dir/T
 ableGen.cpp.o -o bin/llvm-min-tblgen  -Wl,-rpath,"\$ORIGIN/../lib"  lib/libLLVMSupport.a  lib/libLLVMTableGen.a  -lpthread  lib/libLLVMSupport.a  -lrt  -lexecinfo  -lpthread  -lm  /usr/lib/libz.so  lib/libLLVMDemangle.a && :
ld: error: relocation refers to a discarded section: .text._ZN4llvm14object_deleterINS_2cl3optIPFvRNS_12RecordKeeperERNS_11raw_ostreamEELb0ENS1_6parserIS8_EEEEE4callEPv
>>> defined in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/DirectiveEmitter.cpp.o
>>> section group signature: _ZN4llvm14object_deleterINS_2cl3optIPFvRNS_12RecordKeeperERNS_11raw_ostreamEELb0ENS1_6parserIS8_EEEEE4callEPv
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/Attributes.cpp.o
>>> referenced by DirectiveEmitter.cpp
>>>               utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/DirectiveEmitter.cpp.o:(HasDuplicateClauses(std::__1::vector<llvm::Record*, std::__1::allocator<llvm::Record*> > const&, llvm::Directive const&, llvm::StringSet<llvm::MallocAllocator>&))

ld: error: relocation refers to a discarded section: .text._ZNK4llvm2cl15OptionValueCopyIPFvRNS_12RecordKeeperERNS_11raw_ostreamEEE7compareERKNS0_18GenericOptionValueE
>>> defined in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/DirectiveEmitter.cpp.o
>>> section group signature: _ZNK4llvm2cl15OptionValueCopyIPFvRNS_12RecordKeeperERNS_11raw_ostreamEEE7compareERKNS0_18GenericOptionValueE
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/Attributes.cpp.o
>>> referenced by DirectiveEmitter.cpp
>>>               utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/DirectiveEmitter.cpp.o:(HasDuplicateClauses(std::__1::vector<llvm::Record*, std::__1::allocator<llvm::Record*> > const&, llvm::Directive const&, llvm::StringSet<llvm::MallocAllocator>&))

ld: error: relocation refers to a discarded section: .text._ZN4llvm23SmallVectorTemplateBaseINS_2cl6parserIPFvRNS_12RecordKeeperERNS_11raw_ostreamEEE10OptionInfoELb0EE28reserveForParamAndGetAddressERKSA_m
>>> defined in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/DirectiveEmitter.cpp.o
>>> section group signature: _ZN4llvm23SmallVectorTemplateBaseINS_2cl6parserIPFvRNS_12RecordKeeperERNS_11raw_ostreamEEE10OptionInfoELb0EE28reserveForParamAndGetAddressERKSA_m
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/Attributes.cpp.o
>>> referenced by DirectiveEmitter.cpp
>>>               utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/DirectiveEmitter.cpp.o:(HasDuplicateClauses(std::__1::vector<llvm::Record*, std::__1::allocator<llvm::Record*> > const&, llvm::Directive const&, llvm::StringSet<llvm::MallocAllocator>&))

ld: error: relocation refers to a discarded section: .text._ZNSt3__1plIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEOS9_PKS6_
>>> defined in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/IntrinsicEmitter.cpp.o
>>> section group signature: _ZNSt3__1plIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EEOS9_PKS6_
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/CodeGenIntrinsics.cpp.o
>>> referenced by IntrinsicEmitter.cpp
>>>               utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/IntrinsicEmitter.cpp.o:((anonymous namespace)::IntrinsicEmitter::run(llvm::raw_ostream&, bool))

ld: error: relocation refers to a discarded section: .text._ZSt28__throw_bad_array_new_lengthv
>>> defined in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/IntrinsicEmitter.cpp.o
>>> section group signature: _ZSt28__throw_bad_array_new_lengthv
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/CodeGenIntrinsics.cpp.o
>>> referenced by IntrinsicEmitter.cpp
>>>               utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/IntrinsicEmitter.cpp.o:((anonymous namespace)::IntrinsicEmitter::run(llvm::raw_ostream&, bool))

ld: error: relocation refers to a discarded section: .text._ZN4llvm16CodeGenIntrinsicD2Ev
>>> defined in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/IntrinsicEmitter.cpp.o
>>> section group signature: _ZN4llvm16CodeGenIntrinsicD2Ev
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/CodeGenIntrinsics.cpp.o
>>> referenced by IntrinsicEmitter.cpp
>>>               utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/IntrinsicEmitter.cpp.o:((anonymous namespace)::IntrinsicEmitter::run(llvm::raw_ostream&, bool))

ld: error: relocation refers to a discarded section: .text._ZN4llvm14object_deleterINS_2cl3optIPFvRNS_12RecordKeeperERNS_11raw_ostreamEELb0ENS1_6parserIS8_EEEEE4callEPv
>>> defined in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/IntrinsicEmitter.cpp.o
>>> section group signature: _ZN4llvm14object_deleterINS_2cl3optIPFvRNS_12RecordKeeperERNS_11raw_ostreamEELb0ENS1_6parserIS8_EEEEE4callEPv
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/Attributes.cpp.o
>>> referenced by IntrinsicEmitter.cpp
>>>               utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/IntrinsicEmitter.cpp.o:((anonymous namespace)::IntrinsicEmitter::run(llvm::raw_ostream&, bool))

ld: error: relocation refers to a discarded section: .text._ZNK4llvm2cl15OptionValueCopyIPFvRNS_12RecordKeeperERNS_11raw_ostreamEEE7compareERKNS0_18GenericOptionValueE
>>> defined in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/IntrinsicEmitter.cpp.o
>>> section group signature: _ZNK4llvm2cl15OptionValueCopyIPFvRNS_12RecordKeeperERNS_11raw_ostreamEEE7compareERKNS0_18GenericOptionValueE
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/Attributes.cpp.o
>>> referenced by IntrinsicEmitter.cpp
>>>               utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/IntrinsicEmitter.cpp.o:((anonymous namespace)::IntrinsicEmitter::run(llvm::raw_ostream&, bool))

ld: error: relocation refers to a discarded section: .text._ZN4llvm23SmallVectorTemplateBaseINS_2cl6parserIPFvRNS_12RecordKeeperERNS_11raw_ostreamEEE10OptionInfoELb0EE28reserveForParamAndGetAddressERKSA_m
>>> defined in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/IntrinsicEmitter.cpp.o
>>> section group signature: _ZN4llvm23SmallVectorTemplateBaseINS_2cl6parserIPFvRNS_12RecordKeeperERNS_11raw_ostreamEEE10OptionInfoELb0EE28reserveForParamAndGetAddressERKSA_m
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/Attributes.cpp.o
>>> referenced by IntrinsicEmitter.cpp
>>>               utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/IntrinsicEmitter.cpp.o:((anonymous namespace)::IntrinsicEmitter::run(llvm::raw_ostream&, bool))

ld: error: relocation refers to a discarded section: .text._ZSt28__throw_bad_array_new_lengthv
>>> defined in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/RISCVTargetDefEmitter.cpp.o
>>> section group signature: _ZSt28__throw_bad_array_new_lengthv
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/CodeGenIntrinsics.cpp.o
>>> referenced by RISCVTargetDefEmitter.cpp
>>>               utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/RISCVTargetDefEmitter.cpp.o:(EmitRISCVTargetDef(llvm::RecordKeeper&, llvm::raw_ostream&))

ld: error: relocation refers to a discarded section: .text._ZN4llvm14object_deleterINS_2cl3optIPFvRNS_12RecordKeeperERNS_11raw_ostreamEELb0ENS1_6parserIS8_EEEEE4callEPv
>>> defined in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/RISCVTargetDefEmitter.cpp.o
>>> section group signature: _ZN4llvm14object_deleterINS_2cl3optIPFvRNS_12RecordKeeperERNS_11raw_ostreamEELb0ENS1_6parserIS8_EEEEE4callEPv
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/Attributes.cpp.o
>>> referenced by RISCVTargetDefEmitter.cpp
>>>               utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/RISCVTargetDefEmitter.cpp.o:(EmitRISCVTargetDef(llvm::RecordKeeper&, llvm::raw_ostream&))

ld: error: relocation refers to a discarded section: .text._ZNK4llvm2cl15OptionValueCopyIPFvRNS_12RecordKeeperERNS_11raw_ostreamEEE7compareERKNS0_18GenericOptionValueE
>>> defined in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/RISCVTargetDefEmitter.cpp.o
>>> section group signature: _ZNK4llvm2cl15OptionValueCopyIPFvRNS_12RecordKeeperERNS_11raw_ostreamEEE7compareERKNS0_18GenericOptionValueE
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/Attributes.cpp.o
>>> referenced by RISCVTargetDefEmitter.cpp
>>>               utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/RISCVTargetDefEmitter.cpp.o:(EmitRISCVTargetDef(llvm::RecordKeeper&, llvm::raw_ostream&))

ld: error: relocation refers to a discarded section: .text._ZN4llvm23SmallVectorTemplateBaseINS_2cl6parserIPFvRNS_12RecordKeeperERNS_11raw_ostreamEEE10OptionInfoELb0EE28reserveForParamAndGetAddressERKSA_m
>>> defined in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/RISCVTargetDefEmitter.cpp.o
>>> section group signature: _ZN4llvm23SmallVectorTemplateBaseINS_2cl6parserIPFvRNS_12RecordKeeperERNS_11raw_ostreamEEE10OptionInfoELb0EE28reserveForParamAndGetAddressERKSA_m
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/Attributes.cpp.o
>>> referenced by RISCVTargetDefEmitter.cpp
>>>               utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/RISCVTargetDefEmitter.cpp.o:(EmitRISCVTargetDef(llvm::RecordKeeper&, llvm::raw_ostream&))

ld: error: relocation refers to a discarded section: .text._ZN4llvmplERKNS_5TwineES2_
>>> defined in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/SDNodeProperties.cpp.o
>>> section group signature: _ZN4llvmplERKNS_5TwineES2_
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/IntrinsicEmitter.cpp.o
>>> referenced by SDNodeProperties.cpp
>>>               utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/SDNodeProperties.cpp.o:(llvm::parseSDPatternOperatorProperties(llvm::Record*))

ld: error: relocation refers to a discarded section: .text._ZNSt3__127__tree_balance_after_insertIPNS_16__tree_node_baseIPvEEEEvT_S5_
>>> defined in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/VTEmitter.cpp.o
>>> section group signature: _ZNSt3__127__tree_balance_after_insertIPNS_16__tree_node_baseIPvEEEEvT_S5_
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/IntrinsicEmitter.cpp.o
>>> referenced by VTEmitter.cpp
>>>               utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/VTEmitter.cpp.o:(llvm::TableGen::Emitter::OptClass<(anonymous namespace)::VTEmitter>::run(llvm::RecordKeeper&, llvm::raw_ostream&))

ld: error: relocation refers to a discarded section: .text._ZN4llvm14object_deleterINS_2cl3optIPFvRNS_12RecordKeeperERNS_11raw_ostreamEELb0ENS1_6parserIS8_EEEEE4callEPv
>>> defined in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/VTEmitter.cpp.o
>>> section group signature: _ZN4llvm14object_deleterINS_2cl3optIPFvRNS_12RecordKeeperERNS_11raw_ostreamEELb0ENS1_6parserIS8_EEEEE4callEPv
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/Attributes.cpp.o
>>> referenced by VTEmitter.cpp
>>>               utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/VTEmitter.cpp.o:(llvm::TableGen::Emitter::OptClass<(anonymous namespace)::VTEmitter>::run(llvm::RecordKeeper&, llvm::raw_ostream&))

ld: error: relocation refers to a discarded section: .text._ZNK4llvm2cl15OptionValueCopyIPFvRNS_12RecordKeeperERNS_11raw_ostreamEEE7compareERKNS0_18GenericOptionValueE
>>> defined in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/VTEmitter.cpp.o
>>> section group signature: _ZNK4llvm2cl15OptionValueCopyIPFvRNS_12RecordKeeperERNS_11raw_ostreamEEE7compareERKNS0_18GenericOptionValueE
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/Attributes.cpp.o
>>> referenced by VTEmitter.cpp
>>>               utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/VTEmitter.cpp.o:(llvm::TableGen::Emitter::OptClass<(anonymous namespace)::VTEmitter>::run(llvm::RecordKeeper&, llvm::raw_ostream&))

ld: error: relocation refers to a discarded section: .text._ZN4llvm23SmallVectorTemplateBaseINS_2cl6parserIPFvRNS_12RecordKeeperERNS_11raw_ostreamEEE10OptionInfoELb0EE28reserveForParamAndGetAddressERKSA_m
>>> defined in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/VTEmitter.cpp.o
>>> section group signature: _ZN4llvm23SmallVectorTemplateBaseINS_2cl6parserIPFvRNS_12RecordKeeperERNS_11raw_ostreamEEE10OptionInfoELb0EE28reserveForParamAndGetAddressERKSA_m
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/Attributes.cpp.o
>>> referenced by VTEmitter.cpp
>>>               utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/VTEmitter.cpp.o:(llvm::TableGen::Emitter::OptClass<(anonymous namespace)::VTEmitter>::run(llvm::RecordKeeper&, llvm::raw_ostream&))

ld: error: relocation refers to a discarded section: .text._ZN4llvm2cl3optINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELb0ENS0_6parserIS8_EEED2Ev
>>> defined in utils/TableGen/CMakeFiles/llvm-min-tblgen.dir/TableGen.cpp.o
>>> section group signature: _ZN4llvm2cl3optINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELb0ENS0_6parserIS8_EEED2Ev
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/IntrinsicEmitter.cpp.o
>>> referenced by TableGen.cpp
>>>               utils/TableGen/CMakeFiles/llvm-min-tblgen.dir/TableGen.cpp.o:(llvm::cl::opt<bool, false, llvm::cl::parser<bool> >::opt<char [21], llvm::cl::desc, llvm::cl::OptionHidden, llvm::cl::initializer<bool> >(char const (&) [21], llvm::cl::desc const&, llvm::cl::OptionHidden const&, llvm::cl::initializer<bool> const&))

ld: error: relocation refers to a discarded section: .text._ZNK4llvm2cl15OptionValueCopyINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE7compareERKNS0_18GenericOptionValueE
>>> defined in utils/TableGen/CMakeFiles/llvm-min-tblgen.dir/TableGen.cpp.o
>>> section group signature: _ZNK4llvm2cl15OptionValueCopyINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE7compareERKNS0_18GenericOptionValueE
>>> prevailing definition is in utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/IntrinsicEmitter.cpp.o
>>> referenced by TableGen.cpp
>>>               utils/TableGen/CMakeFiles/llvm-min-tblgen.dir/TableGen.cpp.o:((anonymous namespace)::PrintEnums(llvm::RecordKeeper&, llvm::raw_ostream&))

ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
c++: error: linker command failed with exit code 1 (use -v to see invocation)
[  7% 179/2399] Building CXX object lib/Bitstream/Reader/CMakeFiles/LLVMBitstreamReader.dir/BitstreamReader.cpp.o
[  7% 179/2399] Building CXX object lib/FileCheck/CMakeFiles/LLVMFileCheck.dir/FileCheck.cpp.o
ninja: build stopped: subcommand failed.
thread 'main' panicked at /wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64/rustc-1.74.0-src/vendor/cmake/src/lib.rs:975:5:

command did not execute successfully, got: exit status: 1

build script failed, must exit now
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
	finished in 470.514 seconds
Traceback (most recent call last):
  File "/wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64/rustc-1.74.0-src/x.py", line 50, in <module>
    bootstrap.main()
  File "/wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64/rustc-1.74.0-src/src/bootstrap/bootstrap.py", line 1121, in main
    bootstrap(args)
  File "/wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64/rustc-1.74.0-src/src/bootstrap/bootstrap.py", line 1097, in bootstrap
    run(args, env=env, verbose=build.verbose, is_bootstrap=True)
  File "/wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64/rustc-1.74.0-src/src/bootstrap/bootstrap.py", line 187, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /wrkdirs/usr/ports/lang/rust-bootstrap/work-powerpc64/_build/bootstrap/debug/bootstrap dist --jobs=3 cargo rustc rust-std
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/rust-bootstrap