From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 92E57385843D; Wed, 22 Mar 2023 21:31:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 92E57385843D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679520684; bh=14Lhd9wY1N39hxaaX39J+aNm/PFRd9A3WxmY7eEbB20=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Azz74YSt9H5pesdT9zxlJic4b2A/rmwLiZKBvxYW07dNLv70rSeIwC4i97Dp02kCF 33lUz1a62SL2xc8kfaazLAFHy/dgr0OMx34JO6vShJnI3S3TjTjg96hJrbGbTebe73 pyP5FFQ+LMgywnKJkShKZ0VOTGrAz5hpaUrbwBIc= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug d/109231] [13 regression] Comparison failure in libphobos/libdruntime/rt/util/typeinfo.o Date: Wed, 22 Mar 2023 21:31:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: d X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ibuclaw at gdcproject dot org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109231 --- Comment #15 from Jakub Jelinek --- So, after installing gcc 11 I've tried PATH=3D/export/home/jakub/gcc-11-inst/bin:$PATH LD_LIBRARY_PATH=3D/export/home/jakub/gcc-11-inst/lib/ ../configure --prefix=3D/export/home/jakub/gcc-inst --enable-languages=3Dc,c++,d --disable-libssp --disable-libsanitizer --disable-nls --with-gmp=3D/opt/csw --with-ld=3D/usr/ccs/bin/ld --without-gnu-ld --with-as=3D/opt/csw/bin/gas --with-gnu-as --with-libiconv-prefix=3D/opt/csw --with-mpfr=3D/opt/csw --enable-libphobos --disable-multilib --enable-obsolete PATH=3D/export/home/jakub/gcc-11-inst/bin:$PATH LD_LIBRARY_PATH=3D/export/home/jakub/gcc-11-inst/lib/ gmake -j16 > LOG 2>&1 but that failed miserably during stage1: g++ -std=3Dc++11 -no-pie -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -o lto1 lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o lto/lto-partition.o lto/lto-symtab.o lto/lto-common.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a -lisl -L/opt/csw/lib -L/opt/csw/lib -lmpc -l= mpfr -lgmp -L./../zlib -lz libcommon.a ../libcpp/libcpp.a=20 /opt/csw/lib/libiconv.so -R/opt/csw/lib ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a 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-*=3D/opt/= csw options added -L/opt/csw/lib and that directory contains the oldish libstdc++.a? Do I need to use CC=3D'gcc -L/export/home/jakub/gcc-11-inst/lib -R/export/home/jakub/gcc-11-inst/lib/' CXX=3D'g++ -L/export/home/jakub/gcc-11-inst/lib -R/export/home/jakub/gcc-11-inst/lib/'= as workaround?=