Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2025 02:06:43 -0600
From:      Scott Bennett <bennett@sdf.org>
To:        freebsd-questions@freebsd.org
Subject:   14.2-RELEASE buildworld failure
Message-ID:  <202501240806.50O86h91025926@sdf.org>

next in thread | raw e-mail | index | archive | help
     I have been trying in vain to upgrade from

FreeBSD hellas 12.4-RELEASE-p2 FreeBSD 12.4-RELEASE-p2 #9 releng/12.4-n=
235816-149768b65d61: Sat Feb 18 00:13:00 CST 2023     bennett@hellas:/u=
sr/obj/usr/src/amd64.amd64/sys/hellas  amd64

to 14.2-RELEASE for some time now, but when I run "make buildworld" it =
fails
during a linkedit step on complaints that it can't find a library that =
it wants.
Here is an example of how it ends.
     .
     .
     .
--- all_subdir_libexec ---
--- all_subdir_libexec/atf/atf-check/tests ---
=3D=3D=3D> libexec/atf/atf-check/tests (all)
--- atf-check_test ---
echo '#! /usr/libexec/atf-sh' > atf-check_test.tmp
cat /usr/src/contrib/atf/atf-sh/atf-check_test.sh >>atf-check_test.tmp
chmod +x atf-check_test.tmp
mv atf-check_test.tmp atf-check_test
--- Kyuafile ---
--- atf-check.full ---
/usr/local/libexec/ccache/world/c++ -target x86_64-unknown-freebsd14.2 =
--sysroot=3D/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.a=
md64/tmp/usr/bin -O2 -pipe "-mtune=3Dcore2" -fno-common -march=3Dcore2 =
-DHAVE_CONFIG_H -I/usr/src/contrib/atf -DATF_SHELL=3D'"/bin/sh"' -fPIE =
-g -gz=3Dzlib -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib=
/clang/13.0.0/include -fstack-protector-all -Wsystem-headers -Werror -W=
all -Wno-format-y2k -W -Wno-unused-parameter -Wpointer-arith -Wno-unini=
tialized -Wdate-time -Wformat=3D2 -Wno-format-extra-args -Werror -Wno-e=
mpty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautolog=
ical-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-fu=
nction -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-p=
acked-member -Wno-format-nonliteral -Qunused-arguments -fPIE -std=3Dc++=
11 -Wno-deprecated-declarations -Wno-c++11-extensions  -Wl,-zrelro -pie=
   -o atf-check.full  atf-check.o -lprivateatf-c++ -lprivateatf-c=20
ld: error: undefined symbol: std::__1::basic_string<char, std::__1::cha=
r_traits<char>, std::__1::allocator<char> >::find(char, unsigned long) =
const
>>> referenced by atf-check.cpp:345 (/usr/src/contrib/atf/atf-sh/atf-ch=
eck.cpp:345)
>>>               atf-check.o:((anonymous namespace)::atf_check::proces=
s_option(int, char const*))
>>> referenced by atf-check.cpp:263 (/usr/src/contrib/atf/atf-sh/atf-ch=
eck.cpp:263)
>>>               atf-check.o:((anonymous namespace)::atf_check::proces=
s_option(int, char const*))
>>> referenced by atf-check.cpp:313 (/usr/src/contrib/atf/atf-sh/atf-ch=
eck.cpp:313)
>>>               atf-check.o:(parse_output_check_arg(std::__1::basic_s=
tring<char, std::__1::char_traits<char>, std::__1::allocator<char> > co=
nst&))

ld: error: undefined symbol: std::__1::basic_string<char, std::__1::cha=
r_traits<char>, std::__1::allocator<char> >::basic_string(std::__1::bas=
ic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> =
> const&, unsigned long, unsigned long, std::__1::allocator<char> const=
&)
>>> referenced by string:1576 (/usr/obj/usr/src/amd64.amd64/tmp/usr/inc=
lude/c++/v1/string:1576)
>>>               atf-check.o:((anonymous namespace)::atf_check::proces=
s_option(int, char const*))
>>> referenced by string:1576 (/usr/obj/usr/src/amd64.amd64/tmp/usr/inc=
lude/c++/v1/string:1576)
>>>               atf-check.o:((anonymous namespace)::atf_check::proces=
s_option(int, char const*))
>>> referenced by string:1576 (/usr/obj/usr/src/amd64.amd64/tmp/usr/inc=
lude/c++/v1/string:1576)
>>>               atf-check.o:((anonymous namespace)::atf_check::proces=
s_option(int, char const*))
>>> referenced 5 more times

ld: error: undefined symbol: std::__1::basic_string<char, std::__1::cha=
r_traits<char>, std::__1::allocator<char> >::compare(unsigned long, uns=
igned long, char const*) const
>>> referenced by atf-check.cpp:264 (/usr/src/contrib/atf/atf-sh/atf-ch=
eck.cpp:264)
>>>               atf-check.o:((anonymous namespace)::atf_check::proces=
s_option(int, char const*))
>>> referenced by atf-check.cpp:314 (/usr/src/contrib/atf/atf-sh/atf-ch=
eck.cpp:314)
>>>               atf-check.o:(parse_output_check_arg(std::__1::basic_s=
tring<char, std::__1::char_traits<char>, std::__1::allocator<char> > co=
nst&))

ld: error: undefined symbol: std::__1::basic_string<char, std::__1::cha=
r_traits<char>, std::__1::allocator<char> >::append(char const*)
>>> referenced by string:3978 (/usr/obj/usr/src/amd64.amd64/tmp/usr/inc=
lude/c++/v1/string:3978)
>>>               atf-check.o:((anonymous namespace)::atf_check::proces=
s_option(int, char const*))
>>> referenced by string:1254 (/usr/obj/usr/src/amd64.amd64/tmp/usr/inc=
lude/c++/v1/string:1254)
>>>               atf-check.o:((anonymous namespace)::atf_check::main()=
)
>>> referenced by string:3978 (/usr/obj/usr/src/amd64.amd64/tmp/usr/inc=
lude/c++/v1/string:3978)
>>>               atf-check.o:(run_output_checks(std::__1::vector<(anon=
ymous namespace)::output_check, std::__1::allocator<(anonymous namespac=
e)::output_check> > const&, atf::fs::path const&, std::__1::basic_strin=
g<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&=
))
>>> referenced 2 more times

ld: error: undefined symbol: std::__1::basic_string<char, std::__1::cha=
r_traits<char>, std::__1::allocator<char> >::push_back(char)
>>> referenced by string:1258 (/usr/obj/usr/src/amd64.amd64/tmp/usr/inc=
lude/c++/v1/string:1258)
>>>               atf-check.o:((anonymous namespace)::atf_check::main()=
)
>>> referenced by atf-check.cpp:589 (/usr/src/contrib/atf/atf-sh/atf-ch=
eck.cpp:589)
>>>               atf-check.o:(run_output_checks(std::__1::vector<(anon=
ymous namespace)::output_check, std::__1::allocator<(anonymous namespac=
e)::output_check> > const&, atf::fs::path const&, std::__1::basic_strin=
g<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&=
))
>>> referenced by istream:1269 (/usr/obj/usr/src/amd64.amd64/tmp/usr/in=
clude/c++/v1/istream:1269)
>>>               atf-check.o:(std::__1::basic_istream<char, std::__1::=
char_traits<char> >& std::__1::getline[abi:se180100]<char, std::__1::ch=
ar_traits<char>, std::__1::allocator<char> >(std::__1::basic_istream<ch=
ar, std::__1::char_traits<char> >&, std::__1::basic_string<char, std::_=
_1::char_traits<char>, std::__1::allocator<char> >&, char))
ld: error: undefined symbol: std::__1::basic_string<char, std::__1::cha=
r_traits<char>, std::__1::allocator<char> >::insert(unsigned long, char=
 const*)
>>> referenced by string:3965 (/usr/obj/usr/src/amd64.amd64/tmp/usr/inc=
lude/c++/v1/string:3965)
>>>               atf-check.o:(get_monotonic_useconds())
>>> referenced by string:3965 (/usr/obj/usr/src/amd64.amd64/tmp/usr/inc=
lude/c++/v1/string:3965)
>>>               atf-check.o:(cat_file(atf::fs::path const&))
>>> referenced by string:3965 (/usr/obj/usr/src/amd64.amd64/tmp/usr/inc=
lude/c++/v1/string:3965)
>>>               atf-check.o:(run_output_checks(std::__1::vector<(anon=
ymous namespace)::output_check, std::__1::allocator<(anonymous namespac=
e)::output_check> > const&, atf::fs::path const&, std::__1::basic_strin=
g<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&=
))
>>> referenced 5 more times

