Your message dated Thu, 22 Mar 2018 00:08:07 +0000
with message-id <[email protected]>
and subject line Bug#893089: fixed in openjdk-11 11~5-1
has caused the Debian Bug report #893089,
regarding openjdk-11: FTBFS on mips* - uses -m32 / -m64
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.)


-- 
893089: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893089
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: openjdk-11
Version: 11~4-2
Severity: important
Tags: patch

Hi,

openjdk-11 FTBFS on mips* (and I expect others which have not built yet)
with this error:
> configure: Using default toolchain gcc (GNU Compiler Collection)
> configure: Will use user supplied compiler CC=mips-linux-gnu-gcc-7
> checking for mips-linux-gnu-gcc-7... /usr/bin/mips-linux-gnu-gcc-7
> checking resolved symbolic links for CC... no symlink
> configure: Using gcc C compiler version 7.3.0 [mips-linux-gnu-gcc-7 (Debian 
> 7.3.0-11) 7.3.0]
> checking for mips-linux-gnu-/usr/bin/mips-linux-gnu-gcc-7... 
> /usr/bin/mips-linux-gnu-gcc-7
> checking whether the C compiler works... no
> configure: error: in `/<<PKGBUILDDIR>>/build':
> configure: error: C compiler cannot create executables
> See `config.log' for more details
> configure exiting with result code 77
> make: *** [debian/rules:817: stamps/configure] Error 77
> dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit 
> status 2

This happens because the build system inserts a -m32 or -m64 option on
all architectures except arm*.

For Debian this can probably be removed completely, or at least changed
to whitelist the architectures this is supported on (these are the x86,
powerpc, s390 and sparc families I think). I've attached a patch which
does the latter.

Thanks,
James
--- a/make/autoconf/flags.m4
+++ b/make/autoconf/flags.m4
@@ -236,10 +236,11 @@ AC_DEFUN_ONCE([FLAGS_PRE_TOOLCHAIN],
   if test "x$TOOLCHAIN_TYPE" = xxlc; then
     MACHINE_FLAG="-q${OPENJDK_TARGET_CPU_BITS}"
   elif test "x$TOOLCHAIN_TYPE" != xmicrosoft; then
-    if test "x$OPENJDK_TARGET_CPU" != xaarch64 &&
-        test "x$OPENJDK_TARGET_CPU" != xarm; then
-      MACHINE_FLAG="-m${OPENJDK_TARGET_CPU_BITS}"
-    fi
+    case "$OPENJDK_TARGET_CPU" in
+      x86*|ppc*|s390*|sparc*)
+        MACHINE_FLAG="-m${OPENJDK_TARGET_CPU_BITS}"
+        ;;
+    esac
   fi
 
   # FIXME: global flags are not used yet...

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: openjdk-11
Source-Version: 11~5-1

We believe that the bug you reported is fixed in the latest version of
openjdk-11, 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-11 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: Thu, 22 Mar 2018 07:46:26 +0800
Source: openjdk-11
Binary: openjdk-11-jdk-headless openjdk-11-jre-headless openjdk-11-jdk 
openjdk-11-jre openjdk-11-demo openjdk-11-source openjdk-11-doc openjdk-11-dbg 
openjdk-11-jre-zero
Architecture: source
Version: 11~5-1
Distribution: unstable
Urgency: medium
Maintainer: OpenJDK Team <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Description:
 openjdk-11-dbg - Java runtime based on OpenJDK (debugging symbols)
 openjdk-11-demo - Java runtime based on OpenJDK (demos and examples)
 openjdk-11-doc - OpenJDK Development Kit (JDK) documentation
 openjdk-11-jdk - OpenJDK Development Kit (JDK)
 openjdk-11-jdk-headless - OpenJDK Development Kit (JDK) (headless)
 openjdk-11-jre - OpenJDK Java runtime, using
 openjdk-11-jre-headless - OpenJDK Java runtime, using  (headless)
 openjdk-11-jre-zero - Alternative JVM for OpenJDK, using Zero
 openjdk-11-source - OpenJDK Development Kit (JDK) source files
