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

            Bug ID: 128808
           Summary: Bi-arch x86_64 build fails with --with-arch-32=i586
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---
            Target: x86_64-*-*

A bi-arch Linux/x86_64 build with --with-arch-32=i586 fails building the 32-bit
libgomp:

libtool: compile: 
/var/gcc/regression/master/7.0.14-gcc-gas-gld/build/./gcc/gfortran
-B/var/gcc/regression/master/7.0.14-gcc-gas-gld/build/./gcc/
-B/var/gcc/x86_64-pc-linux-gnu/bin/ -B/var/gcc/x86_64-pc-linux-gnu/lib/../lib32
-B/var/gcc/x86_64-pc-linux-gnu/lib/ -isystem
/var/gcc/x86_64-pc-linux-gnu/include -isystem
/var/gcc/x86_64-pc-linux-gnu/sys-include -fno-checking -m32 -L. -Wall
-L../libgfortran -fcf-protection -mshstk -m32 -c
/vol/gcc/src/hg/master/local/libgomp/openacc.f90  -fPIC -o .libs/openacc.o
f951: Error: '-fcf-protection' is not compatible with this target

While the 64-bit multilib does support -fcf-protection just fine, the 32-bit
one does not, as correctly detected by configure.  However, the 64-bit value
of CET_FLAGS is passed on to the 32-bit multilib via XCFLAGS, overriding the
correct value.

Reply via email to