Re: GCC 11 with libstdc++-v3 fails to build

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

 



On Mon, 22 Jul 2024 at 14:12, Aleksi Venäläinen via Gcc-help
<gcc-help@xxxxxxxxxxx> wrote:
>
> 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

What is this supposed to do?!

> --with-mysql-lib=/opt/mysql/lib64/mysql --with-mysql-include=/opt/mysql/include/mysql

What is this supposed to do?!

> --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

Why are you doing this?

> --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

Why are you saying where to install C++ headers if you're disabling libstdc++?

>
>
>
> 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.

It's unclear what you're trying to do, and what fails. We can't help
you without more information.

What do you mean by "i still fail"? Was it working with 11.1.0 or not?
Is this a new error with 11.5.0?


>
>
> 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'

I've never seen this error before and don't know why it happens. It
seems related to this line of code:

#ifdef _GLIBCXX_PTRDIFF_T_IS_INT
_GLIBCXX_APPLY_SYMVER(_ZNSi8ignoreXXEi, _ZNSi6ignoreEi)
#else
_GLIBCXX_APPLY_SYMVER(_ZNSi8ignoreXXEl, _ZNSi6ignoreEl)
#endif

If this is going wrong, it suggests PTRDIFF_T_IS_INT is wrong, which
suggests some problem in your configuration.

Are you messing with the c++config.h header during the build?




[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