From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from pb-smtp2.pobox.com (pb-smtp2.pobox.com [64.147.108.71]) by sourceware.org (Postfix) with ESMTPS id 7643D3858C2F for ; Thu, 25 Aug 2022 15:58:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7643D3858C2F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=pobox.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=pobox.com Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 761BD14E28A for ; Thu, 25 Aug 2022 11:58:35 -0400 (EDT) (envelope-from mglover@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=date:from :to:subject:message-id:mime-version:content-type :content-transfer-encoding; s=sasl; bh=HRCxN/F1XWNaBjh0XAz8AbIYl h986hLHD4Zp46TiLyY=; b=aQxQJSHman+BW4jMFul/xHQhjZFQxmEBe3F6oXIW1 ZxCi4knF5u1Lr6QJ7JS0y2RY6+MKvNo1HUj8sHlcme3bAzEg/QLK3CA2WSZ/d9aJ Mp1Z0j1KW/9R9aZK4UE5yEFQkVI6uWEUgAE09GbX9uwsJxu9P1qmuw/WGcMU2Fpn eE= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 6E95214E289 for ; Thu, 25 Aug 2022 11:58:35 -0400 (EDT) (envelope-from mglover@pobox.com) Received: from [127.0.0.1] (unknown [208.58.204.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id DDD4414E287 for ; Thu, 25 Aug 2022 11:58:34 -0400 (EDT) (envelope-from mglover@pobox.com) Date: Thu, 25 Aug 2022 11:58:34 -0400 From: Mike Glover To: gcc-help@gcc.gnu.org Subject: errors building gcc 12.2.0 on musl-libc Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Pobox-Relay-ID: C64FA200-248E-11ED-B527-CB998F0A682E-78416184!pb-smtp2.pobox.com X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE,URIBL_CSS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Greetings- I'm having trouble building gcc-12.2.0 on my i686-pc-linux-musl system. Cur= rently=20 installed: gcc-5.3.0 originally cross-compiled from x86_64 glibc binutils-2.39 musl-libc 1.2.3 linux 4.14.257 I have no pertinent environment variables set. The installed 5.3.0 compiler= =20 has built all of the other code running on this system with no errors. Using --disable-libsanitizer as the internet suggests that it isn't=20 compatible with musl.=20 Abbreviated make output is below. Any advice is appreciated. -mg $ ../gcc-12.2.0/configure --prefix=3D/opt/devel --disable-libsanitizer --en= able-languages=3Dc,c++ [...] $ make [...] [ -f stage_final ] || echo stage3 > stage_final [...] make[3]: Entering directory '/build/tmp/gcc.FFheiC/gcc-nosanitizer/gcc' /build/tmp/gcc.FFheiC/gcc-nosanitizer/./prev-gcc/xg++ -B/build/tmp/gcc.FFhe= iC/gcc-nosanitizer/./prev-gcc/ -B/opt/devel/i686-pc-linux-musl/bin/ -nostdi= nc++ -B/build/tmp/gcc.FFheiC/gcc-nosanitizer/prev-i686-pc-linux-musl/libstd= c++-v3/src/.libs -B/build/tmp/gcc.FFheiC/gcc-nosanitizer/prev-i686-pc-linux= -musl/libstdc++-v3/libsupc++/.libs -I/build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/include/i686-pc-linux-musl -I/build/= tmp/gcc.FFheiC/gcc-nosanitizer/prev-i686-pc-linux-musl/libstdc++-v3/include= -I/build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/libsupc++ -L/build/tmp/gc= c.FFheiC/gcc-nosanitizer/prev-i686-pc-linux-musl/libstdc++-v3/src/.libs -L/= build/tmp/gcc.FFheiC/gcc-nosanitizer/prev-i686-pc-linux-musl/libstdc++-v3/l= ibsupc++/.libs -no-pie -g -O2 -fno-checking -gtoggle -DIN_GCC -fno-ex= ceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Ww= rite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -p= edantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAV= E_CONFIG_H -static-libstdc++ -static-libgcc -o cc1 c/c-lang.o c-family/stu= b-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-a= ux-info.o c/c-objc-common.o c/c-parser.o c/c-fold.o c/gimple-parser.o c-fam= ily/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.= o c-family/c-gimplify.o c-family/c-indentation.o c-family/c-lex.o c-family/= c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c= -pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-s= pec.o c-family/c-ubsan.o c-family/known-headers.o c-family/c-attribs.o c-fa= mily/c-warn.o c-family/c-spellcheck.o i386-c.o glibc-c.o \ cc1-checksum.o libbackend.a main.o libcommon-target.a libcommon.a ../lib= cpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a = ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnu= mber/libdecnumber.a -lmpc -lmpfr -lgmp -rdynamic -L./../zlib -lz=20 /opt/devel/i686-pc-linux-musl/bin/ld: attribs.o: in function `attr_access::= array_as_string[abi:cxx11](tree_node*) const': attribs.cc:(.text+0x2651): undefined reference to `std::__cxx11::basic_stri= ng, std::allocator >::_M_replace(unsigne= d int, unsigned int, char const*, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: c/c-decl.o: in function `push_parm_de= cl(c_parm const*, tree_node**)': c-decl.cc:(.text+0x16d33): undefined reference to `std::__cxx11::basic_stri= ng, std::allocator >::_M_append(char con= st*, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: c-decl.cc:(.text+0x16d65): undefined = reference to `std::__cxx11::basic_string, std:= :allocator >::_M_replace(unsigned int, unsigned int, char const*, uns= igned int)' /opt/devel/i686-pc-linux-musl/bin/ld: c-decl.cc:(.text+0x16e3e): undefined = reference to `std::__cxx11::basic_string, std:= :allocator >::_M_append(char const*, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: c-decl.cc:(.text+0x16f06): undefined = reference to `std::__cxx11::basic_string, std:= :allocator >::_M_append(char const*, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: c-decl.cc:(.text+0x16f6c): undefined = reference to `std::__cxx11::basic_string, std:= :allocator >::_M_append(char const*, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: c-decl.cc:(.text+0x170c3): undefined = reference to `std::__cxx11::basic_string, std:= :allocator >::_M_mutate(unsigned int, unsigned int, char const*, unsi= gned int)' /opt/devel/i686-pc-linux-musl/bin/ld: c-decl.cc:(.text+0x170ef): undefined = reference to `std::__cxx11::basic_string, std:= :allocator >::_M_replace(unsigned int, unsigned int, char const*, uns= igned int)' /opt/devel/i686-pc-linux-musl/bin/ld: c-decl.cc:(.text+0x1711a): undefined = reference to `std::__cxx11::basic_string, std:= :allocator >::_M_mutate(unsigned int, unsigned int, char const*, unsi= gned int)' /opt/devel/i686-pc-linux-musl/bin/ld: c-decl.cc:(.text+0x1713a): undefined = reference to `std::__cxx11::basic_string, std:= :allocator >::_M_mutate(unsigned int, unsigned int, char const*, unsi= gned int)' /opt/devel/i686-pc-linux-musl/bin/ld: c-decl.cc:(.text+0x17174): undefined = reference to `std::__cxx11::basic_string, std:= :allocator >::_M_mutate(unsigned int, unsigned int, char const*, unsi= gned int)' /opt/devel/i686-pc-linux-musl/bin/ld: c-family/c-attribs.o: in function `ap= pend_access_attr(tree_node**, tree_node*, char const*, char const*, tree_no= de*)': c-attribs.cc:(.text+0x7391): undefined reference to `std::__cxx11::basic_st= ring, std::allocator >::_M_append(char c= onst*, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: c-family/c-attribs.o: in function `bu= ild_attr_access_from_parms(tree_node*, bool)': c-attribs.cc:(.text+0x8143): undefined reference to `std::__cxx11::basic_st= ring, std::allocator >::resize(unsigned = int, char)' /opt/devel/i686-pc-linux-musl/bin/ld: c-attribs.cc:(.text+0x816a): undefine= d reference to `std::__cxx11::basic_string, st= d::allocator >::resize(unsigned int, char)' /opt/devel/i686-pc-linux-musl/bin/ld: c-attribs.cc:(.text+0x83a6): undefine= d reference to `std::__cxx11::basic_string, st= d::allocator >::_M_replace_aux(unsigned int, unsigned int, unsigned i= nt, char)' /opt/devel/i686-pc-linux-musl/bin/ld: c-attribs.cc:(.text+0x8533): undefine= d reference to `std::__cxx11::basic_string, st= d::allocator >::resize(unsigned int, char)' /opt/devel/i686-pc-linux-musl/bin/ld: c-attribs.cc:(.text+0x8558): undefine= d reference to `std::__cxx11::basic_string, st= d::allocator >::resize(unsigned int, char)' /opt/devel/i686-pc-linux-musl/bin/ld: c-attribs.cc:(.text+0x85e7): undefine= d reference to `std::__cxx11::basic_string, st= d::allocator >::_M_mutate(unsigned int, unsigned int, char const*, un= signed int)' /opt/devel/i686-pc-linux-musl/bin/ld: c-attribs.cc:(.text+0x8682): undefine= d reference to `std::__cxx11::basic_string, st= d::allocator >::_M_mutate(unsigned int, unsigned int, char const*, un= signed int)' /opt/devel/i686-pc-linux-musl/bin/ld: gimple-predicate-analysis.o: in funct= ion `format_edge_vecs(vec const*, unsigned int)= ': gimple-predicate-analysis.cc:(.text+0x3fe): undefined reference to `std::__= cxx11::basic_string, std::allocator >::_= M_append(char const*, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: gimple-predicate-analysis.cc:(.text+0= x526): undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_append(char const*, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: gimple-predicate-analysis.cc:(.text+0= x554): undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_append(char const*, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: gimple-predicate-analysis.cc:(.text+0= x585): undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_append(char const*, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: gimple-predicate-analysis.cc:(.text+0= x5ac): undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_mutate(unsigned int, unsigned int, = char const*, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: gimple-predicate-analysis.cc:(.text+0= x5cc): undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_mutate(unsigned int, unsigned int, = char const*, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(stdexcept.o): i= n function `std::string::_Rep::_M_dispose(std::allocator const&)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:275= : undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-12.2.0/libs= tdc++-v3/include/bits/cow_string.h:292: undefined reference to `std::string= ::_Rep::_M_destroy(std::allocator const&)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-12.2.0/libs= tdc++-v3/include/bits/cow_string.h:275: undefined reference to `std::string= ::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-12.2.0/libs= tdc++-v3/include/bits/cow_string.h:292: undefined reference to `std::string= ::_Rep::_M_destroy(std::allocator const&)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(stdexcept.o): i= n function `std::string::_Rep::_M_refcopy()': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:304= : undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(stdexcept.o): i= n function `std::string::_Rep::_M_grab(std::allocator const&, std::al= locator const&)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:264= : undefined reference to `std::string::_Rep::_M_clone(std::allocator = const&, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(stdexcept.o): i= n function `std::string::_Rep::_M_refcopy()': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:304= : undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(stdexcept.o): i= n function `std::string::_Rep::_M_grab(std::allocator const&, std::al= locator const&)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:264= : undefined reference to `std::string::_Rep::_M_clone(std::allocator = const&, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::_Rep::_M_dispose(std::allocator const&)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:275= : undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-12.2.0/libs= tdc++-v3/include/bits/cow_string.h:292: undefined reference to `std::string= ::_Rep::_M_destroy(std::allocator const&)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::_Rep::_M_refcopy()': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:304= : undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::_Rep::_M_grab(std::allocator const&, std= ::allocator const&)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:264= : undefined reference to `std::string::_Rep::_M_clone(std::allocator = const&, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::operator=3D(std::string const&)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:726= : undefined reference to `std::string::assign(std::string const&)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::_M_data(char*)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:340= : undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::operator=3D(std::string&&)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:763= : undefined reference to `std::string::swap(std::string&)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::_Rep::_M_refcopy()': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:304= : undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::_Rep::_M_grab(std::allocator const&, std= ::allocator const&)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:264= : undefined reference to `std::string::_Rep::_M_clone(std::allocator = const&, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::runtime_error::operator=3D(std::runtime_error const&)': /build/tmp/gcc.FFheiC/gcc-nosanitizer/i686-pc-linux-musl/libstdc++-v3/src/c= ++11/../../../../../gcc-12.2.0/libstdc++-v3/src/c++11/cow-stdexcept.cc:76: = undefined reference to `std::string::assign(std::string const&)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::_M_data(char*)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:340= : undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::runtime_error::operator=3D(std::runtime_error&&)': /build/tmp/gcc.FFheiC/gcc-nosanitizer/i686-pc-linux-musl/libstdc++-v3/src/c= ++11/../../../../../gcc-12.2.0/libstdc++-v3/src/c++11/cow-stdexcept.cc:82: = undefined reference to `std::string::swap(std::string&)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `char* std::string::_S_construct(char const*, c= har const*, std::allocator const&, std::forward_iterator_tag)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:308= 7: undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-12.2.0/libs= tdc++-v3/include/bits/cow_string.h:3096: undefined reference to `std::strin= g::_Rep::_S_create(unsigned int, unsigned int, std::allocator const&)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::_Rep::_M_set_length_and_sharable(unsigned int)= ': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:245= : undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `char* std::string::_S_construct(char const*, c= har const*, std::allocator const&, std::forward_iterator_tag)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:308= 7: undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-12.2.0/libs= tdc++-v3/include/bits/cow_string.h:3096: undefined reference to `std::strin= g::_Rep::_S_create(unsigned int, unsigned int, std::allocator const&)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::_Rep::_M_set_length_and_sharable(unsigned int)= ': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:245= : undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::_Alloc_hider::_Alloc_hider(char*, std::allocat= or const&)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:318= : undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::_Rep::_M_refcopy()': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:304= : undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::_Rep::_M_grab(std::allocator const&, std= ::allocator const&)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:264= : undefined reference to `std::string::_Rep::_M_clone(std::allocator = const&, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `char* std::string::_S_construct(char const*, c= har const*, std::allocator const&, std::forward_iterator_tag)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:309= 6: undefined reference to `std::string::_Rep::_S_create(unsigned int, unsig= ned int, std::allocator const&)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::_Rep::_M_set_length_and_sharable(unsigned int)= ': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:245= : undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `char* std::string::_S_construct(char const*, c= har const*, std::allocator const&, std::forward_iterator_tag)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:308= 7: undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::_Rep::_M_refcopy()': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:304= : undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::_Rep::_M_grab(std::allocator const&, std= ::allocator const&)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:264= : undefined reference to `std::string::_Rep::_M_clone(std::allocator = const&, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::operator=3D(std::string const&)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:726= : undefined reference to `std::string::assign(std::string const&)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::_Rep::_M_dispose(std::allocator const&)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:275= : undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-12.2.0/libs= tdc++-v3/include/bits/cow_string.h:292: undefined reference to `std::string= ::_Rep::_M_destroy(std::allocator const&)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::_M_data(char*)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:340= : undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::operator=3D(std::string&&)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:763= : undefined reference to `std::string::swap(std::string&)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::_V2::error_category::_M_message(int) const': (.text.unlikely._ZNKSt3_V214error_category10_M_messageEi+0x9): undefined re= ference to `std::basic_string, std::allocator<= char> >::~basic_string()' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(cow-stdexcept.o= ): in function `std::string::_Rep::_M_dispose(std::allocator const&)': /build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:275= : undefined reference to `std::string::_Rep::_S_empty_rep_storage' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-12.2.0/libs= tdc++-v3/include/bits/cow_string.h:292: undefined reference to `std::string= ::_Rep::_M_destroy(std::allocator const&)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(sso_string.o): = in function `void std::__cxx11::basic_string, = std::allocator >::_M_construct(char*, char*, std::forward_iter= ator_tag)': /build/tmp/gcc.FFheiC/gcc-nosanitizer/i686-pc-linux-musl/libstdc++-v3/inclu= de/bits/basic_string.tcc:225: undefined reference to `std::__cxx11::basic_s= tring, std::allocator >::_M_create(unsig= ned int&, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(sso_string.o): = in function `void std::__cxx11::basic_string, = std::allocator >::_M_construct(char const*, char const*,= std::forward_iterator_tag)': /build/tmp/gcc.FFheiC/gcc-nosanitizer/i686-pc-linux-musl/libstdc++-v3/inclu= de/bits/basic_string.tcc:225: undefined reference to `std::__cxx11::basic_s= tring, std::allocator >::_M_create(unsig= ned int&, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(sso_string.o): = in function `void std::__cxx11::basic_string, = std::allocator >::_M_construct(char*, char*, std::forward_iter= ator_tag)': /build/tmp/gcc.FFheiC/gcc-nosanitizer/i686-pc-linux-musl/libstdc++-v3/inclu= de/bits/basic_string.tcc:225: undefined reference to `std::__cxx11::basic_s= tring, std::allocator >::_M_create(unsig= ned int&, unsigned int)' /opt/devel/i686-pc-linux-musl/bin/ld: /build/tmp/gcc.FFheiC/gcc-nosanitizer= /prev-i686-pc-linux-musl/libstdc++-v3/src/.libs/libstdc++.a(sso_string.o): = in function `std::__cxx11::basic_string, std::= allocator >::assign(std::__cxx11::basic_string, std::allocator > const&)': /build/tmp/gcc.FFheiC/gcc-nosanitizer/i686-pc-linux-musl/libstdc++-v3/inclu= de/bits/basic_string.h:1571: undefined reference to `std::__cxx11::basic_st= ring, std::allocator >::_M_assign(std::_= _cxx11::basic_string, std::allocator > c= onst&)' collect2: error: ld returned 1 exit status make[3]: *** [../../gcc-12.2.0/gcc/c/Make-lang.in:87: cc1] Error 1 make[3]: Leaving directory '/build/tmp/gcc.FFheiC/gcc-nosanitizer/gcc' make[2]: *** [Makefile:5002: all-stage2-gcc] Error 2 make[2]: Leaving directory '/build/tmp/gcc.FFheiC/gcc-nosanitizer' make[1]: *** [Makefile:25542: stage2-bubble] Error 2 make[1]: Leaving directory '/build/tmp/gcc.FFheiC/gcc-nosanitizer' make: *** [Makefile:1071: all] Error 2