Bug 2336255 - PyMCA fails to build with GCC 15 on ppc64le ("Illegal instruction (core dumped) ")
Summary: PyMCA fails to build with GCC 15 on ppc64le ("Illegal instruction (core d...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: PyMca
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Zbigniew Jędrzejewski-Szmek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: gcc-15-mass-prebuild
TreeView+ depends on / blocked
 
Reported: 2025-01-07 21:57 UTC by Dave Malcolm
Modified: 2025-01-17 13:10 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-01-17 13:10:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dave Malcolm 2025-01-07 21:57:35 UTC
I'm experimentally rebuilding rawhide with the not-yet-released GCC 15 to see if anything breaks, and to help write the porting guide.  See https://fedoraproject.org/wiki/User:Dmalcolm/gcc-15

My test build with GCC 15 failed on ppc64le:
 https://copr.fedorainfracloud.org/coprs/dmalcolm/gcc-15-smoketest-3.failed/build/8476045/

whereas my test builds with GCC 14 succeeded:
 https://copr.fedorainfracloud.org/coprs/dmalcolm/gcc-15-smoketest-3.failed.checker/build/8477598/ 

Looking at the failure logs
https://download.copr.fedorainfracloud.org/results/dmalcolm/gcc-15-smoketest-3.failed/fedora-rawhide-ppc64le/08476045-PyMca/builder-live.log.gz

I see:

+ cd pymca-5.9.3
+ QHULL_CFLAGS=-I/usr/include/libqhull
+ QHULL_LIBS=-lqhull
+ SPECFILE_USE_GNU_SOURCE=1
+ PYMCA_DATA_DIR=/usr/share/PyMca
+ PYMCA_DOC_DIR=/usr/share/doc/PyMca
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection '
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '
+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP'
/var/tmp/rpm-tmp.2Rz4KQ: line 57:    54 Illegal instruction     (core dumped) QHULL_CFLAGS="-I/usr/include/libqhull" QHULL_LIBS="-lqhull" SPECFILE_USE_GNU_SOURCE=1 PYMCA_DATA_DIR=/usr/share/PyMca PYMCA_DOC_DIR=/usr/share/doc/PyMca CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}" /usr/bin/python3 setup.py build --executable="/usr/bin/python3 -sP"

RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.2Rz4KQ (%build)
    Bad exit status from /var/tmp/rpm-tmp.2Rz4KQ (%build)

I'm not sure if this is a bug in GCC 15, or in the package.

Reproducible: Always

Comment 1 Jakub Jelinek 2025-01-09 16:26:40 UTC
This built just fine for me in mock with gcc 15, same child.cfg.

Comment 2 Siddhesh Poyarekar 2025-01-17 13:10:13 UTC
Mass rebuild succeeded, so it's either a transient failure or a gcc bug that got fixed recently:

https://koji.fedoraproject.org/koji/buildinfo?buildID=2616380


Note You need to log in before you can comment on or make changes to this bug.