From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D07F63858D34; Sun, 19 Jul 2020 10:22:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D07F63858D34 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1595154125; bh=ksL3W/lxaT8Vz0RtqRtvr1eX0KSWlJb93PBv1Ad5ygs=; h=From:To:Subject:Date:From; b=buqW+lYxW/iAMjp3ri1fcQJFSsp8sslYrW21jXV/skCy3YFLWPmAOTOon9S9S6Ms1 QHz36Fj/1cWcwPxg/6/yuJxK8dJbc/nrIyIH2UmZbPnQjPROPFXU2vqDfmCG7ABTfv D+UTOQL+JPXPJxtPVbr2tpjt/s81Zp36uY2WxI78= From: "570070308 at qq dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/96240] New: Error in building gcc-11 with --disable-shared Date: Sun, 19 Jul 2020 10:22:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: 570070308 at qq dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.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 attachments.created 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jul 2020 10:22:05 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96240 Bug ID: 96240 Summary: Error in building gcc-11 with --disable-shared Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: 570070308 at qq dot com Target Milestone: --- Created attachment 48892 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D48892&action=3Dedit The full log file Successfully build gcc-11-20200705 and gcc-11-20200712 without --disable-sh= ared or with --enabled-shared. Failed to build gcc-11-20200705 and gcc-11-20200712 with --disable-shared. My system is Ubuntu 20.10. Host gcc is gcc9.3 . The configure command is: ../gcc-11-20200712/configure -v --enable-languages=3Dc,ada,c++,go,brig,d,fortran,objc,obj-c++,lto --prefix=3D/home/ig/temp2 --with-gcc-major-version-only --program-suffix=3D= -11 --program-prefix=3Dx86_64-linux-gnu- (--disable-shared or --enabled-shared) --enable-linker-build-id --without-included-gettext --enable-threads=3Dposix --enable-nls --enable-clocale=3Dgnu --enable-libstdcxx-time=3Dyes --with-default-libstdcxx-abi=3Dnew --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-= zlib --enable-libphobos-checking=3Drelease --with-target-system-zlib=3Dauto --enable-objc-gc=3Dauto --enable-multiarch --disable-werror --with-arch-32= =3Di686 --with-abi=3Dm64 --with-multilib-list=3Dm32,m64,mx32 --enable-multilib --with-tune=3Dgeneric --enable-offload-targets=3Dnvptx-none,amdgcn-amdhsa,h= sa --without-cuda-driver --enable-checking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64-linux-gnu --target=3Dx86_64-linux-gnu Part of the error log: /usr/bin/x86_64-linux-gnu-ld: /home/ig/temp/x86_64-linux-gnu/libstdc++-v3/src/.libs/libstdc++.a(eh_aux_ru= ntime.o): relocation R_X86_64_PC32 against symbol `_ZTISt8bad_cast' can not be used w= hen making a shared object; recompile with -fPIC /usr/bin/x86_64-linux-gnu-ld: final link failed: bad value make[9]: Nothing to be done for 'all'. make[9]: Leaving directory '/home/ig/temp/x86_64-linux-gnu/32/libstdc++-v3/src/c++11' Making all in c++17 collect2: error: ld returned 1 exit status make[3]: *** [Makefile:561: libcc1.la] Error 1 The full error log see the attachment I uploaded.=