public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libffi/97166] New: libffi build issue when compiling with -mcpu=power10
@ 2020-09-22 17:53 bergner at gcc dot gnu.org
  2020-09-22 18:44 ` [Bug libffi/97166] " bergner at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bergner at gcc dot gnu.org @ 2020-09-22 17:53 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97166
           Summary: libffi build issue when compiling with -mcpu=power10
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libffi
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bergner at gcc dot gnu.org
  Target Milestone: ---

When building libffi with -mcpu=power10, we're seeing the following linker
error.

libtool: link: gcc -shared  -fPIC -DPIC  src/.libs/prep_cif.o src/.libs/types.o
src/.libs/raw_api.o src/.libs/java_raw_api.o src/.libs/closures.o
src/powerpc/.libs/ffi.o src/powerpc/.libs/ffi_sysv.o
src/powerpc/.libs/ffi_linux64.o src/powerpc/.libs/sysv.o
src/powerpc/.libs/ppc_closure.o src/powerpc/.libs/linux64.o
src/powerpc/.libs/linux64_closure.o    -O3 -mcpu=power10 -Wl,--version-script
-Wl,libffi.map   -Wl,-soname -Wl,libffi.so.8 -o .libs/libffi.so.8.1.0
src/powerpc/.libs/linux64.o: in function `ffi_call_LINUX64':
(.text+0x40): call to `ffi_prep_args64' lacks nop, can't restore toc; (toc
save/adjust stub)
/home/bergner/gcc/install/gcc-fsf-mainline-power10/bin/ld: final link failed:
bad value
collect2: error: ld returned 1 exit status
Makefile:1028: recipe for target 'libffi.la' failed

This ends up being a bug in some POWER specific libffi asm code that doesn't
know about our new to POWER10 PCREL support.  This bugzilla is to track syncing
the fix to libffi into GCC version of libffi, which is being tracked upstream
here:

  https://github.com/libffi/libffi/pull/584

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

end of thread, other threads:[~2020-09-24 14:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-22 17:53 [Bug libffi/97166] New: libffi build issue when compiling with -mcpu=power10 bergner at gcc dot gnu.org
2020-09-22 18:44 ` [Bug libffi/97166] " bergner at gcc dot gnu.org
2020-09-24  8:02 ` amodra at gmail dot com
2020-09-24 14:01 ` cvs-commit at gcc dot gnu.org
2020-09-24 14:01 ` cvs-commit at gcc dot gnu.org
2020-09-24 14:21 ` amodra 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).