public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/94998] New: GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET
@ 2020-05-08  8:40 harald at gigawatt dot nl
  2020-05-08  8:44 ` [Bug target/94998] " harald at gigawatt dot nl
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: harald at gigawatt dot nl @ 2020-05-08  8:40 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94998
           Summary: GCC 10 won't configure for host=x86, build!=host,
                    linker=bfd due to CET
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: harald at gigawatt dot nl
  Target Milestone: ---

Configuring libiberty fails when gcc is configured as

  ../gcc-10.1.0/configure --build=x86_64-forcecross-linux-gnu
--host=x86_64-pc-linux-gnu --enable-languages=c,c++ CC='gcc-10.1.0
-fuse-ld=bfd' CXX='g++-10.1.0 -fuse-ld=bfd'

(This is a shorter simplified configure line to make it easier to reproduce the
problem, not the one I was originally using. Please ignore the fact that it's
weird to trick the configure script into thinking it's cross-compiling when
it's not.)

It fails like so:

[...]
checking for CET support... configure: error: in
`/h/gcc-10.1.0-build/libiberty':
configure: error: cannot run test program while cross compiling
See `config.log' for more details
make[1]: *** [Makefile:7986: configure-libiberty] Error 1
make[1]: Leaving directory '/h/gcc-10.1.0-build'
make: *** [Makefile:955: all] Error 2

It works with gold because the linker options '-Wl,-z,ibt,-z,shstk' are not
accepted by gold (at least in binutils 2.34), so it never gets to the point
where it tries to run the test program.

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

* [Bug target/94998] GCC 10 won't configure for host=x86, build!=host,  linker=bfd due to CET
  2020-05-08  8:40 [Bug bootstrap/94998] New: GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET harald at gigawatt dot nl
@ 2020-05-08  8:44 ` harald at gigawatt dot nl
  2020-05-08 11:17 ` hjl.tools at gmail dot com
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: harald at gigawatt dot nl @ 2020-05-08  8:44 UTC (permalink / raw)
  To: gcc-bugs

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

Harald van Dijk <harald at gigawatt dot nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|bootstrap                   |target

--- Comment #1 from Harald van Dijk <harald at gigawatt dot nl> ---
(The bootstrap component is probably wrong if this only shows up in cross
compilations.)

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

* [Bug target/94998] GCC 10 won't configure for host=x86, build!=host,  linker=bfd due to CET
  2020-05-08  8:40 [Bug bootstrap/94998] New: GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET harald at gigawatt dot nl
  2020-05-08  8:44 ` [Bug target/94998] " harald at gigawatt dot nl
@ 2020-05-08 11:17 ` hjl.tools at gmail dot com
  2020-05-08 11:28 ` [Bug bootstrap/94998] " rguenth at gcc dot gnu.org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: hjl.tools at gmail dot com @ 2020-05-08 11:17 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |10.2
   Last reconfirmed|                            |2020-05-08
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |WAITING
           Assignee|unassigned at gcc dot gnu.org      |hjl.tools at gmail dot com

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

* [Bug bootstrap/94998] GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET
  2020-05-08  8:40 [Bug bootstrap/94998] New: GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET harald at gigawatt dot nl
  2020-05-08  8:44 ` [Bug target/94998] " harald at gigawatt dot nl
  2020-05-08 11:17 ` hjl.tools at gmail dot com
@ 2020-05-08 11:28 ` rguenth at gcc dot gnu.org
  2020-05-08 13:11 ` hjl.tools at gmail dot com
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-05-08 11:28 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
          Component|target                      |bootstrap
               Host|                            |x86_64-linux

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Ugh.

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

* [Bug bootstrap/94998] GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET
  2020-05-08  8:40 [Bug bootstrap/94998] New: GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET harald at gigawatt dot nl
                   ` (2 preceding siblings ...)
  2020-05-08 11:28 ` [Bug bootstrap/94998] " rguenth at gcc dot gnu.org
@ 2020-05-08 13:11 ` hjl.tools at gmail dot com
  2020-05-08 17:02 ` harald at gigawatt dot nl
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: hjl.tools at gmail dot com @ 2020-05-08 13:11 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                URL|                            |https://gcc.gnu.org/piperma
                   |                            |il/gcc-patches/2020-May/545
                   |                            |392.html

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
A patch is posted at

https://gcc.gnu.org/pipermail/gcc-patches/2020-May/545392.html

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

* [Bug bootstrap/94998] GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET
  2020-05-08  8:40 [Bug bootstrap/94998] New: GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET harald at gigawatt dot nl
                   ` (3 preceding siblings ...)
  2020-05-08 13:11 ` hjl.tools at gmail dot com
@ 2020-05-08 17:02 ` harald at gigawatt dot nl
  2020-05-12 17:42 ` cvs-commit at gcc dot gnu.org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: harald at gigawatt dot nl @ 2020-05-08 17:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Harald van Dijk <harald at gigawatt dot nl> ---
Just confirming that that patch works for me, thanks.

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

* [Bug bootstrap/94998] GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET
  2020-05-08  8:40 [Bug bootstrap/94998] New: GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET harald at gigawatt dot nl
                   ` (4 preceding siblings ...)
  2020-05-08 17:02 ` harald at gigawatt dot nl
@ 2020-05-12 17:42 ` cvs-commit at gcc dot gnu.org
  2020-05-12 17:50 ` hjl.tools at gmail dot com
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-05-12 17:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:

https://gcc.gnu.org/g:d17cdc17c90ce77cb90c569322c1f241d3530cec

