public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "570070308 at qq dot com" <gcc-bugzilla@gcc.gnu.org> 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 [thread overview] Message-ID: <bug-96240-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96240 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=48892&action=edit The full log file Successfully build gcc-11-20200705 and gcc-11-20200712 without --disable-shared 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=c,ada,c++,go,brig,d,fortran,objc,obj-c++,lto --prefix=/home/ig/temp2 --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- (--disable-shared or --enabled-shared) --enable-linker-build-id --without-included-gettext --enable-threads=posix --enable-nls --enable-clocale=gnu --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none,amdgcn-amdhsa,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_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_runtime.o): relocation R_X86_64_PC32 against symbol `_ZTISt8bad_cast' can not be used when 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.
next reply other threads:[~2020-07-19 10:22 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-07-19 10:22 570070308 at qq dot com [this message] 2022-01-09 17:26 ` [Bug libcc1/96240] " tromey at gcc dot gnu.org 2022-01-09 17:27 ` [Bug libstdc++/96240] " tromey at gcc dot gnu.org 2022-01-09 17:32 ` [Bug bootstrap/96240] " pinskia at gcc dot gnu.org 2022-01-09 17:42 ` tromey at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-96240-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).