[NEW BUG]: Configure broken on MIPS (original) (raw)
David Holmes david.holmes at oracle.com
Thu Mar 22 21:04:35 UTC 2018
- Previous message (by thread): [NEW BUG]: Configure broken on MIPS
- Next message (by thread): [NEW BUG]: Configure broken on MIPS
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 23/03/2018 12:13 AM, Erik Joelsson wrote:
Hello,
The fix looks correct, but I'm starting to think that maybe the conditional should be inverted and instead list the architectures that actually use -m64? It seems a whole lot of them don't.
Magnus indicated he was working on a better solution when he put in the quick-fix check for Aarch64. Yes this should only add -m64 on compilers and platforms that support it.
David
/Erik
On 2018-03-21 23:24, Ao Qi wrote: Hi,
I found configure of http://hg.openjdk.java.net/jdk/jdk was broken on MIPS. the output of configure: ... configure: Using default toolchain gcc (GNU Compiler Collection) checking for gcc... /usr/bin/gcc checking resolved symbolic links for CC... /usr/bin/mips64el-linux-gnuabi64-gcc-6 configure: Using gcc C compiler version 6.3.0 [gcc (Debian 6.3.0-18) 6.3.0 20170516] checking whether the C compiler works... no configure: error: in
/home/loongson/aoqi/jdk':_ _configure: error: C compiler cannot create executables_ _See
config.log' for more details configure exiting with result code 77 ... the related content of config.log: ... configure:35256: checking whether the C compiler works configure:35278: /usr/bin/gcc -m64 -m64 conftest.c >&5 gcc: error: unrecognized command line option '-m64' gcc: error: unrecognized command line option '-m64' configure:35282: $? = 1 configure:35320: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGENAME "OpenJDK" | #define PACKAGETARNAME "openjdk" | #define PACKAGEVERSION "jdk9" | #define PACKAGESTRING "OpenJDK jdk9" | #define PACKAGEBUGREPORT "build-dev at openjdk.java.net" | #define PACKAGEURL "http://openjdk.java.net" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:35325: error: in/home/loongson/aoqi/jdk':_ _configure:35327: error: C compiler cannot create executables_ _See
config.log' for more details ...I made a small patch to pass the configure: $ hg diff make/autoconf/flags.m4 diff -r 3acb379b8672 make/autoconf/flags.m4 --- a/make/autoconf/flags.m4 Thu Mar 22 08:09:51 2018 +0800 +++ b/make/autoconf/flags.m4 Thu Mar 22 12:55:00 2018 +0800 @@ -237,7 +237,11 @@ MACHINEFLAG="-q${OPENJDKTARGETCPUBITS}" elif test "x$TOOLCHAINTYPE" != xmicrosoft; then if test "x$OPENJDKTARGETCPU" != xaarch64 && - test "x$OPENJDKTARGETCPU" != xarm; then + test "x$OPENJDKTARGETCPU" != xarm && + test "x$OPENJDKTARGETCPU" != xmips && + test "x$OPENJDKTARGETCPU" != xmipsel && + test "x$OPENJDKTARGETCPU" != xmips64 && + test "x$OPENJDKTARGETCPU" != xmips64el; then MACHINEFLAG="-m${OPENJDKTARGETCPUBITS}" fi fi I think this is the same problem with bug 8199052 and 8199152. Could someone help to review the change? Thanks, Ao Qi
- Previous message (by thread): [NEW BUG]: Configure broken on MIPS
- Next message (by thread): [NEW BUG]: Configure broken on MIPS
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]