Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585558 - dev-util/android-tools-5.1.1_p13 with sys-devel/gcc-6.1.0: core/libmincrypt/sha.c: In function ‘SHA1_Transform’: core/libmincrypt/sha.c:38:13: internal compiler error: in bb_contains_loop_phi_nodes, at graphite-isl-ast-to-gimple.c:1078
Summary: dev-util/android-tools-5.1.1_p13 with sys-devel/gcc-6.1.0: core/libmincrypt/s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-6
  Show dependency tree
 
Reported: 2016-06-10 21:38 UTC by Aric Belsito
Modified: 2018-08-06 12:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pr69068 (3-arg-phi.patch,1.40 KB, patch)
2016-06-10 21:38 UTC, Aric Belsito
Details | Diff
emerge info (info,5.36 KB, text/plain)
2016-06-21 00:01 UTC, Aric Belsito
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aric Belsito 2016-06-10 21:38:02 UTC
Created attachment 437092 [details, diff]
pr69068

Ran into this while rebuilding world.

Relevant GCC bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69068
Comment 1 Aric Belsito 2016-06-17 23:05:36 UTC
The bug also shows up when trying to compile media-video/ffmpeg
Comment 2 Aric Belsito 2016-06-17 23:07:29 UTC
Nevermind, my mistake, it's a different bug. Will look into it and report at gcc.gnu.org if necessary.
Comment 3 Alex Xu (Hello71) 2016-06-20 17:09:50 UTC
build.log? emerge --info? any actual details?
Comment 4 Aric Belsito 2016-06-21 00:01:31 UTC
Created attachment 438228 [details]
emerge info

Relevant portion of build.log:
x86_64-gentoo-linux-musl-gcc -o mkbootimg -march=native -O2 -pipe -floop-nest-optimize -Icore/include -Wl,--as-needed -Wl,-O2,--hash-style=gnu  core/libmincrypt/p256.c core/libmincrypt/p256_ec.c core/libmincrypt/sha.c core/libmincrypt/sha256.c core/libmincrypt/rsa.c core/libmincrypt/dsa_sig.c core/libmincrypt/p256_ecdsa.c core/mkbootimg/mkbootimg.c
x86_64-gentoo-linux-musl-gcc -o fastboot -march=native -O2 -pipe -floop-nest-optimize -DHAVE_OFF64_T=1 -std=gnu99 -I core/mkbootimg -I core/libsparse/include -I core/include -I extras/ext4_utils -I extras/f2fs_utils -I libselinux/include -I f2fs-tools/include -I f2fs-tools/mkfs -Wl,--as-needed -Wl,-O2,--hash-style=gnu core/fastboot/bootimg.c core/fastboot/engine.c core/fastboot/fastboot.c core/fastboot/protocol.c core/fastboot/usb_linux.c core/fastboot/util_linux.c core/fastboot/util.c core/fastboot/fs.c core/libsparse/backed_block.c core/libsparse/output_file.c core/libsparse/sparse.c core/libsparse/sparse_crc32.c core/libsparse/sparse_err.c core/libsparse/sparse_read.c core/libzipfile/centraldir.c core/libzipfile/zipfile.c extras/ext4_utils/allocate.c extras/ext4_utils/contents.c extras/ext4_utils/crc16.c extras/ext4_utils/ext4_utils.c extras/ext4_utils/ext4_sb.c extras/ext4_utils/extent.c extras/ext4_utils/indirect.c extras/ext4_utils/make_ext4fs.c extras/ext4_utils/sha1.c extras/ext4_utils/uuid.c extras/ext4_utils/wipe.c extras/f2fs_utils/f2fs_utils.c extras/f2fs_utils/f2fs_dlutils.c extras/f2fs_utils/f2fs_ioutils.c libselinux/src/callbacks.c libselinux/src/check_context.c libselinux/src/freecon.c libselinux/src/init.c libselinux/src/label.c libselinux/src/label_android_property.c libselinux/src/label_file.c -lz -ldl -lpcre
core/libmincrypt/sha.c: In function ‘SHA1_Transform’:
core/libmincrypt/sha.c:38:13: internal compiler error: in bb_contains_loop_phi_nodes, at graphite-isl-ast-to-gimple.c:1078
 static void SHA1_Transform(SHA_CTX* ctx) {
             ^~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
make: *** [Makefile:21: mkbootimg] Error 1
Comment 5 Aric Belsito 2016-06-21 00:02:21 UTC
The ICE is triggered by using the graphite flag, '-floop-nest-optimize'.
Comment 6 Aric Belsito 2016-09-14 22:48:53 UTC
This bug was fixed in GCC 6.2.0, which is in the tree.