Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713596 - =dev-libs/libffi-3.3-r1 fails to compile on ppc64
Summary: =dev-libs/libffi-3.3-r1 fails to compile on ppc64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 709424
  Show dependency tree
 
Reported: 2020-03-20 13:19 UTC by Agostino Sarubbo
Modified: 2020-03-29 14:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
748653850.log (748653850.log,26.89 KB, text/plain)
2020-03-20 13:19 UTC, Agostino Sarubbo
Details
emerge --info (.emergeinfo,5.15 KB, text/plain)
2020-03-20 13:19 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-03-20 13:19:48 UTC
This is an auto-filled bug because dev-libs/libffi fails to compile on ppc64. Feel free to adjust the summary to clarify the exact issue. Attached build log and emerge --info
Comment 1 Agostino Sarubbo gentoo-dev 2020-03-20 13:19:53 UTC
Created attachment 622964 [details]
748653850.log

build log
Comment 2 Agostino Sarubbo gentoo-dev 2020-03-20 13:19:58 UTC
Created attachment 622966 [details]
emerge --info

emerge --info
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2020-03-20 22:16:07 UTC
/var/tmp/portage/dev-libs/libffi-3.3-r1/work/libffi-3.3/src/powerpc/ffi_linux64.c: In function ‘ffi_prep_args64’:
/var/tmp/portage/dev-libs/libffi-3.3-r1/work/libffi-3.3/src/powerpc/ffi_linux64.c:550:34: error: assignment to expression with array type
  550 |                 *vec_base.f128++ = **p_argv.f128;
      |                                  ^
/var/tmp/portage/dev-libs/libffi-3.3-r1/work/libffi-3.3/src/powerpc/ffi_linux64.c:552:32: error: assignment to expression with array type
  552 |                 *next_arg.f128 = **p_argv.f128;
      |                                ^
make[2]: *** [Makefile:1278: src/powerpc/ffi_linux64.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/dev-libs/libffi-3.3-r1/work/libffi-3.3-.ppc64'
make[1]: *** [Makefile:1347: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-libs/libffi-3.3-r1/work/libffi-3.3-.ppc64'
make: *** [Makefile:622: all] Error 2
 * ERROR: dev-libs/libffi-3.3-r1::gentoo failed (compile phase):
 *   emake failed

Might be related to libffi-3.3-power7.patch we apply. I had an impression I tested it on ppc64 though.
Comment 4 Larry the Git Cow gentoo-dev 2020-03-29 14:06:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84408e5274c751b6c52d06850449821acf355e87

commit 84408e5274c751b6c52d06850449821acf355e87
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-03-29 14:06:02 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-03-29 14:06:10 +0000

    dev-libs/libffi: fix ppc64 build, bug 713596
    
    Backport fixes for older power targets without explicit __int128 support.
    
    Reported-by: Agostino Sarubbo
    Closes: https://bugs.gentoo.org/713596
    Package-Manager: Portage-2.3.96, Repoman-2.3.22
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 .../libffi/files/libffi-3.3-power7-memcpy-2.patch  | 28 +++++++++++++++
 .../libffi/files/libffi-3.3-power7-memcpy.patch    | 42 ++++++++++++++++++++++
 dev-libs/libffi/libffi-3.3-r1.ebuild               |  2 ++
 3 files changed, 72 insertions(+)