Closes: 893089
Changes:
 openjdk-11 (11~5-1) unstable; urgency=medium
 .
   * OpenJDK 11 build 5.
   * Don't pass -m32/-m64 compiler flags explicitly on architectures not
     understanding these (James Cowgill). Closes: #893089.
   * Update the zero-x32 patch.
Checksums-Sha1:
 c00b6c8beb7b47452b345beba8cb90bce79b1308 4549 openjdk-11_11~5-1.dsc
 e35ac352fb8d37204eaf7996dd4007359b9c511d 71196732 openjdk-11_11~5.orig.tar.xz
 9882f6201b804738b58e5cc4b45f05c6adb07441 167960 openjdk-11_11~5-1.debian.tar.xz
 555412d3d0c31e6358235ab7bb606f66e1d5d344 16695 
openjdk-11_11~5-1_source.buildinfo
Checksums-Sha256:
 5509dd00a84486a3a395fe08eef64978969406e9b8d901cfdb8a39c32b50601d 4549 
openjdk-11_11~5-1.dsc
 e4775b66e989458011c4ed0deff82393c9ab84b905fdc99d1cbed11b504189aa 71196732 
openjdk-11_11~5.orig.tar.xz
 a76581b5b481ac5ca6d3f772808a16ea5f508904a19d3fdeb36e6f80dfa72c7e 167960 
openjdk-11_11~5-1.debian.tar.xz
 0f531ffda9816a9e6e38f47d55a9d2c9783964a93728d2ff9877a7f571364319 16695 
openjdk-11_11~5-1_source.buildinfo
Files:
 a50cc77a76a0392948c932786c8c5990 4549 java optional openjdk-11_11~5-1.dsc
 14cf59956ee943cf8bd99a092334d876 71196732 java optional 
openjdk-11_11~5.orig.tar.xz
 669b84dd38e741915dec5f63d2062c27 167960 java optional 
openjdk-11_11~5-1.debian.tar.xz
 3df076f2634fec0f1450bd965d66e549 16695 java optional 
openjdk-11_11~5-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCAAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAlqy7ysQHGRva29AdWJ1
bnR1LmNvbQAKCRC9fqpgd4+m9TV7D/9NfBZIoWFmGBnCQNCaDXeVr8j19G2yMFN8
lDjYb6MRXr4RjbMa2i3vSGT7VdVnMv8IvWS92+p5cLQvx0N3hwQ3s4rInG4zdceL
l7SZW/cyH/J6RrIQnAJoQYG8owNxlA/jIwI2YOZYGZGKERjoIUTtmAyWBHw9p25e
+1IwLXDPYi8VZFYTa7Gf+dGou8v/aNSvjZFU1zYZZh8tYjFQbEqqYBeCcbGrs7+q
BowJSXxyMCTA9v8n2miNZuBHxwZ/fibm6YkmXZY6GoLHAMxrf0beLyjAICzBUQCH
loQ0zR/pdCLPlWPRTeEwlWh/Tc2DzLFj+sjEzisIqzd07AWqyUrSvNyj7J/tUby5
vBcSqUo6xgXK+F84ARw45iUgirLCqqh6xB22Rxv7FzzmBxoeSMl8B50MFrA14MFy
i9JOLfXbz4I7o1JyryPnuofHyyX4VPlkU4QT0J4Ob6F/O0pW954QfyeZIOY9Fsf6
F+YTvpORkCB1QkFJ7hKDuI8RXhc9EH70WHTkHyjVFs5xCg9jhj/eRzmRF0G8OxgI
4e0Rms8H8HmLFgfhMiRixv1J7n5iY88UlrW8sBwB1qsP2MLHZtfrYX3BqAtE5qAG
EW1/xEVAIf1cFNBrMjm0nXzS5Hx9VhoO8DjoA/fUfXjmfc+IAyR0a53+wNka2fou
7d8WokWKUA==
=BTu3
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to