Debian Bug report logs - #467486
kaffe: Builds broken package with gcc-4.3

version graph

Package: kaffe; Maintainer for kaffe is (unknown);

Reported by: Daniel Schepler <schepler@math.berkeley.edu>

Date: Mon, 25 Feb 2008 21:00:01 UTC

Severity: serious

Tags: patch

Found in version kaffe/2:1.1.8-3

Fixed in version kaffe/2:1.1.8-5.1

Done: Thomas Viehmann <tv@beamnet.de>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>:
Bug#467486; Package kaffe. (full text, mbox, link).


Acknowledgement sent to Daniel Schepler <schepler@math.berkeley.edu>:
New Bug report received and forwarded. Copy sent to Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Daniel Schepler <schepler@math.berkeley.edu>
To: submit@bugs.debian.org
Subject: kaffe: Builds broken package with gcc-4.3
Date: Mon, 25 Feb 2008 15:57:26 -0500
Package: kaffe
Version: 2:1.1.8-3
Severity: important
User: tbm@cyrius.com
Usertags: ftbfs-gcc-4.3

When I build kaffe in a pbuilder chroot with gcc -> gcc-4.3, the build 
succeeds but with some test failures:

FAIL: FileTest.java
FAIL: InterfaceSuperClass.java
FAIL: ImplementClass.java
FAIL: FieldErrors.java
FAIL: MethodErrors.java

The resulting binary also fails to build several other packages, which I 
erroneously reported as bugs against those packages.  See #467381, #467383, 
#467384 for details.

Rebuilding with gcc -> gcc-4.2, those problems go away.
-- 
Daniel Schepler




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>:
Bug#467486; Package kaffe. (full text, mbox, link).


Acknowledgement sent to Michael Koch <konqueror@gmx.de>:
Extra info received and forwarded to list. Copy sent to Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>. (full text, mbox, link).


Message #10 received at 467486@bugs.debian.org (full text, mbox, reply):

From: Michael Koch <konqueror@gmx.de>
To: Daniel Schepler <schepler@math.berkeley.edu>, 467486@bugs.debian.org
Subject: Re: Bug#467486: kaffe: Builds broken package with gcc-4.3
Date: Thu, 28 Feb 2008 06:48:17 +0100
On Mon, Feb 25, 2008 at 03:57:26PM -0500, Daniel Schepler wrote:
> Package: kaffe
> Version: 2:1.1.8-3
> Severity: important
> User: tbm@cyrius.com
> Usertags: ftbfs-gcc-4.3
> 
> When I build kaffe in a pbuilder chroot with gcc -> gcc-4.3, the build 
> succeeds but with some test failures:
> 
> FAIL: FileTest.java
> FAIL: InterfaceSuperClass.java
> FAIL: ImplementClass.java
> FAIL: FieldErrors.java
> FAIL: MethodErrors.java
> 
> The resulting binary also fails to build several other packages, which I 
> erroneously reported as bugs against those packages.  See #467381, #467383, 
> #467384 for details.
> 
> Rebuilding with gcc -> gcc-4.2, those problems go away.

I'm on the way of packaging a new kaffe upstream version. I will check
of this wokrs with it but this will take some time. Currently it doesn't
build at all and I need to find out why.


Cheers,
Michael




Severity set to `serious' from `important' Request was from Marc Brockschmidt <marc@marcbrockschmidt.de> to control@bugs.debian.org. (Sat, 05 Apr 2008 12:46:03 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>:
Bug#467486; Package kaffe. (full text, mbox, link).


Acknowledgement sent to Andreas Kirschbaum <kirschbaum@in-medias-res.com>:
Extra info received and forwarded to list. Copy sent to Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>. (full text, mbox, link).


Message #17 received at 467486@bugs.debian.org (full text, mbox, reply):

From: Andreas Kirschbaum <kirschbaum@in-medias-res.com>
To: 467486@bugs.debian.org
Subject: Investigations about failure
Date: Thu, 10 Apr 2008 10:06:20 +0200
gcc-4.2 and gcc-4.3 differ in the representation of char values: gcc-4.2
represents a char as a 32 bit value (bits 0..7 is the char value; bits
8..31 are always set to zero); gcc-4.3 uses only the lower 8 bits,
ignoring bits 8..31.

