Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686930 - games-emulation/pcsx2-1.4.0-r1: cc1 segfault during build
Summary: games-emulation/pcsx2-1.4.0-r1: cc1 segfault during build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL: https://github.com/PCSX2/pcsx2/issues...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-29 06:11 UTC by Andrew Udvare
Modified: 2019-06-01 08:13 UTC (History)
0 users

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


Attachments
build log (build.log.gz,43.93 KB, application/x-gzip)
2019-05-29 06:12 UTC, Andrew Udvare
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Udvare 2019-05-29 06:11:03 UTC
Getting consistent segfault during the build with GCC 9.1.0. No other package does this for me so this appears to be a compatibility issue with GCC 9.1.0. I rebooted to make sure it wasn't a temporary system issue.

Reproducible: Always

Steps to Reproduce:
Run with ACCEPT_KEYWORDS="~amd64" or set files in /etc/portage as necessary.

1. emerge =sys-devel/gcc-9.1.0
2. eselect gcc set x86_64-pc-linux-gnu-9.1.0
3. emerge pcsx2
Actual Results:  
Fails to build.

Expected Results:  
Should build.

It seems we have to wait until GCC 9.1.1. And we have to use GCC <=8.3.0 to build this.

This cannot be worked around by using Clang. That has another error and needs patches:

/var/tmp/portage/games-emulation/pcsx2-1.4.0-r1/work/pcsx2-1.4.0/pcsx2/Vif_Codes.cpp:283:21: error: ordered
      comparison between pointer and zero ('u8 *' (aka 'unsigned char *') and 'int')
        pxAssert(VUx.Micro > 0);
Comment 1 Andrew Udvare 2019-05-29 06:12:14 UTC
Created attachment 577972 [details]
build log
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2019-05-29 06:55:18 UTC
Patchs is queued in gcc-9.1.0 as https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=275ab714637a64672c6630cfd744af2c70957d5a and will be released in gentoo soon.

Meanwhile you can drop it in /etc/portage/patches/sys-devel/gcc:9.1.0/ and rebuild gcc.
Comment 3 Larry the Git Cow gentoo-dev 2019-06-01 08:01:30 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=877f78485c04a5c05cb30d38654ae030d61c2f47

commit 877f78485c04a5c05cb30d38654ae030d61c2f47
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-06-01 07:59:02 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-06-01 07:59:02 +0000

    9.1.0: cut 1.1 patchset
    
    Three new patches:
    26_all_ipa-incomplete.patch: fix ICE on pcsx2 package
    27_all_es-po.patch: fix ICE on es lcoales
    28_all_disable-riscv32-ABIs.patch: disable unconditional riscv32
    ABIs
    
    Bug: https://gcc.gnu.org/PR90303
    Bug: https://bugs.gentoo.org/686930
    Bug: https://gcc.gnu.org/PR90528
    Bug: https://bugs.gentoo.org/686076
    Bug: https://gcc.gnu.org/PR90419
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 9.1.0/gentoo/README.history | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Larry the Git Cow gentoo-dev 2019-06-01 08:13:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93052fb8b1eef5f3c61800eaa8d8acc858a349b0

commit 93052fb8b1eef5f3c61800eaa8d8acc858a349b0
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-06-01 08:03:25 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-06-01 08:03:25 +0000

    sys-devel/gcc: 9.1.0: cut 1.1 patchset
    
    Three new patches:
    26_all_ipa-incomplete.patch: fix ICE on pcsx2 package
    27_all_es-po.patch: fix ICE on es lcoales
    28_all_disable-riscv32-ABIs.patch: disable unconditional riscv32
    ABIs
    
    Bug: https://gcc.gnu.org/PR90303
    Closes: https://bugs.gentoo.org/686930
    Bug: https://gcc.gnu.org/PR90528
    Closes: https://bugs.gentoo.org/686076
    Bug: https://gcc.gnu.org/PR90419
    Package-Manager: Portage-2.3.67, Repoman-2.3.13
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-devel/gcc/Manifest            |  1 +
 sys-devel/gcc/gcc-9.1.0-r1.ebuild | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)