Package: drawterm
Version: 0.cvs+20080909-1
Severity: serious
Tags: patch

There was an error while trying to autobuild your package:

> Automatic build of drawterm_0.cvs+20080909-1 on ball by sbuild/mips 99.99
> Build started at 20081206-1246

[...]

> gcc -Wall -Wno-missing-braces -ggdb -I.. -I../include -I../kern -c 
> -I/usr/X11R6/include -D_THREAD_SAFE -pthread -O2 md5block.c
> gcc -Wall -Wno-missing-braces -ggdb -I.. -I../include -I../kern -c 
> -I/usr/X11R6/include -D_THREAD_SAFE -pthread -O2 sha1block.c
> as  -o tas.o tas.s
> tas.s: Assembler messages:
> tas.s:10: Error: illegal operands `ori t1,zero,12345'
> tas.s:11: Error: opcode not supported on this processor: mips1 (mips1) `ll 
> t0,(a0)'
> tas.s:12: Error: opcode not supported on this processor: mips1 (mips1) `sc 
> t1,(a0)'
> tas.s:13: Error: illegal operands `beq t1,zero,1b'
> tas.s:17: Error: illegal operands `or v0,t0,zero'
> make[2]: *** [tas.o] Error 1
> make[2]: Leaving directory `/build/buildd/drawterm-0.cvs+20080909/posix-mips'
> make[1]: *** [libmachdep.a] Error 2
> make[1]: Leaving directory `/build/buildd/drawterm-0.cvs+20080909'
> make: *** [build-stamp] Error 2
> dpkg-buildpackage: failure: debian/rules build gave error exit status 2

A full build log can be found at:
http://buildd.debian.org/build.php?arch=mips&pkg=drawterm&ver=0.cvs+20080909-1

The package failed to build on most architectures in different ways. The
appended patch fixes the build failure on mips (and presumably mipsel).


Thiemo


diff -urpN drawterm-0.cvs+20080909.old/Make.unix 
drawterm-0.cvs+20080909/Make.unix
--- drawterm-0.cvs+20080909.old/Make.unix       2007-06-23 05:10:01.000000000 
+0100
+++ drawterm-0.cvs+20080909/Make.unix   2008-12-07 15:55:21.000000000 +0000
@@ -2,7 +2,8 @@
 #PTHREAD=      # for Mac
 PTHREAD=-pthread
 AR=ar
-AS=as
+AS=gcc
+ASFLAGS=-xassembler-with-cpp -c
 RANLIB=ranlib
 X11=/usr/X11R6
 CC=gcc
diff -urpN drawterm-0.cvs+20080909.old/posix-mips/tas.s 
drawterm-0.cvs+20080909/posix-mips/tas.s
--- drawterm-0.cvs+20080909.old/posix-mips/tas.s        2005-12-29 
23:50:05.000000000 +0000
+++ drawterm-0.cvs+20080909/posix-mips/tas.s    2008-12-07 14:16:23.000000000 
+0000
@@ -5,17 +5,18 @@
 .ent tas 2
 
 tas:
-.set noreorder
 1:
-       ori     t1, zero, 12345 /* t1 = 12345 */
-       ll      t0, (a0)                /* t0 = *a0 */
+#ifdef __linux__
+       .set mips2
+#endif
+       li      t1, 12345               /* t1 = 12345 */
+       ll      v0, (a0)                /* v0 = *a0 */
        sc      t1, (a0)                /* *a0 = t1 if *a0 hasn't changed; 
t1=success */
-       beq     t1, zero, 1b            /* repeat if *a0 did change */
-       nop
+       beqz    t1, 1b                  /* repeat if *a0 did change */
+       jr      $31                     /* return */
+#ifdef __linux__
+       .set mips0
+#endif
 
-       j $31                           /* return */
-       or      v0, t0, zero            /* set return value on way out */
-
-.set reorder
 .end tas
 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to