public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/95811] New: configure fails when crossing to x86_64: checking for CET support...configure: error: cannot run test program while cross compiling
@ 2020-06-22  8:30 slyfox at inbox dot ru
  2020-06-22  8:50 ` [Bug other/95811] " slyfox at inbox dot ru
  0 siblings, 1 reply; 2+ messages in thread
From: slyfox at inbox dot ru @ 2020-06-22  8:30 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95811
           Summary: configure fails when crossing to x86_64: checking for
                    CET support...configure: error: cannot run test
                    program while cross compiling
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: slyfox at inbox dot ru
                CC: hjl.tools at gmail dot com
  Target Milestone: ---

Initially reported by Aisha Tammy as https://bugs.gentoo.org/729074.

There attempt to cross-compile x86_64 to x86_64 with slightly different
tollchain prefix (to unshare defaults) fails as:

"""
$ .../configure --host=x86_64-UNREG-linux-gnu --target=x86_64-UNREG-linux-gnu
--build=x86_64-pc-linux-gnu ...

checking for CET support... configure: error: in
`/tmp/portage-tmpdir/portage/sys-devel/gcc-10.1.0-r1/work/build/libiberty':
configure: error: cannot run test program while cross compiling
See `config.log' for more details
make[1]: *** [Makefile:7996: configure-libiberty] Error 1
"""

Passing --disable-cet explicitly allows passing the condition. Should
AC_TRY_RUN default to --disable-cet automatically?

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

* [Bug other/95811] configure fails when crossing to x86_64: checking for CET support...configure: error: cannot run test program while cross compiling
  2020-06-22  8:30 [Bug other/95811] New: configure fails when crossing to x86_64: checking for CET support...configure: error: cannot run test program while cross compiling slyfox at inbox dot ru
@ 2020-06-22  8:50 ` slyfox at inbox dot ru
  0 siblings, 0 replies; 2+ 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=95811

Sergei Trofimovich <slyfox at inbox dot ru> changed:

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

--- Comment #1 from Sergei Trofimovich <slyfox at inbox dot ru> ---
Was probably fixed in
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=d17cdc17c90ce77cb90c569322c1f241d3530cec

which added cross_compiling case. My apologies for the noise.

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

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-22  8:30 [Bug other/95811] New: configure fails when crossing to x86_64: checking for CET support...configure: error: cannot run test program while cross compiling slyfox at inbox dot ru
2020-06-22  8:50 ` [Bug other/95811] " slyfox at inbox dot ru

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