Package: gcc-2.95 Version: 1:2.95.4-15 Severity: normal imagemagick FTBFS on ARM; see #171972 and http://buildd.debian.org/build.php?arch=&pkg=imagemagick . This is a simplified and stripped down testcase for that issue (derived from the imagemagick 5.5.2.5 sources).
-- System Information: Debian Release: testing/unstable Architecture: arm Kernel: Linux debussy 2.4.19-rmk2 #8 Sun Sep 22 22:04:34 CEST 2002 armv4l Locale: LANG=C, LC_CTYPE=C Versions of packages gcc-2.95 depends on: ii binutils 2.13.90.0.14-1 The GNU assembler, linker and bina ii cpp-2.95 1:2.95.4-15 The GNU C preprocessor. ii gcc 2:2.95.4-17 The GNU C compiler. ii libc6 2.2.5-14.3 GNU C Library: Shared libraries an -- no debconf information
#include "studio.h" MagickExport Image *AdaptiveThresholdImage(const Image *image, const unsigned long width,const unsigned long height, const unsigned long offset,ExceptionInfo *exception) { DoublePixelPacket aggregate, mean; long y; const PixelPacket *r; long x, u, v; PixelPacket *q; for (y=0; y < (long) image->rows; y++) { for (x=0; x < (long) image->columns; x++) { for (v=0; v < (long) height; v++) { for (u=0; u < (long) width; u++) { aggregate.red+=r[u].red; aggregate.green+=r[u].green; aggregate.blue+=r[u].blue; } } mean.opacity=aggregate.opacity/(width*height)+offset; q->red=q->red <= mean.red ? 0 : MaxRGB; q->green=q->green <= mean.green ? 0 : MaxRGB; } } }
# define MagickExport #define MaxTextExtent 2053 #include <stdio.h> #include <fcntl.h> #include "image.h"
Reading specs from /usr/lib/gcc-lib/arm-linux/2.95.4/specs gcc version 2.95.4 20011002 (Debian prerelease) /usr/lib/gcc-lib/arm-linux/2.95.4/cpp0 -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95 -Dunix -D__arm__ -Dlinux -D__ELF__ -D__unix__ -D__arm__ -D__linux__ -D__ELF__ -D__unix -D__linux -Asystem(unix) -Asystem(posix) -Acpu(arm) -Amachine(arm) -D__CHAR_UNSIGNED__ -D__OPTIMIZE__ -D__ARM_ARCH_3__ -D__APCS_32__ bug.c bug.i GNU CPP version 2.95.4 20011002 (Debian prerelease) (ARM GNU/Linux with ELF) #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/lib/gcc-lib/arm-linux/2.95.4/include /usr/include End of search list. The following default directories have been omitted from the search path: /usr/lib/gcc-lib/arm-linux/2.95.4/../../../../include/g++-3 /usr/lib/gcc-lib/arm-linux/2.95.4/../../../../arm-linux/include End of omitted list. /usr/lib/gcc-lib/arm-linux/2.95.4/cc1 bug.i -quiet -dumpbase bug.c -O1 -version -o bug.s GNU C version 2.95.4 20011002 (Debian prerelease) (arm-linux) compiled by GNU C version 2.95.4 20011002 (Debian prerelease). bug.c: In function `AdaptiveThresholdImage': bug.c:43: Internal compiler error: bug.c:43: internal error--unrecognizable insn: (insn 331 176 177 (set (reg:HI 3 r3) (const_int -1 [0xffffffff])) -1 (nil) (nil))
@ Generated by gcc 2.95.4 20011002 (Debian prerelease) for ARM/elf .file "bug.c" gcc2_compiled.:
bug.i.bz2
Description: Binary data