Your message dated Fri, 16 Dec 2005 11:02:15 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Bug#343612: fixed in libgc 1:6.6-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 16 Dec 2005 15:07:21 +0000
>From [EMAIL PROTECTED] Fri Dec 16 07:07:21 2005
Return-path: <[EMAIL PROTECTED]>
Received: from alephnull.demon.nl ([83.160.184.112] helo=enp2611.wantstofly.org)
        by spohr.debian.org with esmtp (Exim 4.50)
        id 1EnHB3-0003I5-AU
        for [EMAIL PROTECTED]; Fri, 16 Dec 2005 07:07:21 -0800
Received: by enp2611.wantstofly.org (Postfix, from userid 0)
        id 1D79B4ED5C4; Fri, 16 Dec 2005 16:07:18 +0100 (CET)
Content-Type: multipart/mixed; boundary="===============0849979228=="
MIME-Version: 1.0
From: Lennert Buytenhek <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: libgc: FTBFS on arm platforms
Message-ID: <[EMAIL PROTECTED]>
X-Mailer: reportbug 3.18
Date: Fri, 16 Dec 2005 16:07:18 +0100
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

This is a multi-part MIME message sent by reportbug.

--===============0849979228==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: libgc
Severity: serious
Tags: patch
Justification: no longer builds from source

libgc 6.6 FTBFS on arm platforms using any current gcc/binutils combo,
bailing out with an error of the following type:

        Error: Rn must not overlap other operands -- `swp r3,r5,[r3]'

The ARM 'swp Rd, Rm, [Rn]' instruction performs a 32 bit load-and-store
on the memory address pointed to by Rn -- the old value at [Rn] is stored
in Rd, and Rm is then written to [Rn].

The ARM Architecture Reference Manual specifies that if Rd and Rn are the
same register (or if Rm and Rn are the same register), the result of the
SWP instruction is unpredictable.  The assembler rightfully throws an
error when this condition occurs, which is what's happening here.

libgc implements GC_test_and_set using inline assembly, but doesn't specify
the right constraint for 'oldval'.  Changing the 'oldval' constraint from
"=r" to "=&r" tells gcc not to use a register for oldval which might also
be used as an input operand, and prevents this error from occuring.

Fix provided by rmk.


-- System Information:
Debian Release: testing/unstable
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: armeb (armv5teb)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-rc1
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

--===============0849979228==
Content-Type: text/x-c; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="libgc-6.6-arm-swp-fix.diff"

--- libgc-6.6/include/private/gc_locks.h.orig   2005-12-16 14:46:31.000000000 
+0100
+++ libgc-6.6/include/private/gc_locks.h        2005-12-16 14:47:20.000000000 
+0100
@@ -244,7 +244,7 @@
            * this code will likely need to be updated. */
           /* See linuxthreads/sysdeps/arm/pt-machine.h in glibc-2.1 */
           __asm__ __volatile__("swp %0, %1, [%2]"
-                            : "=r"(oldval)
+                            : "=&r"(oldval)
                             : "r"(1), "r"(addr)
                             : "memory");
           return oldval;

--===============0849979228==--

---------------------------------------
Received: (at 343612-close) by bugs.debian.org; 16 Dec 2005 19:11:04 +0000
>From [EMAIL PROTECTED] Fri Dec 16 11:11:04 2005
Return-path: <[EMAIL PROTECTED]>
Received: from katie by spohr.debian.org with local (Exim 4.50)
        id 1EnKqN-0000r8-9R; Fri, 16 Dec 2005 11:02:15 -0800
From: Ryan Murray <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.60 $
Subject: Bug#343612: fixed in libgc 1:6.6-2
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Fri, 16 Dec 2005 11:02:15 -0800
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: libgc
Source-Version: 1:6.6-2

We believe that the bug you reported is fixed in the latest version of
libgc, which is due to be installed in the Debian FTP archive:

libgc-dev_6.6-2_i386.deb
  to pool/main/libg/libgc/libgc-dev_6.6-2_i386.deb
libgc1c2_6.6-2_i386.deb
  to pool/main/libg/libgc/libgc1c2_6.6-2_i386.deb
libgc_6.6-2.diff.gz
  to pool/main/libg/libgc/libgc_6.6-2.diff.gz
libgc_6.6-2.dsc
  to pool/main/libg/libgc/libgc_6.6-2.dsc



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ryan Murray <[EMAIL PROTECTED]> (supplier of updated libgc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 16 Dec 2005 10:53:15 -0800
Source: libgc
Binary: libgc-dev libgc1c2
Architecture: source i386
Version: 1:6.6-2
Distribution: unstable
Urgency: low
Maintainer: Ryan Murray <[EMAIL PROTECTED]>
Changed-By: Ryan Murray <[EMAIL PROTECTED]>
Description: 
 libgc-dev  - conservative garbage collector for C (development)
 libgc1c2   - conservative garbage collector for C and C++
Closes: 343612
Changes: 
 libgc (1:6.6-2) unstable; urgency=low
 .
   * Apply libgc-6.6-arm-swp-fix.diff to fix arm build (closes: #343612)
Files: 
 846f1fb597afed19d8feb0020facef4b 553 libs standard libgc_6.6-2.dsc
 f5a9a71332960a8d16806dfd2f50fb38 260410 libs standard libgc_6.6-2.diff.gz
 202ed48b959ac6029e023507b840cc6c 115316 libs standard libgc1c2_6.6-2_i386.deb
 bf23c4bee96d3e6866ff182376af1f13 160068 libdevel optional 
libgc-dev_6.6-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDow2xN2Dbz/1mRasRAizmAKD7uyKzZXAMA4RbRDMY16Ys2wJ5ggCg3PYj
njG0RbWvdcdIKB2tr2v9F4Y=
=gmWR
-----END PGP SIGNATURE-----


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

Reply via email to