* errors building gcc 12.2.0 on musl-libc
@ 2022-08-25 15:58 Mike Glover
0 siblings, 0 replies; only message in thread
From: Mike Glover @ 2022-08-25 15:58 UTC (permalink / raw)
To: gcc-help
Greetings-
I'm having trouble building gcc-12.2.0 on my i686-pc-linux-musl system. Currently
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
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
compatible with musl.
Abbreviated make output is below. Any advice is appreciated.
-mg
$ ../gcc-12.2.0/configure --prefix=/opt/devel --disable-libsanitizer --enable-languages=c,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.FFheiC/gcc-nosanitizer/./prev-gcc/ -B/opt/devel/i686-pc-linux-musl/bin/ -nostdinc++ -B/build/tmp/gcc.FFheiC/gcc-nosanitizer/prev-i686-pc-linux-musl/libstdc++-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/gcc.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/libsupc++/.libs -no-pie -g -O2 -fno-checking -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o c/c-fold.o c/gimple-parser.o c-family/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-spec.o c-family/c-ubsan.o c-family/known-headers.o c-family/c-attribs.o c-family/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 ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lmpc -lmpfr -lgmp -rdynamic -L./../zlib -lz
/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_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned int, unsigned int, char const*, unsigned int)'
/opt/devel/i686-pc-linux-musl/bin/ld: c/c-decl.o: in function `push_parm_decl(c_parm const*, tree_node**)':
c-decl.cc:(.text+0x16d33): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
/opt/devel/i686-pc-linux-musl/bin/ld: c-decl.cc:(.text+0x16d65): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned int, unsigned int, char const*, unsigned int)'
/opt/devel/i686-pc-linux-musl/bin/ld: c-decl.cc:(.text+0x16e3e): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_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<char, std::char_traits<char>, std::allocator<char> >::_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<char, std::char_traits<char>, std::allocator<char> >::_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<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned int, unsigned int, char const*, unsigned int)'
/opt/devel/i686-pc-linux-musl/bin/ld: c-decl.cc:(.text+0x170ef): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned int, unsigned int, char const*, unsigned int)'
/opt/devel/i686-pc-linux-musl/bin/ld: c-decl.cc:(.text+0x1711a): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned int, unsigned int, char const*, unsigned int)'
/opt/devel/i686-pc-linux-musl/bin/ld: c-decl.cc:(.text+0x1713a): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned int, unsigned int, char const*, unsigned int)'
/opt/devel/i686-pc-linux-musl/bin/ld: c-decl.cc:(.text+0x17174): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned int, unsigned int, char const*, unsigned int)'
/opt/devel/i686-pc-linux-musl/bin/ld: c-family/c-attribs.o: in function `append_access_attr(tree_node**, tree_node*, char const*, char const*, tree_node*)':
c-attribs.cc:(.text+0x7391): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
/opt/devel/i686-pc-linux-musl/bin/ld: c-family/c-attribs.o: in function `build_attr_access_from_parms(tree_node*, bool)':
c-attribs.cc:(.text+0x8143): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned int, char)'
/opt/devel/i686-pc-linux-musl/bin/ld: c-attribs.cc:(.text+0x816a): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned int, char)'
/opt/devel/i686-pc-linux-musl/bin/ld: c-attribs.cc:(.text+0x83a6): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace_aux(unsigned int, unsigned int, unsigned int, char)'
/opt/devel/i686-pc-linux-musl/bin/ld: c-attribs.cc:(.text+0x8533): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned int, char)'
/opt/devel/i686-pc-linux-musl/bin/ld: c-attribs.cc:(.text+0x8558): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned int, char)'
/opt/devel/i686-pc-linux-musl/bin/ld: c-attribs.cc:(.text+0x85e7): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned int, unsigned int, char const*, unsigned int)'
/opt/devel/i686-pc-linux-musl/bin/ld: c-attribs.cc:(.text+0x8682): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned int, unsigned int, char const*, unsigned int)'
/opt/devel/i686-pc-linux-musl/bin/ld: gimple-predicate-analysis.o: in function `format_edge_vecs(vec<edge_def*, va_heap, vl_ptr> const*, unsigned int)':
gimple-predicate-analysis.cc:(.text+0x3fe): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
/opt/devel/i686-pc-linux-musl/bin/ld: gimple-predicate-analysis.cc:(.text+0x526): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
/opt/devel/i686-pc-linux-musl/bin/ld: gimple-predicate-analysis.cc:(.text+0x554): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
/opt/devel/i686-pc-linux-musl/bin/ld: gimple-predicate-analysis.cc:(.text+0x585): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned int)'
/opt/devel/i686-pc-linux-musl/bin/ld: gimple-predicate-analysis.cc:(.text+0x5ac): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned int, unsigned int, char const*, unsigned int)'
/opt/devel/i686-pc-linux-musl/bin/ld: gimple-predicate-analysis.cc:(.text+0x5cc): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_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): in function `std::string::_Rep::_M_dispose(std::allocator<char> 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/libstdc++-v3/include/bits/cow_string.h:292: undefined reference to `std::string::_Rep::_M_destroy(std::allocator<char> const&)'
/opt/devel/i686-pc-linux-musl/bin/ld: /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/libstdc++-v3/include/bits/cow_string.h:292: undefined reference to `std::string::_Rep::_M_destroy(std::allocator<char> 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): 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(stdexcept.o): in function `std::string::_Rep::_M_grab(std::allocator<char> const&, std::allocator<char> 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<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): 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(stdexcept.o): in function `std::string::_Rep::_M_grab(std::allocator<char> const&, std::allocator<char> 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<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(cow-stdexcept.o): in function `std::string::_Rep::_M_dispose(std::allocator<char> 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/libstdc++-v3/include/bits/cow_string.h:292: undefined reference to `std::string::_Rep::_M_destroy(std::allocator<char> 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<char> const&, std::allocator<char> 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<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(cow-stdexcept.o): in function `std::string::operator=(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=(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<char> const&, std::allocator<char> 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<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(cow-stdexcept.o): in function `std::runtime_error::operator=(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=(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*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag)':
/build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:3087: 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/libstdc++-v3/include/bits/cow_string.h:3096: undefined reference to `std::string::_Rep::_S_create(unsigned int, unsigned int, std::allocator<char> 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*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag)':
/build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:3087: 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/libstdc++-v3/include/bits/cow_string.h:3096: undefined reference to `std::string::_Rep::_S_create(unsigned int, unsigned int, std::allocator<char> 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::allocator<char> 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<char> const&, std::allocator<char> 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<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(cow-stdexcept.o): in function `char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag)':
/build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:3096: undefined reference to `std::string::_Rep::_S_create(unsigned int, unsigned int, std::allocator<char> 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*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag)':
/build/tmp/gcc.FFheiC/gcc-12.2.0/libstdc++-v3/include/bits/cow_string.h:3087: 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<char> const&, std::allocator<char> 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<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(cow-stdexcept.o): in function `std::string::operator=(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<char> 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/libstdc++-v3/include/bits/cow_string.h:292: undefined reference to `std::string::_Rep::_M_destroy(std::allocator<char> 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=(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 reference to `std::basic_string<char, std::char_traits<char>, 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<char> 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/libstdc++-v3/include/bits/cow_string.h:292: undefined reference to `std::string::_Rep::_M_destroy(std::allocator<char> 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<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag)':
/build/tmp/gcc.FFheiC/gcc-nosanitizer/i686-pc-linux-musl/libstdc++-v3/include/bits/basic_string.tcc:225: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned 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<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char const*>(char const*, char const*, std::forward_iterator_tag)':
/build/tmp/gcc.FFheiC/gcc-nosanitizer/i686-pc-linux-musl/libstdc++-v3/include/bits/basic_string.tcc:225: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned 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<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag)':
/build/tmp/gcc.FFheiC/gcc-nosanitizer/i686-pc-linux-musl/libstdc++-v3/include/bits/basic_string.tcc:225: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned 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<char, std::char_traits<char>, std::allocator<char> >::assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/build/tmp/gcc.FFheiC/gcc-nosanitizer/i686-pc-linux-musl/libstdc++-v3/include/bits/basic_string.h:1571: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-25 15:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-25 15:58 errors building gcc 12.2.0 on musl-libc Mike Glover
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).