Your message dated Thu, 26 Nov 2015 12:46:38 +0000
with message-id <[email protected]>
and subject line Bug#805846: fixed in openjdk-7 7u91-2.6.3-2
has caused the Debian Bug report #805846,
regarding openjdk-7: FTBFS on sparc64, missing asm/ptrace header, patch attached
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
805846: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=805846
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: openjdk-7
Severity: important
Tags: patch
Justification: fails to build from source
User: [email protected]
Usertags: sparc64

Dear Maintainer,

Currently openjdk-7 is configured to use the zero vm on
sparc64. However zero doesn't seem to build. If hotspot is enabled for
sparc64 the build fails with several similar errors concerning a
struct, you can see here:

https://buildd.debian.org/status/fetch.php?pkg=openjdk-7&arch=sparc64&ver=7u85-2.6.1-1&stamp=1441319505

/«PKGBUILDDIR»/build/openjdk-boot/hotspot/agent/src/os/linux/ps_core.c: In 
function 'core_handle_prstatus':
/«PKGBUILDDIR»/build/openjdk-boot/hotspot/agent/src/os/linux/ps_core.c:542:49: 
error: invalid application of 'sizeof' to incomplete type 'struct pt_regs'
    memcpy(&newthr->regs, prstat->pr_reg, sizeof(struct user_regs_struct));
                                                 ^
In file included from 
/«PKGBUILDDIR»/build/openjdk-boot/hotspot/agent/src/os/linux/LinuxDebuggerLocal.c:27:0:
/«PKGBUILDDIR»/build/openjdk-boot/hotspot/agent/src/os/linux/libproc.h:80:27: 
warning: 'struct pt_regs' declared inside parameter list
 #define user_regs_struct  pt_regs
                           ^
/«PKGBUILDDIR»/build/openjdk-boot/hotspot/agent/src/os/linux/libproc.h:114:65: 
note: in expansion of macro 'user_regs_struct'
 bool get_lwp_regs(struct ps_prochandle* ph, lwpid_t lid, struct 
user_regs_struct* regs);
                                                                 ^
/«PKGBUILDDIR»/build/openjdk-boot/hotspot/agent/src/os/linux/libproc.h:80:27: 
warning: its scope is only this definition or declaration, which is probably 
not what you want
 #define user_regs_struct  pt_regs
                           ^
/«PKGBUILDDIR»/build/openjdk-boot/hotspot/agent/src/os/linux/libproc.h:114:65: 
note: in expansion of macro 'user_regs_struct'
 bool get_lwp_regs(struct ps_prochandle* ph, lwpid_t lid, struct 
user_regs_struct* regs);


What's happening is that 'user_regs_struct' is defined to be 'pt_regs'
but 'pt_regs' isn't declared anywhere so the compiler interprets the
first use of 'struct user_regs_struct' to be the declaration. Then
because it's not fully defined the compiler complains that it doesn't
know the size of the incomplete type and the build fails.

So the real problem is 'struct pt_regs'.

A simple fix would be to add the header 'asm/ptrace.h' to the file
'openjdk/hotspot/agent/src/os/linux/libproc.h'. With this change the
build completes successfully for me. I've attached a patch to achieve
this.

If sparc64 is added to the list of hotspot archs and this patch
included in DISTRIBUTION_PATCHES in debian/rules should fix the
build for sparc64.

Thanks!
David


-- System Information:
Debian Release: stretch/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: sparc64

Kernel: Linux 4.3.0-gentoo (SMP w/1 CPU core)
Locale: LANG=en_SG.UTF-8, LC_CTYPE=en_SG.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect
Index: openjdk/hotspot/agent/src/os/linux/libproc.h
===================================================================
--- openjdk/hotspot/agent/src/os/linux/libproc.h.old	2015-11-12 22:57:20.000000000 -0600
+++ openjdk/hotspot/agent/src/os/linux/libproc.h		2015-11-22 10:49:17.684049960 -0600
@@ -34,6 +34,7 @@
 #include "libproc_md.h"
 #endif
 