commit r11-333-gd17cdc17c90ce77cb90c569322c1f241d3530cec
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue May 12 10:39:42 2020 -0700

    Enable CET in cross compiler if possible

    Don't perform CET run-time check for host when cross compiling.  Instead,
    enable CET in cross compiler if possible so that it will run on both CET
    and non-CET hosts.

    config/

            PR bootstrap/94998
            * cet.m4 (GCC_CET_HOST_FLAGS): Enable CET in cross compiler if
            possible.

    libiberty/

            PR bootstrap/94998
            * configure: Regenerated.

    lto-plugin/

            PR bootstrap/94998
            * configure: Regenerated.

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

* [Bug bootstrap/94998] GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET
  2020-05-08  8:40 [Bug bootstrap/94998] New: GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET harald at gigawatt dot nl
                   ` (5 preceding siblings ...)
  2020-05-12 17:42 ` cvs-commit at gcc dot gnu.org
@ 2020-05-12 17:50 ` hjl.tools at gmail dot com
  2020-06-22  8:50 ` slyfox at inbox dot ru
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: hjl.tools at gmail dot com @ 2020-05-12 17:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed on master branch so far.

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

* [Bug bootstrap/94998] GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET
  2020-05-08  8:40 [Bug bootstrap/94998] New: GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET harald at gigawatt dot nl
                   ` (6 preceding siblings ...)
  2020-05-12 17:50 ` hjl.tools at gmail dot com
@ 2020-06-22  8:50 ` slyfox at inbox dot ru
  2020-06-22  8:55 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: slyfox at inbox dot ru @ 2020-06-22  8:50 UTC (permalink / raw)
  To: gcc-bugs

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

Sergei Trofimovich <slyfox at inbox dot ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |slyfox at inbox dot ru

--- Comment #7 from Sergei Trofimovich <slyfox at inbox dot ru> ---
*** Bug 95811 has been marked as a duplicate of this bug. ***

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

* [Bug bootstrap/94998] GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET
  2020-05-08  8:40 [Bug bootstrap/94998] New: GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET harald at gigawatt dot nl
                   ` (7 preceding siblings ...)
  2020-06-22  8:50 ` slyfox at inbox dot ru
@ 2020-06-22  8:55 ` rguenth at gcc dot gnu.org
  2020-06-22 12:09 ` [Bug bootstrap/94998] [10 Regression] " cvs-commit at gcc dot gnu.org
  2020-06-22 12:10 ` hjl.tools at gmail dot com
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-06-22  8:55 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
HJ, can you please backport?

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

* [Bug bootstrap/94998] [10 Regression] GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET
  2020-05-08  8:40 [Bug bootstrap/94998] New: GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET harald at gigawatt dot nl
                   ` (8 preceding siblings ...)
  2020-06-22  8:55 ` rguenth at gcc dot gnu.org
@ 2020-06-22 12:09 ` cvs-commit at gcc dot gnu.org
  2020-06-22 12:10 ` hjl.tools at gmail dot com
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-06-22 12:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:

https://gcc.gnu.org/g:2c7ae01349f779f1d4e66d8831052ee59f9c948b

commit r10-8336-g2c7ae01349f779f1d4e66d8831052ee59f9c948b
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue May 12 10:39:42 2020 -0700

    Enable CET in cross compiler if possible

    Don't perform CET run-time check for host when cross compiling.  Instead,
    enable CET in cross compiler if possible so that it will run on both CET
    and non-CET hosts.

    config/

            PR bootstrap/94998
            * cet.m4 (GCC_CET_HOST_FLAGS): Enable CET in cross compiler if
            possible.

    libiberty/

            PR bootstrap/94998
            * configure: Regenerated.

    lto-plugin/

            PR bootstrap/94998
            * configure: Regenerated.

    (cherry picked from commit d17cdc17c90ce77cb90c569322c1f241d3530cec)

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

* [Bug bootstrap/94998] [10 Regression] GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET
  2020-05-08  8:40 [Bug bootstrap/94998] New: GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET harald at gigawatt dot nl
                   ` (9 preceding siblings ...)
  2020-06-22 12:09 ` [Bug bootstrap/94998] [10 Regression] " cvs-commit at gcc dot gnu.org
@ 2020-06-22 12:10 ` hjl.tools at gmail dot com
  10 siblings, 0 replies; 12+ messages in thread
From: hjl.tools at gmail dot com @ 2020-06-22 12:10 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed for GCC 11 and GCC 10.2.

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

end of thread, other threads:[~2020-06-22 12:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-08  8:40 [Bug bootstrap/94998] New: GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET harald at gigawatt dot nl
2020-05-08  8:44 ` [Bug target/94998] " harald at gigawatt dot nl
2020-05-08 11:17 ` hjl.tools at gmail dot com
2020-05-08 11:28 ` [Bug bootstrap/94998] " rguenth at gcc dot gnu.org
2020-05-08 13:11 ` hjl.tools at gmail dot com
2020-05-08 17:02 ` harald at gigawatt dot nl
2020-05-12 17:42 ` cvs-commit at gcc dot gnu.org
2020-05-12 17:50 ` hjl.tools at gmail dot com
2020-06-22  8:50 ` slyfox at inbox dot ru
2020-06-22  8:55 ` rguenth at gcc dot gnu.org
2020-06-22 12:09 ` [Bug bootstrap/94998] [10 Regression] " cvs-commit at gcc dot gnu.org
2020-06-22 12:10 ` hjl.tools at gmail dot com

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