ld: error: undefined symbol: std::__1::basic_string<char, std::__1::cha=
r_traits<char>, std::__1::allocator<char> >::reserve(unsigned long)
>>> referenced by atf-check.cpp:557 (/usr/src/contrib/atf/atf-sh/atf-ch=
eck.cpp:557)
>>>               atf-check.o:(run_output_checks(std::__1::vector<(anon=
ymous namespace)::output_check, std::__1::allocator<(anonymous namespac=
e)::output_check> > const&, atf::fs::path const&, std::__1::basic_strin=
g<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&=
))
ld: error: undefined symbol: std::__1::basic_string<char, std::__1::cha=
r_traits<char>, std::__1::allocator<char> >::operator=3D(std::__1::basi=
c_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >=
 const&)
>>> referenced by sstream:420 (/usr/obj/usr/src/amd64.amd64/tmp/usr/inc=
lude/c++/v1/sstream:420)
>>>               atf-check.o:(std::__1::basic_istringstream<char, std:=
:__1::char_traits<char>, std::__1::allocator<char> >::basic_istringstre=
am[abi:se180100](std::__1::basic_string<char, std::__1::char_traits<cha=
r>, std::__1::allocator<char> > const&, unsigned int))

ld: error: undefined symbol: std::__1::basic_string<char, std::__1::cha=
r_traits<char>, std::__1::allocator<char> >::resize(unsigned long, char=
)
>>> referenced by string:1196 (/usr/obj/usr/src/amd64.amd64/tmp/usr/inc=
lude/c++/v1/string:1196)
>>>               atf-check.o:(std::__1::basic_stringbuf<char, std::__1=
::char_traits<char>, std::__1::allocator<char> >::__init_buf_ptrs[abi:s=
e180100]())
ld: error: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libprivateatf-c++.s=
o: undefined reference to std::__1::basic_string<char, std::__1::char_t=
raits<char>, std::__1::allocator<char> >::push_back(char) [--no-allow-s=
hlib-undefined]
ld: error: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libprivateatf-c++.s=
o: undefined reference to std::__1::basic_string<char, std::__1::char_t=
raits<char>, std::__1::allocator<char> >::append(char const*) [--no-all=
ow-shlib-undefined]
ld: error: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libprivateatf-c++.s=
o: undefined reference to std::__1::basic_string<char, std::__1::char_t=
raits<char>, std::__1::allocator<char> >::append(char const*, unsigned =
long) [--no-allow-shlib-undefined]
ld: error: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libprivateatf-c++.s=
o: undefined reference to std::__1::basic_string<char, std::__1::char_t=
raits<char>, std::__1::allocator<char> >::insert(unsigned long, char co=
nst*) [--no-allow-shlib-undefined]
ld: error: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libprivateatf-c++.s=
o: undefined reference to std::__1::basic_string<char, std::__1::char_t=
raits<char>, std::__1::allocator<char> >::find(char, unsigned long) con=
st [--no-allow-shlib-undefined]
ld: error: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libprivateatf-c++.s=
o: undefined reference to std::__1::basic_string<char, std::__1::char_t=
raits<char>, std::__1::allocator<char> >::operator=3D(std::__1::basic_s=
tring<char, std::__1::char_traits<char>, std::__1::allocator<char> > co=
nst&) [--no-allow-shlib-undefined]
ld: error: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libprivateatf-c++.s=
o: undefined reference to std::__1::basic_string<char, std::__1::char_t=
raits<char>, std::__1::allocator<char> >::assign(char const*) [--no-all=
ow-shlib-undefined]
ld: error: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libprivateatf-c++.s=
o: undefined reference to std::__1::basic_string<char, std::__1::char_t=
raits<char>, std::__1::allocator<char> >::basic_string(std::__1::basic_=
string<char, std::__1::char_traits<char>, std::__1::allocator<char> > c=
onst&, unsigned long, unsigned long, std::__1::allocator<char> const&) =
[--no-allow-shlib-undefined]
ld: error: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libprivateatf-c++.s=
o: undefined reference to std::__1::basic_string<char, std::__1::char_t=
raits<char>, std::__1::allocator<char> >::~basic_string() [--no-allow-s=
hlib-undefined]
ld: error: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libprivateatf-c++.s=
o: undefined reference to std::__1::basic_string<char, std::__1::char_t=
raits<char>, std::__1::allocator<char> >::erase(unsigned long, unsigned=
 long) [--no-allow-shlib-undefined]
