[NEW BUG]: Configure broken on MIPS (original) (raw)

Ao Qi aoqi at loongson.cn
Thu Mar 22 06:24:35 UTC 2018


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 @@ MACHINE_FLAG="-q${OPENJDK_TARGET_CPU_BITS}" elif test "x$TOOLCHAIN_TYPE" != xmicrosoft; then if test "x$OPENJDK_TARGET_CPU" != xaarch64 &&

I think this is the same problem with bug 8199052 and 8199152. Could someone help to review the change?

Thanks, Ao Qi



More information about the build-dev mailing list