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?

Reply via email to