kaffe defines "typedef unsigned char jboolean;" in
kaffe-1.1.8/libraries/javalib/external/classpath/include/jni_md-x86-linux-gnu.h
but assumes %eax is 0/1 in compiled Java code. This makes compiled Java
code calling into native C code almost always assume "true" for jboolean
return values due to the non-zero "garbage" in bits 8..31.


Compiling the following source demonstrates the issue: compiled with
gcc-4.2, the return value in %eax always is either 0 or 1. Compiled with
gcc-4.3, only %al is set ot 0 or 1; the remaining bits 8..31 of %eax
remain unset.

~ >cat t.c
unsigned char f(int x)
{
        return x == 3;
}

~ >gcc-4.2 -O3 -c -s t.c && objdump -d t.o

t.o:     file format elf32-i386

Disassembly of section .text:

00000000 <f>:
   0:   55                      push   %ebp
   1:   31 c0                   xor    %eax,%eax
   3:   89 e5                   mov    %esp,%ebp
   5:   83 7d 08 03             cmpl   $0x3,0x8(%ebp)
   9:   5d                      pop    %ebp
   a:   0f 94 c0                sete   %al
   d:   c3                      ret

~ >gcc-4.3 -O3 -c -s t.c && objdump -d t.o

t.o:     file format elf32-i386

Disassembly of section .text:

00000000 <f>:
   0:   55                      push   %ebp
   1:   89 e5                   mov    %esp,%ebp
   3:   83 7d 08 03             cmpl   $0x3,0x8(%ebp)
   7:   5d                      pop    %ebp
   8:   0f 94 c0                sete   %al
   b:   c3                      ret




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>:
Bug#467486; Package kaffe. (full text, mbox, link).


Acknowledgement sent to Michael Koch <konqueror@gmx.de>:
Extra info received and forwarded to list. Copy sent to Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>. (full text, mbox, link).


Message #22 received at 467486@bugs.debian.org (full text, mbox, reply):

From: Michael Koch <konqueror@gmx.de>
To: Andreas Kirschbaum <kirschbaum@in-medias-res.com>, 467486@bugs.debian.org
Subject: Re: Bug#467486: Investigations about failure
Date: Thu, 10 Apr 2008 10:20:04 +0200
On Thu, Apr 10, 2008 at 10:06:20AM +0200, Andreas Kirschbaum wrote:
> gcc-4.2 and gcc-4.3 differ in the representation of char values: gcc-4.2
> represents a char as a 32 bit value (bits 0..7 is the char value; bits
> 8..31 are always set to zero); gcc-4.3 uses only the lower 8 bits,
> ignoring bits 8..31.
> 
> kaffe defines "typedef unsigned char jboolean;" in
> kaffe-1.1.8/libraries/javalib/external/classpath/include/jni_md-x86-linux-gnu.h
> but assumes %eax is 0/1 in compiled Java code. This makes compiled Java
> code calling into native C code almost always assume "true" for jboolean
> return values due to the non-zero "garbage" in bits 8..31.

Can you take a look into kaffe 1.1.9 (not packaged yet due to different
problems) if that is fixed? I haven't found the time yet for this)


Cheers,
Michael




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>:
Bug#467486; Package kaffe. (Mon, 13 Oct 2008 17:39:02 GMT) (full text, mbox, link).


Acknowledgement sent to Luk Claes <luk@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>. (Mon, 13 Oct 2008 17:39:02 GMT) (full text, mbox, link).


Message #27 received at 467486@bugs.debian.org (full text, mbox, reply):

From: Luk Claes <luk@debian.org>
To: 467486@bugs.debian.org
Subject: kaffe: Builds broken package with gcc-4.3
Date: Mon, 13 Oct 2008 19:36:59 +0200
Hi

Can we expect an upload shortly to fix this bug? It looks like building
with gcc-4.2 is the safest option?

Cheers

Luk




