openharmony 交叉编译openjdk报错

openjdk17,ubuntu20.04,OHOS (dev) clang version 15.0.4

configure 命令为

./configure --openjdk-target=aarch64-linux --with-toolchain-type=clang --with-debug-level=slowdebug

错误信息如下:

checking for aarch64-linux-ld... [not found]
checking for ld... /usr/bin/ld
configure: Using clang linker version 2.38 [GNU ld (GNU Binutils for Ubuntu) 2.38]
configure: WARNING: Ignoring value of AR from the environment. Use command line variables instead.
checking for aarch64-linux-ar... [not found]
checking for ar... /usr/bin/ar
configure: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead.
checking for aarch64-linux-strip... [not found]
checking for strip... /usr/bin/strip
configure: WARNING: Ignoring value of NM from the environment. Use command line variables instead.
checking for aarch64-linux-nm... [not found]
checking for nm... /usr/bin/nm
configure: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead.
checking for aarch64-linux-gobjcopy... [not found]
checking for gobjcopy... [not found]
checking for aarch64-linux-objcopy... [not found]
checking for objcopy... /usr/bin/objcopy
configure: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead.
checking for aarch64-linux-gobjdump... [not found]
checking for gobjdump... [not found]
checking for aarch64-linux-objdump... [not found]
checking for objdump... /usr/bin/objdump
checking for aarch64-linux-c++filt... [not found]
checking for c++filt... /usr/bin/c++filt
checking for cc... /usr/bin/cc
checking for CC... [not found]
checking for g++... /usr/bin/g++
checking for nm... /usr/bin/nm
checking for ar... /usr/bin/ar
checking for objcopy... /usr/bin/objcopy
checking for strip... /usr/bin/strip
configure: The BuildC compiler (located as /usr/bin/cc) does not seem to be the required clang compiler.
configure: The result from running with --version was: "cc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
configure: error: A clang compiler is required. Try setting --with-tools-dir.
configure exiting with result code 1

请问这是什么问题,有人做过oh平台上的jdk编译吗?

openharmony
openjdk
编译
2024-06-15 16:43:01
浏览
已于2024-6-15 16:46:21修改
收藏 0
回答 0
待解决
相关问题
OpenHarmony 编译原生设置settings报错
1591浏览 • 0回复 待解决
Openharmony 编译 openssl 依赖 icu库报错
671浏览 • 0回复 待解决
OpenHarmony-v4.0-Beta1 编译报错,求助
3084浏览 • 3回复 待解决
NDK开发是否有提供交叉编译工具
429浏览 • 1回复 待解决
OpenHarmony dcts无法编译通过
2131浏览 • 0回复 待解决
openHarmony2.0 hb编译问题
9239浏览 • 5回复 待解决
openharmony 新建third_party编译不到
3589浏览 • 1回复 待解决
编译报错没有堆栈信息
466浏览 • 1回复 待解决
openharmony编译安装hb前遇到这问题
6062浏览 • 1回复 待解决
下载编译Full-SDK报错
1113浏览 • 1回复 待解决
搭建鸿蒙环境时,编译报错
10618浏览 • 4回复 待解决
OpenHarmony-2.2-Beta2 编译失败,求助
7231浏览 • 1回复 已解决
初次安装DevEco Studio编译报错
5728浏览 • 1回复 待解决
编译OpenHarmony2.0失败,求助一下
7458浏览 • 3回复 已解决
在Camkelist配置so后,编译报错
267浏览 • 1回复 待解决
@Sendable编译报错,有什么方法解决?
460浏览 • 1回复 待解决