ubuntu 编译 jdk (三)

在尝试编译JDK8时遇到了问题。首先使用`./configure --enable-debug --with-target-bits=64`出现错误,然后改为`./configure --with-target-bits=64`,但发现configure文件丢失。重新运行后,由于权限问题仍然报错。经过研究,可能是由于系统工具(如gcc)与旧版JDK8之间的不匹配。解决方案是升级到最新版本的JDK8,但这需要大规模的返工。
摘要由CSDN通过智能技术生成

 

root@ubuntu:/home/gap/jdk8u# make    

WARNING: You have the following ALT_ variables set:
ALT_OUTPUTDIR=/home/gap/build
ALT_ variables are deprecated and will be ignored. Please clean your environment.

Building OpenJDK for target 'default' in configuration 'linux-x86_64-normal-server-fastdebug'

## Starting langtools
/bin/sh: 1: cd: can't cd to /home/gap/jdk8u/langtools/make
/home/gap/jdk8u//make/Main.gmk:84: recipe for target 'langtools-only' failed
make: *** [langtools-only] Error 2

前面参考的JVM那本书上的,本想指定编译输出目录,结果报错。这里也看的出来,因为我以configure配置时,搞成了.

bash ./configure --enable-debug --with-target-bits=64

返工。bash ./configure  --with-target-bits=64

root@ubuntu:/home/gap/jdk8u# make clean
Cleaning langtools build artifacts ... done
Cleaning corba build artifacts ... done
Cleaning jaxp build artifacts ... done
Cleaning jaxws build artifacts ... done
Cleaning hotspot build artifacts ... done
Cleaning jdk build artifacts ... done
Cleaning nashorn build artifacts ... done
Cleaning images build artifacts ... done
Cleaning overlay-images build artifacts ... done
Cleaning bootcycle-build build artifacts ... done
Cleaning docs build artifacts ... done
Cleaning docstemp build artifacts ... done
Cleaning testoutput build artifacts ... done
Cleaned all build artifacts.
root@ubuntu:/home/gap/jdk8u# bash ./configure  --with-target-bits=64
bash: ./configure : No such file or directory

操,configure文件都不在了。

root@ubuntu:/home/gap/jdk8u# make help

OpenJDK Makefile help
=====================

Common make targets
.  make [default]         # Compile all product in langtools, hotspot, jaxp, jaxws,
.                         # corba and jdk
.  make all               # Compile everything, all repos and images
.  make images            # Create complete j2sdk and j2re images
.  make docs              # Create javadocs
.  make overlay-images    # Create limited images for sparc 64 bit platforms
.  make profiles          # Create complete j2re compact profile images
.  make bootcycle-images  # Build images twice, second time with newly build JDK
.  make install           # Install the generated images locally
.  make clean             # Remove all files generated by make, but not those
.                         # generated by configure
.  make dist-clean        # Remove all files, including configuration
.  make help              # Give some help on using make
.  make test              # Run tests, default is all tests (see TEST below)

Targets for specific components
(Component is any of langtools, corba, jaxp, jaxws, hotspot, jdk, nashorn, images, overlay-images, docs or test)
.  make <component>       # Build <component> and everything it depends on. 
.  make <component>-only  # Build <component> only, without dependencies. This
.                         # is faster but can result in incorrect build results!
.  make clean-<component> # Remove files generated by make for <component>

Useful make variables
.  make CONF=             # Build all configurations (note, assignment is empty)
.  make CONF=<substring>  # Build the configuration(s) with a name matching
.                         # <substring>

.  make LOG=<loglevel>    # Change the log level from warn to <loglevel>
.                         # Available log levels are:
.                         # 'warn' (default), 'info', 'debug' and 'trace'
.                         # To see executed command lines, use LOG=debug

.  make JOBS=<n>          # Run <n> parallel make jobs
.                         # Note that -jN does not work as expected!

.  make test TEST=<test>  # On
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值