如何写精华回答,获更多曝光?
发布
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编译吗?