ld: error: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libprivateatf-c++.s=
o: undefined reference to std::__1::basic_string<char, std::__1::char_t=
raits<char>, std::__1::allocator<char> >::resize(unsigned long, char) [=
--no-allow-shlib-undefined]
--- all_subdir_cddl ---
make[5]: /usr/obj/usr/src/amd64.amd64/cddl/lib/libzpool/.depend, 1: ign=
oring stale .depend for /usr/obj/usr/src/amd64.amd64/cddl/lib/libicp/li=
bicp_pie.a
make[5]: /usr/obj/usr/src/amd64.amd64/cddl/lib/libzpool/.depend, 1: ign=
oring stale .depend for /usr/obj/usr/src/amd64.amd64/cddl/lib/libnvpair=
/libnvpair_pie.a
--- libzpool.so.2.full ---
building shared library libzpool.so.2
--- all_subdir_libexec ---
c++: error: linker command failed with exit code 1 (use -v to see invoc=
ation)
*** [atf-check.full] Error code 1

make[5]: stopped in /usr/src/libexec/atf/atf-check
--- all_subdir_cddl ---
--- all_subdir_lib ---
ctfconvert -L VERSION -g fini_test.pico
--- all_subdir_bin ---
ctfconvert -L VERSION -g chflags.o
        8.28 real         0.98 user         0.97 sys
5770.159u 5426.451s 5:32:51.54 56.0%=09708+388k 8457884+476362io 125159=
pf+25w
hellas#=09

     My /etc/make.conf contains the following.

