Bug 1527692

Summary: internal compiler error when compiling cp2k-5.1 on ppc64 and ppc64le
Product: [Fedora] Fedora Reporter: Dominik 'Rathann' Mierzejewski <dominik>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: aoliva, dan, davejohansen, fweimer, jakub, jwakely, law, mpolacek
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 18:53:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1071880    

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):
gcc-gfortran-7.1.1-2.fc27.ppc64

How reproducible:
Always.

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:
gfortran -c -D__FFTW3 -D__LIBINT -D__LIBXC -D__HAS_IEEE_EXCEPTIONS -D__LIBINT_MAX_AM=11 -D__LIBDERIV_MAX_AM1=7 -D__MAX_C
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.