https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67716
Bug ID: 67716 Summary: [5] [SH]: Miscompiles libraw: Assembler: unaligned opcodes detected in executable segment Product: gcc Version: 5.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: glaubitz at physik dot fu-berlin.de CC: kkojima at gcc dot gnu.org, olegendo at gcc dot gnu.org Target Milestone: --- Target: sh*-*-* Hi! I have recently triggered rebuilds of all packages with reverse-dependencies on the new standard C++ library which means all of them were recompiled with gcc-5 after (mostly) being previously built with gcc-4.9. This resulted in a few FTBFS which previously did not occur, mostly because the packages need to be ported to the new standard C++ library. However, this particular package, libraw, seems to fail to build due to a regression, as gcc-5 generates incorrect assembler code for SH: libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.16.2\" "-DPACKAGE_STRING=\"LibRaw 0.16.2\"" -DPACKAGE_BUGREPORT=\"i...@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -D_FORTIFY_SOURCE=2 -I/usr/local/include -DUSE_JPEG -DUSE_JPEG8 -DUSE_JASPER -DUSE_LCMS2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fopenmp -c internal/dcraw_common.cpp -fPIC -DPIC -o internal/.libs/dcraw_common.o /tmp/ccTfltZR.s: Assembler messages: /tmp/ccTfltZR.s: Error: unaligned opcodes detected in executable segment make[1]: *** [internal/dcraw_common.lo] Error 1 I have taken the build directory as is and created a compressed tar ball from it which can be downloaded here: https://people.debian.org/~glaubitz/libraw-qDq4D3.tgz It's just 2.3 MiB in size. Full build log in [1]. Adrian > [1] > https://buildd.debian.org/status/fetch.php?pkg=libraw&arch=sh4&ver=0.16.2-1%2Bb1&stamp=1443116335