Bug 1173185 - internal compiler error when compiling libtiff
Summary: internal compiler error when compiling libtiff
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-11 16:01 UTC by Ben Boeckel
Modified: 2015-02-16 03:27 UTC (History)
2 users (show)

Fixed In Version: gcc-python-plugin-0.13-3.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-16 03:27:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
output from gcc for upload (189.02 KB, text/x-csrc)
2014-12-11 16:01 UTC, Ben Boeckel
no flags Details
output for the second ICE (107.80 KB, text/x-csrc)
2014-12-11 16:03 UTC, Ben Boeckel
no flags Details

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.


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