public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/96240] New: Error in building gcc-11 with --disable-shared
@ 2020-07-19 10:22 570070308 at qq dot com
  2022-01-09 17:26 ` [Bug libcc1/96240] " tromey at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: 570070308 at qq dot com @ 2020-07-19 10:22 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libcc1/96240] Error in building gcc-11 with --disable-shared
  2020-07-19 10:22 [Bug libstdc++/96240] New: Error in building gcc-11 with --disable-shared 570070308 at qq dot com
@ 2022-01-09 17:26 ` tromey at gcc dot gnu.org
  2022-01-09 17:27 ` [Bug libstdc++/96240] " tromey at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at gcc dot gnu.org @ 2022-01-09 17:26 UTC (permalink / raw)
  To: gcc-bugs

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

Tom Tromey <tromey at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
                 CC|                            |tromey at gcc dot gnu.org
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Tom Tromey <tromey at gcc dot gnu.org> ---
I think this is a dup.

libcc1 has to be built shared.  Maybe it should automatically
disable itself, I don't know; but otherwise you can --disable-libcc1
if you really want a no-shared build.

*** This bug has been marked as a duplicate of bug 67128 ***

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/96240] Error in building gcc-11 with --disable-shared
  2020-07-19 10:22 [Bug libstdc++/96240] New: Error in building gcc-11 with --disable-shared 570070308 at qq dot com
  2022-01-09 17:26 ` [Bug libcc1/96240] " tromey at gcc dot gnu.org
@ 2022-01-09 17:27 ` 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
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at gcc dot gnu.org @ 2022-01-09 17:27 UTC (permalink / raw)
  To: gcc-bugs

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

Tom Tromey <tromey at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|DUPLICATE                   |---
             Status|RESOLVED                    |UNCONFIRMED
          Component|libcc1                      |libstdc++

--- Comment #2 from Tom Tromey <tromey at gcc dot gnu.org> ---
Sigh.  Un-duping this, I assumed the component was correct.
This isn't about libcc1 at all, it's about libstdc++.
Sorry about that.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug bootstrap/96240] Error in building gcc-11 with --disable-shared
  2020-07-19 10:22 [Bug libstdc++/96240] New: Error in building gcc-11 with --disable-shared 570070308 at qq dot com
  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 ` pinskia at gcc dot gnu.org
  2022-01-09 17:42 ` tromey at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-09 17:32 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libstdc++                   |bootstrap

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Tom Tromey from comment #2)
> Sigh.  Un-duping this, I assumed the component was correct.
> This isn't about libcc1 at all, it's about libstdc++.
> Sorry about that.


Making all in c++17
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:561: libcc1.la]

No it is about libcc1 when --disable-shared is passed. Just it is linking
against libstdc++ where the error is from. It might be a top level option that
needs to similar to libjit.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug bootstrap/96240] Error in building gcc-11 with --disable-shared
  2020-07-19 10:22 [Bug libstdc++/96240] New: Error in building gcc-11 with --disable-shared 570070308 at qq dot com
                   ` (2 preceding siblings ...)
  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
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at gcc dot gnu.org @ 2022-01-09 17:42 UTC (permalink / raw)
  To: gcc-bugs

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

Tom Tromey <tromey at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #4 from Tom Tromey <tromey at gcc dot gnu.org> ---
> No it is about libcc1 when --disable-shared is passed. Just it is linking
> against libstdc++ where the error is from. It might be a top level option
> that needs to similar to libjit.

Alright, in that case it really is a dup.

*** This bug has been marked as a duplicate of bug 67128 ***

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-01-09 17:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-19 10:22 [Bug libstdc++/96240] New: Error in building gcc-11 with --disable-shared 570070308 at qq dot com
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

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).