GCC 11 with libstdc++-v3 fails to build

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!


I am using at moment on Linux (6.9.3)

gcc version 13.3.0
glibc 2.39
binutils 2.42


Here is config what builds:


Configured with: ../configure
--enable-languages=c,c++,,fortran,lto
--prefix=/usr
--bindir=/usr/bin
--sbindir=/usr/sbin
--libdir=/usr/lib64
--includedir=/usr/include
--infodir=/usr/info
--mandir=/usr/man
--sysconfdir=/etc
--localstatedir=/var
--disable-debug
--with-libpam --with-pam --enable-libpam --enable-pam
--with-mysql-lib=/opt/mysql/lib64/mysql --with-mysql-include=/opt/mysql/include/mysql
--build=x86_64-t2-linux-gnu --host=x86_64-t2-linux-gnu
--with-arch=haswell
 --enable-__cxa_atexit
--disable-checking
--disable-bootstrap
--disable-libstdcxx-pch
--disable-libstdc++-v3
--with-zstd
--build=x86_64-t2-linux-gnu
--target=x86_64-t2-linux-gnu
--host=x86_64-t2-linux-gnu
--program-suffix=-11
--enable-shared
--enable-threads=posix
--with-isl
--disable-libstdcxx-pch
--disable-libunwind-exceptions
--disable-werror
--enable-version-specific-runtime-libs
--enable-plugin
--enable-install-libiberty
--datadir=/usr/share/gcc11
--with-gxx-include-dir=/usr/include/c++/11.1.0



I upgraded to latest 11.5.0 GCC version to try build it as it was released recently but i still fail and Google nor Bing wont help and AI is too stupid to be any helpful so i am now lost and asking the great mailing list.



The problem itself >>

IF i remove " --disable-libstdc++-v3 " as i would wish i hit this next error (cut as its mostly just same error and warning/note)

If someone suggests  some like LD_PRELOAD ' ' "/usr/lib64/libstdc++.so"
I tried yes too.




../../../../libstdc++-v3/src/c++98/compatibility.cc:392:4: error: 'void {anonymous}::_Y_ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEi(...)' aliased to undefined symbol '_ZNSt13basic_istreamIwSt11char_traitsIwEE8ignoreXXEi'
  392 |    _Y##name(...) \
      |    ^~
../../../../libstdc++-v3/src/c++98/compatibility.cc:403:31: note: in expansion of macro '_GLIBCXX_3_4_5_SYMVER'
  403 | #define _GLIBCXX_APPLY_SYMVER _GLIBCXX_3_4_5_SYMVER
      |                               ^~~~~~~~~~~~~~~~~~~~~
/root/t2trunk/src.gcc-11.240722.051008.1422/gcc-11.5.0/objdir/x86_64-t2-linux-gnu/libstdc++-v3/include/x86_64-t2-linux-gnu/bits/compatibility.h:196:1: note: in expansion of macro '_GLIBCXX_APPLY_SYMVER'
  196 | _GLIBCXX_APPLY_SYMVER(_ZNSt13basic_istreamIwSt11char_traitsIwEE8ignoreXXEi,
      | ^~~~~~~~~~~~~~~~~~~~~
../../../../libstdc++-v3/src/c++98/compatibility.cc:392:4: error: 'void {anonymous}::_Y_ZNSbIwSt11char_traitsIwESaIwEE4_Rep26_M_set_length_and_sharableEj(...)' aliased to undefined symbol '_ZNSbIwSt11char_traitsIwESaIwEE4_Rep28_M_set_length_and_sharableXXEj'
  392 |    _Y##name(...) \
      |    ^~
../../../../libstdc++-v3/src/c++98/compatibility.cc:403:31: note: in expansion of macro '_GLIBCXX_3_4_5_SYMVER'
  403 | #define _GLIBCXX_APPLY_SYMVER _GLIBCXX_3_4_5_SYMVER
      |                               ^~~~~~~~~~~~~~~~~~~~~
/root/t2trunk/src.gcc-11.240722.051008.1422/gcc-11.5.0/objdir/x86_64-t2-linux-gnu/libstdc++-v3/include/x86_64-t2-linux-gnu/bits/compatibility.h:185:1: note: in expansion of macro '_GLIBCXX_APPLY_SYMVER'
  185 | _GLIBCXX_APPLY_SYMVER(_ZNSbIwSt11char_traitsIwESaIwEE4_Rep28_M_set_length_and_sharableXXEj,
      | ^~~~~~~~~~~~~~~~~~~~~
../../../../libstdc++-v3/src/c++98/compatibility.cc:392:4: error: 'void {anonymous}::_Y_ZNKSbIwSt11char_traitsIwESaIwEE15_M_check_lengthEjjPKc(...)' aliased to undefined symbol '_ZNKSbIwSt11char_traitsIwESaIwEE17_M_check_lengthXXEjjPKc'
  392 |    _Y##name(...) \
      |    ^~
../../../../libstdc++-v3/src/c++98/compatibility.cc:403:31: note: in expansion of macro '_GLIBCXX_3_4_5_SYMVER'
  403 | #define _GLIBCXX_APPLY_SYMVER _GLIBCXX_3_4_5_SYMVER
      |                               ^~~~~~~~~~~~~~~~~~~~~
/root/t2trunk/src.gcc-11.240722.051008.1422/gcc-11.5.0/objdir/x86_64-t2-linux-gnu/libstdc++-v3/include/x86_64-t2-linux-gnu/bits/compatibility.h:177:1: note: in expansion of macro '_GLIBCXX_APPLY_SYMVER'
  177 | _GLIBCXX_APPLY_SYMVER(_ZNKSbIwSt11char_traitsIwESaIwEE17_M_check_lengthXXEjjPKc,
      | ^~~~~~~~~~~~~~~~~~~~~
../../../../libstdc++-v3/src/c++98/compatibility.cc:392:4: error: 'void {anonymous}::_Y_ZNSbIwSt11char_traitsIwESaIwEE9_M_assignEPwjw(...)' aliased to undefined symbol '_ZNSbIwSt11char_traitsIwESaIwEE11_M_assignXXEPwjw'
  392 |    _Y##name(...) \
      |    ^~
../../../../libstdc++-v3/src/c++98/compatibility.cc:403:31: note: in expansion of macro '_GLIBCXX_3_4_5_SYMVER'







QUESTION: Why this happends or what i should do?

Thanks and best wishes!




Aleksi Venäläinen




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux