From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9775F385840A; Mon, 7 Nov 2022 13:01:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9775F385840A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667826068; bh=L4D5I2bdxWN0/T0X9Q6KHx77o3X+xZ4TqIeGZtQzNhQ=; h=From:To:Subject:Date:From; b=q9w1eyscIFzKGsLOAGACyz+Bg7V5yS9IJyIQYjJs5SYO/x3VwNoMS/TGtHcXZW+8D umMTS901FeC8qNV/9nVdY5UY+KDsSOFcFJOgrL2i+LUF7ejBAxMP+AFbhUuu3h3agV 7BSZw9CGteieHOlXW/H3ABbd3fsAZMHEwYFKk9jc= From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug d/107552] New: [13 regression] stage 1 d21 fails to link on Linux/x86_64 Date: Mon, 07 Nov 2022 13:01:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: d X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget cf_gccbuild Message-ID: 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=3D107552 Bug ID: 107552 Summary: [13 regression] stage 1 d21 fails to link on Linux/x86_64 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ro at gcc dot gnu.org Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Build: x86_64-pc-linux-gnu I've long been bootstrapping trunk with GCC 9.3.0. However, between 202210= 28 (11e811d8e2f63667f60f73731bb934273f5882b8) and 20221104 (e724b0480bfa5ec04f39be8c7290330b495c59de), bootstrap broke linking stage 1 d21: /vol/gcc/bin/gld-2.35: d/typesem.o:(.data+0x180): multiple definition of `___s.24340'; d/statementsem.o:(.data+0x260): first defined here collect2: error: ld returned 1 exit status make: *** [/vol/gcc/src/hg/master/local/gcc/d/Make-lang.in:234: d21] Error 1 I've tried with GCC 11.1.0: while the stage 1 d21 links this way, the resul= ting gdc/d21 fails to run because d21 is linked with libstdc++ dynamically, usin= g a version that's newer than the one bundled with Ubuntu 20.04. Passing throu= gh LD_LIBRARY_PATH is tricky and does cause a couple of testsuite regressions. GCC 12.1.0 does work, and stage 1 d21 is linked statically with libstd++, as expected. However, this means quite massive an increase in build requireme= nts.=