Tags added: patch, pending Request was from Thomas Viehmann <tv@beamnet.de> to control@bugs.debian.org. (Tue, 14 Oct 2008 19:06:08 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>:
Bug#467486; Package kaffe. (Tue, 14 Oct 2008 19:06:10 GMT) (full text, mbox, link).


Acknowledgement sent to Thomas Viehmann <tv@beamnet.de>:
Extra info received and forwarded to list. Copy sent to Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>. (Tue, 14 Oct 2008 19:06:10 GMT) (full text, mbox, link).


Message #34 received at 467486@bugs.debian.org (full text, mbox, reply):

From: Thomas Viehmann <tv@beamnet.de>
To: 467486@bugs.debian.org
Cc: Luk Claes <luk@debian.org>
Subject: Re: kaffe: Builds broken package with gcc-4.3
Date: Tue, 14 Oct 2008 20:57:40 +0200
tags 467486 + patch pending
thanks

Luk Claes Wrote:
> Can we expect an upload shortly to fix this bug? It looks like
> building with gcc-4.2 is the safest option?

We can always hope for an upload. In particular, the FileTest.java
test results when compiling with gcc vs. gcc-4.2 seem to match the
description very well.
Test success is strictly increasing here and as noone else seems to
want to take a shot I'm uploading the following NMU.

Kind regards

T.


diff -u kaffe-1.1.8/debian/rules kaffe-1.1.8/debian/rules
--- kaffe-1.1.8/debian/rules
+++ kaffe-1.1.8/debian/rules
@@ -16,7 +16,7 @@
 
 
 # these values can be overwritten in the rules.$(DEB_BUILD_GNU_TYPE) files
-CC		:= gcc
+CC		:= gcc-4.2
 COMPILER_JIKES	:= 
 COMPILER_ECJ	:= 1
 ENABLE_SOUND 	:= yes
diff -u kaffe-1.1.8/debian/control kaffe-1.1.8/debian/control
--- kaffe-1.1.8/debian/control
+++ kaffe-1.1.8/debian/control
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
 Uploaders: Ean R. Schuessler <ean@novare.net>, Arnaud Vandyck <avdyk@debian.org>, Adam Heath <doogie@brainfood.com>, Michael Koch <konqueror@gmx.de>, Jeroen van Wolffelaar <jeroen@wolffelaar.nl>
-Build-Depends: debhelper (>= 5), libpng12-dev, libjpeg62-dev, libungif4-dev, zlib1g-dev, libgmp3-dev, xutils, dbs, zip, fastjar, ecj-gcj (>= 3.3) [!alpha !arm !hppa !hurd-i386], gij-4.2 [!alpha !arm !hppa !hurd-i386], libgtk2.0-dev, libart-2.0-dev, libxml2-dev, libxslt1-dev, libasound2-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libesd0-dev, libcairo2-dev, libxtst-dev, libx11-dev, libxext-dev, libice-dev, libxt-dev, libgconf2-dev
+Build-Depends: debhelper (>= 5), libpng12-dev, libjpeg62-dev, libungif4-dev, zlib1g-dev, libgmp3-dev, xutils, dbs, zip, fastjar, ecj-gcj (>= 3.3) [!alpha !arm !hppa !hurd-i386], gij-4.2 [!alpha !arm !hppa !hurd-i386], libgtk2.0-dev, libart-2.0-dev, libxml2-dev, libxslt1-dev, libasound2-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libesd0-dev, libcairo2-dev, libxtst-dev, libx11-dev, libxext-dev, libice-dev, libxt-dev, libgconf2-dev, gcc-4.2
 Standards-Version: 3.7.3
 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/kaffe
 Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/kaffe
diff -u kaffe-1.1.8/debian/changelog kaffe-1.1.8/debian/changelog
--- kaffe-1.1.8/debian/changelog
+++ kaffe-1.1.8/debian/changelog
@@ -1,3 +1,12 @@
+kaffe (2:1.1.8-5.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Use gcc-4.2 to avoid gcc using only lowest 8 bits and kaffe
+    compiled code using all bits for truth value testing.
+    Closes: #467486
+
+ -- Thomas Viehmann <tv@beamnet.de>  Tue, 14 Oct 2008 17:54:35 +0200
+
 kaffe (2:1.1.8-5) unstable; urgency=low
 
   * Build-Depends on default-jdk-builddep. Closes: #477868




Reply sent to Thomas Viehmann <tv@beamnet.de>:
You have taken responsibility. (Tue, 14 Oct 2008 19:30:08 GMT) (full text, mbox, link).


Notification sent to Daniel Schepler <schepler@math.berkeley.edu>:
Bug acknowledged by developer. (Tue, 14 Oct 2008 19:30:08 GMT) (full text, mbox, link).


Message #39 received at 467486-close@bugs.debian.org (full text, mbox, reply):

From: Thomas Viehmann <tv@beamnet.de>
To: 467486-close@bugs.debian.org
Subject: Bug#467486: fixed in kaffe 2:1.1.8-5.1
Date: Tue, 14 Oct 2008 19:17:07 +0000
Source: kaffe
Source-Version: 2:1.1.8-5.1

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

jikes-kaffe_1.1.8-5.1_all.deb
  to pool/main/k/kaffe/jikes-kaffe_1.1.8-5.1_all.deb
kaffe-common_1.1.8-5.1_all.deb
  to pool/main/k/kaffe/kaffe-common_1.1.8-5.1_all.deb
kaffe-dev_1.1.8-5.1_all.deb
  to pool/main/k/kaffe/kaffe-dev_1.1.8-5.1_all.deb
kaffe-doc_1.1.8-5.1_all.deb
  to pool/main/k/kaffe/kaffe-doc_1.1.8-5.1_all.deb
kaffe-jthreads_1.1.8-5.1_amd64.deb
  to pool/main/k/kaffe/kaffe-jthreads_1.1.8-5.1_amd64.deb
kaffe-pthreads_1.1.8-5.1_amd64.deb
  to pool/main/k/kaffe/kaffe-pthreads_1.1.8-5.1_amd64.deb
kaffe_1.1.8-5.1.diff.gz
  to pool/main/k/kaffe/kaffe_1.1.8-5.1.diff.gz
kaffe_1.1.8-5.1.dsc
  to pool/main/k/kaffe/kaffe_1.1.8-5.1.dsc
kaffe_1.1.8-5.1_all.deb
  to pool/main/k/kaffe/kaffe_1.1.8-5.1_all.deb



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 467486@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Viehmann <tv@beamnet.de> (supplier of updated kaffe 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 ftpmaster@debian.org)


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

Format: 1.8
Date: Tue, 14 Oct 2008 17:54:35 +0200
Source: kaffe
Binary: kaffe kaffe-jthreads kaffe-pthreads kaffe-common kaffe-dev jikes-kaffe kaffe-doc
Architecture: source all amd64
Version: 2:1.1.8-5.1
Distribution: unstable
Urgency: low
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Thomas Viehmann <tv@beamnet.de>
Description: 
 jikes-kaffe - Wrapper for jikes using Kaffe classes
 kaffe      - A JVM to run Java bytecode
 kaffe-common - Files shared between all Kaffe VM versions
 kaffe-dev  - Header files and other resources for building against Kaffe
 kaffe-doc  - Documentation for the Kaffe VM
 kaffe-jthreads - A green threads enabled version of the Kaffe VM
 kaffe-pthreads - A POSIX threads enabled version of the Kaffe VM
Closes: 467486
Changes: 
 kaffe (2:1.1.8-5.1) unstable; urgency=low
 .
   * Non-maintainer upload.
   * Use gcc-4.2 to avoid gcc using only lowest 8 bits and kaffe
     compiled code using all bits for truth value testing.
     Closes: #467486
Checksums-Sha1: 
 c65c334a26951c834939c5934b91a2d0b4e54d92 1821 kaffe_1.1.8-5.1.dsc
 fbabbba553c4794b3af3212e255bbe7667da52ee 38393 kaffe_1.1.8-5.1.diff.gz
 f2ffae3056db4f69141b86ed71a72ff6ac6308a5 66560 kaffe_1.1.8-5.1_all.deb
 af9addc94225d6b79c0211d10aa09d7f85eb4b54 8246018 kaffe-common_1.1.8-5.1_all.deb
 2f45aa0ed05bf0e4e58dd0314a3e4b0d26cd49df 85182 kaffe-dev_1.1.8-5.1_all.deb
 ea81b84bb292c83c6dc012e93c98156146a09d70 64938 jikes-kaffe_1.1.8-5.1_all.deb
 fc44f272b0ebdf422a06472b5c320e22bd369b17 154322 kaffe-doc_1.1.8-5.1_all.deb
 d506a4e070054ab739fc53f5caff08ad64debfbe 1511168 kaffe-jthreads_1.1.8-5.1_amd64.deb
 c589e0ae923930da7d2b6b9658073e1ded735fec 1804658 kaffe-pthreads_1.1.8-5.1_amd64.deb
Checksums-Sha256: 
 71009f3f452f4887f149147e78ef0f87d131222b593af92df9ab4809730af04b 1821 kaffe_1.1.8-5.1.dsc
 98c363fad55ef46fcc4e79606bb2d35a4f3ff8aa22e108244d22832f6b534f1b 38393 kaffe_1.1.8-5.1.diff.gz
 2b6d8440ee81aa3c505f589a670c3f60931ec26a7913d5c18b2608ca0bc3eb6a 66560 kaffe_1.1.8-5.1_all.deb
 b098a9ff55fc24f674bb3d73296c60290aa6de94482f50b9ee40217326a67aee 8246018 kaffe-common_1.1.8-5.1_all.deb
 d138ca8ecc76eb730682c417d60909633ec8cc01c857a3be25b06215001511f2 85182 kaffe-dev_1.1.8-5.1_all.deb
 b72f42fb0e6364062e002781fa4b494ac19d57a3a9341eb70761e4febac00f84 64938 jikes-kaffe_1.1.8-5.1_all.deb
 4e3af3cfd6e4b7eb3a91b27b188c1c6b159a921efcb3be1731f512811a09b79c 154322 kaffe-doc_1.1.8-5.1_all.deb
 44af3e51c3a46800aab14ae6d98d1c3e25ae851e3243b8f93abbe4bb8a28f78e 1511168 kaffe-jthreads_1.1.8-5.1_amd64.deb
 4e238ee0cc44880fdc376c59bcd82f3a1d227e3cd74ff02e52749d14436094bc 1804658 kaffe-pthreads_1.1.8-5.1_amd64.deb
Files: 
 74b3bef458419d1cad31425a44627fe0 1821 interpreters optional kaffe_1.1.8-5.1.dsc
 507ebacba2a655ddd260fab6805ad951 38393 interpreters optional kaffe_1.1.8-5.1.diff.gz
 e8292f52ee2bd5a27a733e0bc87e241c 66560 interpreters optional kaffe_1.1.8-5.1_all.deb
 6a975654ebfa8f21b6b53d3bd9580629 8246018 interpreters optional kaffe-common_1.1.8-5.1_all.deb
 100e7d670145829d90e736dc69c254de 85182 interpreters optional kaffe-dev_1.1.8-5.1_all.deb
 78fe646689ede800c33f8930803185c4 64938 interpreters optional jikes-kaffe_1.1.8-5.1_all.deb
 2eaae2972231459c0decfc34f6e5e792 154322 doc optional kaffe-doc_1.1.8-5.1_all.deb
 75526793f5e12a10197407ad50a1f5ae 1511168 interpreters optional kaffe-jthreads_1.1.8-5.1_amd64.deb
 5f0a05772215ae9260dd2c826fc5a9a5 1804658 interpreters optional kaffe-pthreads_1.1.8-5.1_amd64.deb

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

iEYEARECAAYFAkj065gACgkQriZpaaIa1PmlCwCggpHC+zbTumMCn3aQO+qaywvz
2pEAn1lABUv8FuFXQoFpMx8YE0CTpv80
=LpCM
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 23 Nov 2008 07:37:28 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 12 02:27:07 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.