Bug 1173185

Summary: internal compiler error when compiling libtiff
Product: [Fedora] Fedora Reporter: Ben Boeckel <fedora>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: jakub, law
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gcc-python-plugin-0.13-3.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-16 03:27:18 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:
Attachments:
Description Flags
output from gcc for upload
none
output for the second ICE none

Description Ben Boeckel 2014-12-11 16:01:50 UTC
Created attachment 967289 [details]
output from gcc for upload

FAILED: /usr/lib64/ccache/cc  -DJPEG_SUPPORT -DVTK_IN_VTK -DZIP_SUPPORT -D_HPUX_SOURCE -Dvtktiff_EXPORTS -fsanitize=address,undefined  -w -w -g -fPIC -IThirdParty/tiff/vtktiff -I/home/boeckb/code/depot/group-kitware/vtk/src/ThirdParty/tiff/vtktiff -IThirdParty/jpeg -I/home/boeckb/code/depot/group-kitware/vtk/src/ThirdParty/jpeg -IThirdParty/zlib -I/home/boeckb/code/depot/group-kitware/vtk/src/ThirdParty/zlib -IThirdParty/tiff -I/home/boeckb/code/depot/group-kitware/vtk/src/ThirdParty/tiff -MMD -MT ThirdParty/tiff/vtktiff/CMakeFiles/vtktiff.dir/tif_pixarlog.c.o -MF ThirdParty/tiff/vtktiff/CMakeFiles/vtktiff.dir/tif_pixarlog.c.o.d -o ThirdParty/tiff/vtktiff/CMakeFiles/vtktiff.dir/tif_pixarlog.c.o   -c /home/boeckb/code/depot/group-kitware/vtk/src/ThirdParty/tiff/vtktiff/tif_pixarlog.c
/home/boeckb/code/depot/group-kitware/vtk/src/ThirdParty/tiff/vtktiff/tif_pixarlog.c: In function ‘horizontalDifferenceF’:
/home/boeckb/code/depot/group-kitware/vtk/src/ThirdParty/tiff/vtktiff/tif_pixarlog.c:881:40: internal compiler error: in gimplify_expr, at gimplify.c:8361
             r2 = wp[0] = (uint16) CLAMP(ip[0]);
                                        ^


Version-Release number of selected component (if applicable):
gcc-4.9.2-1.fc21.x86_64

Comment 1 Ben Boeckel 2014-12-11 16:03:17 UTC
Another that is probably related (from the same build):

FAILED: /usr/lib64/ccache/cc  -DJPEG_SUPPORT -DVTK_IN_VTK -DZIP_SUPPORT -D_HPUX_SOURCE -Dvtktiff_EXPORTS -fsanitize=address,undefined  -w -w -g -fPIC -IThirdParty/tiff/vtktiff -I/home/boeckb/code/depot/group-kitware/vtk/src/ThirdParty/tiff/vtktiff -IThirdParty/jpeg -I/home/boeckb/code/depot/group-kitware/vtk/src/ThirdParty/jpeg -IThirdParty/zlib -I/home/boeckb/code/depot/group-kitware/vtk/src/ThirdParty/zlib -IThirdParty/tiff -I/home/boeckb/code/depot/group-kitware/vtk/src/ThirdParty/tiff -MMD -MT ThirdParty/tiff/vtktiff/CMakeFiles/vtktiff.dir/tif_color.c.o -MF ThirdParty/tiff/vtktiff/CMakeFiles/vtktiff.dir/tif_color.c.o.d -o ThirdParty/tiff/vtktiff/CMakeFiles/vtktiff.dir/tif_color.c.o   -c /home/boeckb/code/depot/group-kitware/vtk/src/ThirdParty/tiff/vtktiff/tif_color.c
/home/boeckb/code/depot/group-kitware/vtk/src/ThirdParty/tiff/vtktiff/tif_color.c: In function ‘vtk_TIFFXYZToRGB’:
/home/boeckb/code/depot/group-kitware/vtk/src/ThirdParty/tiff/vtktiff/tif_color.c:103:37: internal compiler error: in gimplify_expr, at gimplify.c:8361
         *r = RINT(cielab->Yr2r[i]);
                                     ^

Comment 2 Ben Boeckel 2014-12-11 16:03:52 UTC
Created attachment 967290 [details]
output for the second ICE

Comment 3 Jakub Jelinek 2014-12-12 16:31:48 UTC
There are 2 issues, one is broken backport of two new -fsanitize= features which means that -fsanitize=undefined enables not just undefined, but also float-cast-overflow and float-divide-by-zero that shouldn't be enabled.

And, then there is http://gcc.gnu.org/PR64289 I'll be testing a fix for.

As workaround, use -fsanitize=address,undefined -fno-sanitize=float-cast-overflow
(which will due to the first bug also disable enum instrumentation).

Comment 4 Fedora Update System 2015-02-13 12:28:24 UTC
gcc-4.9.2-6.fc21,gcc-python-plugin-0.13-3.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/gcc-4.9.2-6.fc21,gcc-python-plugin-0.13-3.fc21

Comment 5 Fedora Update System 2015-02-15 03:26:49 UTC
Package gcc-python-plugin-0.13-3.fc21, gcc-4.9.2-6.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gcc-python-plugin-0.13-3.fc21 gcc-4.9.2-6.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-2063/gcc-4.9.2-6.fc21,gcc-python-plugin-0.13-3.fc21
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2015-02-16 03:27:18 UTC
gcc-python-plugin-0.13-3.fc21, gcc-4.9.2-6.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.