+#include <asm/ptrace.h>
 #include <sys/ptrace.h>
 
 /************************************************************************************

--- End Message ---
--- Begin Message ---
Source: openjdk-7
Source-Version: 7u91-2.6.3-2

We believe that the bug you reported is fixed in the latest version of
openjdk-7, which is due to be installed in the Debian FTP archive.

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.
Matthias Klose <[email protected]> (supplier of updated openjdk-7 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: SHA256

Format: 1.8
Date: Wed, 25 Nov 2015 23:38:54 +0100
Source: openjdk-7
Binary: openjdk-7-jdk openjdk-7-jre-headless openjdk-7-jre openjdk-7-jre-lib 
openjdk-7-demo openjdk-7-source openjdk-7-doc openjdk-7-dbg icedtea-7-jre-jamvm 
openjdk-7-jre-zero
Architecture: source amd64 all
Version: 7u91-2.6.3-2
Distribution: unstable
Urgency: medium
Maintainer: OpenJDK Team <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Description:
 icedtea-7-jre-jamvm - Alternative JVM for OpenJDK, using JamVM
 openjdk-7-dbg - Java runtime based on OpenJDK (debugging symbols)
 openjdk-7-demo - Java runtime based on OpenJDK (demos and examples)
 openjdk-7-doc - OpenJDK Development Kit (JDK) documentation
 openjdk-7-jdk - OpenJDK Development Kit (JDK)
 openjdk-7-jre - OpenJDK Java runtime, using ${vm:Name}
 openjdk-7-jre-headless - OpenJDK Java runtime, using ${vm:Name} (headless)
 openjdk-7-jre-lib - OpenJDK Java runtime (architecture independent libraries)
 openjdk-7-jre-zero - Alternative JVM for OpenJDK, using Zero/Shark
 openjdk-7-source - OpenJDK Development Kit (JDK) source files
Closes: 805846
Changes:
 openjdk-7 (7u91-2.6.3-2) unstable; urgency=medium
 .
   * Enable sparc64 for hotspot (John Paul Adrian Glaubitz).
   * Add debian/patches/sparc-libproc-fix.diff to include missing
     headers on sparc64 (David Matthew Mattli). Closes: #805846.
Checksums-Sha1:
 d48dffc2d6feed1eb6fd339a4affc0923091aab1 4700 openjdk-7_7u91-2.6.3-2.dsc
 17fb084168c9d29e50e412492702647c2a6deca3 160800 
openjdk-7_7u91-2.6.3-2.debian.tar.xz
 3042b9d550021941cd493b1200761b45f5987f2f 474604 
icedtea-7-jre-jamvm_7u91-2.6.3-2_amd64.deb
 c3b9a2d6cd527f95215a3e81cfb5fbcb31d645dc 73932946 
openjdk-7-dbg_7u91-2.6.3-2_amd64.deb
 1ee811b5f362b88713a14fb35113479bcf4f502f 1886162 
openjdk-7-demo_7u91-2.6.3-2_amd64.deb
 1492551a4e4b7c1cbcfcfca8c268d93644d51e4a 10955800 
openjdk-7-doc_7u91-2.6.3-2_all.deb
 6a250856b47c4e5d9167fe82e7c086029708d560 16286604 
openjdk-7-jdk_7u91-2.6.3-2_amd64.deb
 a266ace3e046ca28853b67f40a8ce164a3d62217 39787458 
openjdk-7-jre-headless_7u91-2.6.3-2_amd64.deb
 dc8e3f7875048cd970bb4612515f96101f4260d0 76838 
openjdk-7-jre-lib_7u91-2.6.3-2_all.deb
 e4cea273191cad130c089e9e4fc13d88010e17e7 2027518 
openjdk-7-jre-zero_7u91-2.6.3-2_amd64.deb
 c24842f3200474f5c84516b614dff8d06031f10b 174736 
openjdk-7-jre_7u91-2.6.3-2_amd64.deb
 7b2a69f8b23196cca2421aa7dafc3e1ba2e91ebf 39955204 
openjdk-7-source_7u91-2.6.3-2_all.deb
Checksums-Sha256:
 a2a09f945ac57dea99f05b0d8991eb21779ac28cd962dfe17dc68577588376b6 4700 
openjdk-7_7u91-2.6.3-2.dsc
 3050a575a4542425cbf1c2d94fe6405bda8f25ebe754daa87c1f37b4c7509541 160800 
openjdk-7_7u91-2.6.3-2.debian.tar.xz
 57b07ccd3ffff34c5cbd97803906d8cee53e565c173fd5b6c34d4b8e7221940c 474604 
icedtea-7-jre-jamvm_7u91-2.6.3-2_amd64.deb
 716b4711d17aabb3ac798d31550307f5bdeec74f7a08ab4f758eb4b0bea16a29 73932946 
openjdk-7-dbg_7u91-2.6.3-2_amd64.deb
 5963a59c106153c361fe4fdd811a8c25834333563a725c449d087c3a6c3c157c 1886162 
openjdk-7-demo_7u91-2.6.3-2_amd64.deb
 b209cf247bd3dc32172a97dffec2e8b20656b26fca80d3a961431ff54828c3e4 10955800 
openjdk-7-doc_7u91-2.6.3-2_all.deb
 c40c548998112072ec53d8c5ab29dadf471fe4cc7fe1043b5bd22ccbae1bc456 16286604 
openjdk-7-jdk_7u91-2.6.3-2_amd64.deb
 0c4dd3587878a6ffddf3dde2021727262dcfc4748c2c8777874c2636bb50c137 39787458 
openjdk-7-jre-headless_7u91-2.6.3-2_amd64.deb
 78ff1805b57780c498e31c2f9a0fcbfd5f6b8867e3bddc0062b7f22c93adb425 76838 
openjdk-7-jre-lib_7u91-2.6.3-2_all.deb
 4dd11c9235de62a6a7d1729cfca3d189305ca0fbb84985587456fb0337adff3e 2027518 
openjdk-7-jre-zero_7u91-2.6.3-2_amd64.deb
 a03747e0de011f9dc5611b47376e8e7002de3f952bb49308a0d9986b9372d1fb 174736 
openjdk-7-jre_7u91-2.6.3-2_amd64.deb
 c8ab7a47da43e4b5abfd2b33a91b7823cb4b1d490102d898f00e94bf576f1d5d 39955204 
openjdk-7-source_7u91-2.6.3-2_all.deb
Files:
 ebf436995901f287fe670a2d53777454 4700 java optional openjdk-7_7u91-2.6.3-2.dsc
 d22a976344ad7a93d7819867aca1e09c 160800 java optional 
openjdk-7_7u91-2.6.3-2.debian.tar.xz
 27dd86217aaac97e37fe0c695d6d7b08 474604 java extra 
icedtea-7-jre-jamvm_7u91-2.6.3-2_amd64.deb
 adebfb66d6ba145584ae0cafac156399 73932946 debug extra 
openjdk-7-dbg_7u91-2.6.3-2_amd64.deb
 43584b401a9184bf9b4bb3ab7d57ea8c 1886162 java extra 
openjdk-7-demo_7u91-2.6.3-2_amd64.deb
 940e02df13903f2de69ba715aa636ca1 10955800 doc extra 
openjdk-7-doc_7u91-2.6.3-2_all.deb
 4bb5b5396feed7076c085ec42c62a905 16286604 java optional 
openjdk-7-jdk_7u91-2.6.3-2_amd64.deb
 27294a090316d0f440f0d54b12956c4b 39787458 java optional 
openjdk-7-jre-headless_7u91-2.6.3-2_amd64.deb
 04a89b39f8a73898542980cfaa21c148 76838 oldlibs extra 
openjdk-7-jre-lib_7u91-2.6.3-2_all.deb
 8d35eb7b9bc2956601616ff12458d6f9 2027518 java extra 
openjdk-7-jre-zero_7u91-2.6.3-2_amd64.deb
 ef2d98c3bb8943adc276e192427474b8 174736 java optional 
openjdk-7-jre_7u91-2.6.3-2_amd64.deb
 5da4224a95bd36e053b5eb903fda7043 39955204 java extra 
openjdk-7-source_7u91-2.6.3-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJWVvTDAAoJEL1+qmB3j6b1rv4P/jP5+ZX3HnjXhEQ+5NpWHYLy
xgNKAO2C/rcj+FrP+nRpCS9qfDSJQe1j+9zErdn9tYuxdiZ4HiSHBKIdjZrjOz88
ajfHWfJx8/m9/Asv8YRwFqt3J3bKkmmLZBcMaVZnmWOilH6nUB4KLS/ZEqh75Byu
8Y8YZi7be7RCgxMBoF4fQXoYaxgvOVjXH83am+YTqbFem+9Hp0hm2koiU9BCiOVq
6frVG4KLLNGH8Imnj7/GcXQ/yn6oZD56V8nbWE4M4U3RMpXm8kO3hkGE8IKqabLq
g3xNveR9Od+j2aL2u1K5aQ5WOL2NL4utSXoOh4Lfsf1tlCKvzEkV5Jy0Hkni/wA6
/mZr71nN53MDpply6uPgfLh+LphdC993pDm4rQa0Yhl0KWYSnopGhxYaWopYscNV
5l7Ck1pU5620voGfOeND4/zR/uC8pVyhchXzkB4NjslwflAQrD00nY9xj08FcVTa
AT57aqWrUJ6geMuj/2oPGcMmz1pmqfr0WuZpCZf+sSUzrY//Qb9lRNbEuq+SE0LV
KKadjV9lN/h6eSDFvC3yRBCzqgmm1TA9rSZY5o/crqaUyEWlsDJ8ODI/VCW6WyaC
kx9VPEqzE7Ov2h134IKGcny5+aFzNWw7rBy77rJslXqyVwKvigsqN0PbIWAh/Hdd
qRq8P+sJSly3zstKd1IG
=rNZ+
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to