ALLOW_UNSUPPORTED_SYSTEM=3DYES
# added by SJB  11 Jan. 2007
CPUTYPE?=3Dcore2
#CPUTYPE?=3Dpenryn # gcc9 doesn't recognize this, so use core2 -mssse3 =
-msse4.1
# added by SJB  8 Nov. 2011
CFLAGS+=3D"-mtune=3Dcore2"
#CFLAGS+=3D"-mtune=3Dpenryn" # see note for CPUTYPE above
# added by SJB 14 Apr. 2013
# updated by SJB  8 Dec. 2014
SVNFLAGS?=3D"-r RELENG_11"
# build ports with clang stack protector
WITH_SSP=3Dyes
SSP_CFLAGS=3D-fstack-protector-all
# added for ports system use to avoid dialogs by SJB  4 May 2007
BATCH=3DYES
# added for new pkg system  --SJB  10 December 2014
WITH_PKGNG=3Dyes
# build ports using ccache  --SJB  19 January 2015
WITH_CCACHE_BUILD=3Dyes
## buildworld and buildkernel using ccache  --SJB  26 January 2015
.if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*))
.if !defined(NOCCACHE) && exists(/usr/local/libexec/ccache/world/cc)
CC:=3D${CC:C,^cc,/usr/local/libexec/ccache/world/cc,1}
CXX:=3D${CXX:C,^c\+\+,/usr/local/libexec/ccache/world/c++,1}
CCACHE_COMPILERCHECK=3Dcontent
CCACHE_DIR=3D/buildwork/ccache.freebsd
.endif
.else
CFLAGS+=3D"-mssse3"
CFLAGS+=3D"-msse4.1"
.endif
# added to deal with ccache bug 8460  --SJB  2 November 2013
# bug has been reported fixed, so try without this workaround
#CCACHE_CPP2=3D1
# added as a better specification of -j by SJB 17 November 2009
MAKE_JOBS_NUMBER=3D4
## added to compile without profiling  --SJB  3 June 2007
#NO_PROFILE=3Dtrue
# put build tree where there is plenty of temporary workspace
WRKDIRPREFIX=3D/buildwork/ports
#WRKDIRPREFIX=3D/work/portswork
# Use OpenSSL from ports tree, not from base system
#WITH_OPENSSL_PORT=3DYES
#DEFAULT_VERSIONS+=3D  ssl=3Dlibressl
DEFAULT_VERSIONS+=3D  ssl=3Dopenssl
DEFAULT_VERSIONS+=3Dbdb=3D5+
DEFAULT_VERSIONS+=3D linux=3Dc7_64
DEFAULT_VERSIONS+=3D  perl5=3D5.32
DEFAULT_VERSIONS+=3D python=3D3.9 python2=3D2.7 python3=3D3.9
# Allow updating of Mesa3D from 7.4.4 to 7.6.1 and libdrm from 2.4.12 t=
o 2.4.17
WITHOUT_NOUVEAU=3Dyes
# Use ATLAS libraries in ports that use BLAS libraries
OPTIONS_SET=3DATLAS
# Tell gnustep-related ports to use base system's compiler
GNUSTEP_WITH_BASE_GCC=3Dyes
GNUSTEP_WITHOUT_LIBOBJC=3Dyes
# Pango
#..if $(.CURDIR:M*/x11-toolkits/linux-pango)
#DISABLE_VULNERABILITIES=3Dyes
#..endif
QT4_OPTIONS=3D CUPS NAS QGTKSTYLE
# Begin portconf settings
# Do not touch these lines
.if !empty(.CURDIR:M/usr/ports*) && exists(/usr/local/libexec/portconf)
_PORTCONF!=3D/usr/local/libexec/portconf
.if ${_PORTCONF} !=3D "|"
.for i in ${_PORTCONF:S/^|//:S/|/ /g}
${i:C/^([^=3D]*)=3D.*/\1/}=3D${i:C/^[^=3D]*=3D//:S/%/ /g}
.endfor
.endif
.endif
# End portconf settings

     My /etc/src.conf is as follows.  Note that PORTS_MODULES has been
commented out for years.

# The PORTS_MODULES must be built and installed manually because the
# mechanism of /etc/src.conf fails when installing into a ZFS clone
# of the root file system mounted onto /mnt.  Leave the following
# line commented, and remember to build them after installing world
# and rebooting into the newly installed system.
#PORTS_MODULES=3Demulators/virtualbox-ose-kmod graphics/drm-fbsd11.2-km=
od sysutils/graid5 sysutils/pefs-kmod
WITH_CCACHE_BUILD=3Dyes
WITH_CLANG_EXTRAS=3Dyes
WITH_CLANG_FULL=3Dyes
WITH_CTF=3Dyes
WITH_DEBUG_FILES=3Dyes
WITH_EXTRA_TCP_STACKS=3Dyes
WITH_LIBCPLUSPLUS=3Dyes
WITH_LINT=3Dyes
WITH_LLD_BOOTSTRAP=3Dyes
WITH_LLDB=3Dyes
WITH_LOADER_FIREWIRE=3Dyes
WITH_LOADER_GELI=3Dyes
WITH_ZONEINFO_LEAPSECONDS_SUPPORT=3Dyes
#WITHOUT_CLANG_BOOTSTRAP=3Dyes
WITHOUT_CROSS_COMPILER=3Dyes
WITHOUT_REPRODUCIBLE_BUILD=3DYES

     If someone more knowledgeable about the buildworld process can tel=
l me
what I need to do to get buildworld to run to completion so that I can =
upgrade,
I could really use the help.  I have some installed ports and packages =
that
are now often failing, but I can't upgrade them on this obsolete releas=
e.
     Thanks in advance for any help.


                                  Scott Bennett, Comm. ASMELG, CFIAG
**********************************************************************
* Internet:   bennett at sdf.org   *xor*   bennett at freeshell.org  *
*--------------------------------------------------------------------*
* "A well regulated and disciplined militia, is at all times a good  *
* objection to the introduction of that bane of all free governments *
* -- a standing army."                                               *
*    -- Gov. John Hancock, New York Journal, 28 January 1790         *
**********************************************************************




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501240806.50O86h91025926>