Bug 1527692 - internal compiler error when compiling cp2k-5.1 on ppc64 and ppc64le
Summary: internal compiler error when compiling cp2k-5.1 on ppc64 and ppc64le
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: ppc64
OS: Unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: PPCTracker
TreeView+ depends on / blocked
Reported: 2017-12-19 22:49 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2017-12-20 18:53 UTC (History)
8 users (show)

Clone Of:
Last Closed: 2017-12-20 18:53:56 UTC

Attachments (Terms of Use)

Description Dominik 'Rathann' Mierzejewski 2017-12-19 22:49:46 UTC
Description of problem:
When compiling cp2k-5.1 gfortran fails to compile hfx_contraction_methods.F90 with internal compiler error.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. download src.rpms from https://rathann.fedorapeople.org/copr/
2. mockchain -r fedora-rawhide-ppc64 elpa-2017.05.003-1.fc27.src.rpm cp2k-5.1-1.fc27.src.rpm

Actual results:
ONTR=4 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=
ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat
-annobin-cc1 -m64 -fPIC -I/usr/lib64/gfortran/modules -fopenmp -ffree-form -ffree-line-length-none -D__COMPILE_ARCH="\"L
inux-ppc64-gfortran\"" -D__COMPILE_DATE="\"Mon Dec 18 22:17:13 UTC 2017\"" -D__COMPILE_HOST="\"5e870004bb2a47fabeeefec9f
322d0bf\"" -D__COMPILE_REVISION="\"svn:18091\"" -D__DATA_DIR="\"/usr/share/cp2k\"" -D__SHORT_FILE__="\"hfxbase/hfx_contr
action_methods.F\"" -I'/builddir/build/BUILD/cp2k-5.1/src/hfxbase/' hfx_contraction_methods.F90 
gfortran: internal compiler error: Killed (program f951)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make[3]: *** [/builddir/build/BUILD/cp2k-5.1/makefiles/Makefile:428: hfx_contraction_methods.o] Error 4
make[2]: *** [/builddir/build/BUILD/cp2k-5.1/makefiles/Makefile:124: all] Error 2
make[1]: *** [/builddir/build/BUILD/cp2k-5.1/makefiles/Makefile:113: sopt] Error 2

Expected results:
cp2k-5.1 should at least compile successfully.

Comment 1 Dan Horák 2017-12-20 07:46:11 UTC
gfortran: internal compiler error: Killed (program f951)
^^ this sounds more like OOM killed process than a real ICE in gcc/gfortran, I will take a look

Comment 2 Dan Horák 2017-12-20 10:23:49 UTC
Dominik, cp2k builds fine in my Rawhide ppc64le VM with 16GB of RAM. What machine did you use for your builds? Mock reports the build machine specs into hw_info.log.

Comment 3 Marek Polacek 2017-12-20 11:19:45 UTC
Yes, it's very unlikely this is a gcc bug; simply use a machine with more memory.

Comment 4 Dominik 'Rathann' Mierzejewski 2017-12-20 18:53:56 UTC
Thanks for checking. I did indeed run those builds on VMs with 2GB of RAM. Sorry for the noise.

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