[Bug bootstrap/94739] GCC won't build on CET enabled Linux OS
tschwinge at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 27 13:53:19 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94739
Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |tschwinge at gcc dot gnu.org
Resolution|FIXED |---
Assignee|unassigned at gcc dot gnu.org |hjl at gcc dot gnu.org
--- Comment #7 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
(In reply to CVS Commits from comment #2)
> commit r10-7961-g8fc8bf801e46d0d478c50bddecf5d8edf9511849
> Author: H.J. Lu <hjl.tools@gmail.com>
> Date: Sat Apr 25 10:06:59 2020 -0700
>
> Enable Intel CET in liblto_plugin.so on Intel CET enabled host
In a GCC configuration on x86_64-pc-linux-gnu (so, x86_64 build/host) but with:
--enable-linker-plugin-flags='CC=gcc\ -m32' \
--enable-linker-plugin-configure-flags=--host=i686-pc-linux-gnu
... so that linker plugins are compiled for use with a x86 32-bit linker
executable, we get:
checking for a BSD-compatible install... /usr/bin/install -c
checking for CET support... configure: error: in
`[...]/build-gcc-offload-nvptx-none/libiberty-linker-plugin':
configure: error: cannot run test program while cross compiling
See `config.log' for more details
Makefile:8440: recipe for target 'configure-libiberty-linker-plugin' failed
I can't speak for Manfred's (different) problem report, but:
(In reply to H.J. Lu from comment #6)
> Created attachment 48383 [details]
> A patch.
>
> Please try this.
This does seem to resolve the particular problem I'm seeing.
More information about the Gcc-bugs
mailing list