Cross compiling Openjdk 8 for ARM, can't locate compiler (original) (raw)
Bruno Kremel bruno.kremel at gmail.com
Wed Mar 29 20:23:25 UTC 2017
- Previous message: [8u-dev] Request for approval 8176490: [macosx] Sometimes NSWindow.isZoomed hangs
- Next message: [8u-dev] Request for approval for CR: 8049717: expose L1_data_cache_line_size for diagnostic/sanity checks
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi All,
As I was not able to compile OpenJDK 9 (there is disscussion in other mailing list). I tried to compile OpenJDK 8 precisely changeset 152-b02.
I configure this way:
./configure --with-jvm-interpreter=cpp
--with-jvm-variants=zero --enable-openjdk-only
--with-freetype-include=/linux/buildroot-openjdk8/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/freetype2/linux/buildroot-openjdk8/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib
--with-freetype-lib=
--with-freetype=/linux/buildroot-openjdk8/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr//linux/buildroot-openjdk8/output/host/usr/arm-buildroot-linux-gnueabi/sysroot
--with-debug-level=release --openjdk-target=arm-buildroot-linux-gnueabi
--with-sys-root=
--with-tools-dir=/linux/buildroot-openjdk8/output/host /linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-objcopy
STRIP=
--disable-freetype-bundling --enable-unlimited-crypto --disable-headful
OBJCOPY=/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-strip
CPP_FLAGS=-lstdc++ CXX_FLAGS=-lstdc++
CPP=/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-cpp
CXX=/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-g++/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-gcc
CC=
LD=/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-gcc/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-cpp
BUILD_CPP=
BUILD_CXX=/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-g++/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-gcc
BUILD_CC=
BUILD_LD=~/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-gcc
The configure script seems to have some bug that it can't locate the compiler properly:
... checking for cl... /home/bruno/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-gcc configure: Resolving BUILD_CC (as /home/bruno/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-gcc) faile d, using /home/bruno/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-gcc directly. checking for cl... /home/bruno/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-g++ configure: Resolving BUILD_CXX (as /home/bruno/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-g++) fail ed, using /home/bruno/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-g++ directly. checking for ld... /home/bruno/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-gcc configure: Resolving BUILD_LD (as /home/bruno/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-gcc) faile d, using /home/bruno/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-gcc directly. checking for /home/bruno/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-gcc... no checking for /home/bruno/linux/buildroot-openjdk8/output/host/usr/bin/arm-linux-gnueabi-gcc... no configure: error: Could not find a C compiler. You might be able to fix this by running 'sudo apt-get install build-ess ential'. configure exiting with result code 1 ...
Those files that it claims "no" do exist and they are indeed a GCC crosscompiler. The same parameters work for OpenJDK 9 (it does find the compiler).
How can I resolve this issue?
Thanks Bruno Kremel
- Previous message: [8u-dev] Request for approval 8176490: [macosx] Sometimes NSWindow.isZoomed hangs
- Next message: [8u-dev] Request for approval for CR: 8049717: expose L1_data_cache_line_size for diagnostic/sanity checks
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]