https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109231

--- Comment #18 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> ---
> --- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> So, after installing gcc 11 I've tried
[...]
> Undefined                       first referenced
>  symbol                             in file
> _ZSt28__throw_bad_array_new_lengthv libbackend.a(auto-profile.o)
> ld: fatal: symbol referencing errors
> collect2: error: ld returned 1 exit status
> gmake[3]: *** [../../gcc/lto/Make-lang.in:96: lto1] Error 1
> Strangely, /export/home/jakub/gcc-11-inst/lib/gcc/sparc*/11*/ directory only
> contains *.a libraries and no *.so symlinks, I've linked there 
> ../../../lib*.so
> but it still fails with that.  Is that because the various --with-*=/opt/csw
> options added

Those only exist in $prefix/lib.

> -L/opt/csw/lib and that directory contains the oldish libstdc++.a?

When I tried building on gcc211 a long time ago, I had so many problems
with the stuff in /opt/csw that I completely ignored it.  I can't help
but feel that many issues with that system are admin-made and
unnecessary.

> Do I need to use CC='gcc -L/export/home/jakub/gcc-11-inst/lib
> -R/export/home/jakub/gcc-11-inst/lib/' CXX='g++
> -L/export/home/jakub/gcc-11-inst/lib -R/export/home/jakub/gcc-11-inst/lib/' as
> workaround?

Instead, I've build my own copies of gmp/mpfr/mpc in ~ro/gcc with ABI=32
--disable-shared to avoid RPATH issues.

I had no need for special -L/-R switches this way.  The 2020 build tree
is still in ~ro/gcc/obj/master.

Reply via email to