jdk-JDK8构建报错了,哪位大神帮忙看下原因?

问题描述

JDK8构建报错了,哪位大神帮忙看下原因?

我的代码是从java.net网站下载的,名称为openjdk-8-src-b132-03_mar_2014.zip

CPU:i54469

OS:Ubuntu 15.04

执行CONFIGURE之前需要 unset JAVA_TOOL_OPTIONS

configure执行成功后,运行下面语句报错了,具体错误请看标黄的部分

/Desktop/openjdk$ make CONF=linux-x86_64-normal-server-fastdebug
Building 'linux-x86_64-normal-server-fastdebug' (matching CONF=linux-x86_64-normal-server-fastdebug)
Building OpenJDK for target 'default' in configuration 'linux-x86_64-normal-server-fastdebug'

Starting langtools

Finished langtools (build time 00:00:00)

Starting hotspot

make[2]: warning: -jN forced in submake: disabling jobserver mode.
INFO: ENABLE_FULL_DEBUG_SYMBOLS=1
INFO: ALT_OBJCOPY=/usr/bin/objcopy
INFO: /usr/bin/objcopy cmd found so will create .debuginfo files.
INFO: STRIP_POLICY=min_strip
INFO: ZIP_DEBUGINFO_FILES=1
INFO: ENABLE_FULL_DEBUG_SYMBOLS=1
INFO: ALT_OBJCOPY=/usr/bin/objcopy
INFO: /usr/bin/objcopy cmd found so will create .debuginfo files.
INFO: STRIP_POLICY=min_strip
INFO: ZIP_DEBUGINFO_FILES=1/usr/bin/make: invalid option -- '/'/usr/bin/make: invalid option -- 'a'/usr/bin/make: invalid option -- '/'/usr/bin/make: invalid option -- 'c'Usage: make [options] [target] ...Options:
-b, -m Ignored for compatibility.
-B, --always-make Unconditionally make all targets.
-C DIRECTORY, --directory=DIRECTORY
Change to DIRECTORY before doing anything.
-d Print lots of debugging information.
--debug[=FLAGS] Print various types of debugging information.
-e, --environment-overrides
Environment variables override makefiles.
--eval=STRING Evaluate STRING as a makefile statement.
-f FILE, --file=FILE, --makefile=FILE
Read FILE as a makefile.
-h, --help Print this message and exit.
-i, --ignore-errors Ignore errors from recipes.
-I DIRECTORY, --include-dir=DIRECTORY
Search DIRECTORY for included makefiles.
-j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg.
-k, --keep-going Keep going when some targets can't be made.
-l [N], --load-average[=N], --max-load[=N]
Don't start multiple jobs unless load is below N.
-L, --check-symlink-times Use the latest mtime between symlinks and target.
-n, --just-print, --dry-run, --recon
Don't actually run any recipe; just print them.
-o FILE, --old-file=FILE, --assume-old=FILE
Consider FILE to be very old and don't remake it.
-O[TYPE], --output-sync[=TYPE]
Synchronize output of parallel jobs by TYPE.
-p, --print-data-base Print make's internal database.
-q, --question Run no recipe; exit status says if up to date.
-r, --no-builtin-rules Disable the built-in implicit rules.
-R, --no-builtin-variables Disable the built-in variable settings.
-s, --silent, --quiet Don't echo recipes.
-S, --no-keep-going, --stop
Turns off -k.
-t, --touch Touch targets instead of remaking them.
--trace Print tracing information.
-v, --version Print the version number of make and exit.
-w, --print-directory Print the current directory.
--no-print-directory Turn off -w, even if it was turned on implicitly.
-W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
Consider FILE to be infinitely new.
--warn-undefined-variables Warn when an undefined variable is referenced.

This program built for x86_64-pc-linux-gnu
Report bugs to bug-make@gnu.org
make[5]: *** [ad_stuff] Error 2
/home/dxt/Desktop/openjdk/hotspot/make/linux/makefiles/top.make:91: recipe for target 'ad_stuff' failed
/home/dxt/Desktop/openjdk/hotspot/make/linux/Makefile:289: recipe for target 'fastdebug' failed
make[4]: *** [fastdebug] Error 2
Makefile:216: recipe for target 'generic_build2' failed
make[3]: *** [generic_build2] Error 2
Makefile:167: recipe for target 'fastdebug' failed
make[2]: *** [fastdebug] Error 2
HotspotWrapper.gmk:44: recipe for target '/home/dxt/Desktop/openjdk/build/linux-x86_64-normal-server-fastdebug/hotspot/_hotspot.timestamp' failed
make[1]: *** [/home/dxt/Desktop/openjdk/build/linux-x86_64-normal-server-fastdebug/hotspot/_hotspot.timestamp] Error 2
/home/dxt/Desktop/openjdk//make/Main.gmk:108: recipe for target 'hotspot-only' failed
make: *** [hotspot-only] Error 2
dxt@dxt-All-Series:~/Desktop/openjdk$ pon dsl-provider
Plugin rp-pppoe.so loaded.

解决方案

确切的说是openjdk/hotspot/make/linux/makefiles/top.make的第91行报错了
86 $(Cached_plat): $(Plat_File)
87 $(CDG) cp $(Plat_File) $(Cached_plat)
88
89 # make AD files as necessary
90 ad_stuff: $(Cached_plat) $(adjust-mflags)
91 @$(MAKE) -f adlc.make $(MFLAGS-adjusted)
92
93 # generate JVMTI files from the spec
94 jvmti_stuff: $(Cached_plat) $(adjust-mflags)
95 @$(MAKE) -f jvmti.make $(MFLAGS-adjusted)

解决方案二:

请问一下,有解决的方法没有?我也碰到了,但是用virtualbox 安装的32位14.04ubuntu下,32 位openjdk8,一点问题都没有,可以编通。真机64位ubuntu 16.04就是不可以

时间: 2024-10-30 01:48:36

jdk-JDK8构建报错了,哪位大神帮忙看下原因?的相关文章

Navicat出现这个报错 哪位大神帮忙看下

问题描述 Navicat出现这个报错 哪位大神帮忙看下 今天重装了C盘之后 打开navicat就这样了 本人小白 不明白这个报错是什么意思 解决方案 是我的mysql出现问题了吗 如果是 我已经重新安装mysql好几次了 还是有这样的错误 不明白 解决方案二: 没遇到过这问题,度娘吧

jsp-求教:哪位大神帮忙看下代码,本人小白,实在不知道哪里有问题!!

问题描述 求教:哪位大神帮忙看下代码,本人小白,实在不知道哪里有问题!! 代码如下,登陆页面,把java逻辑放到了后台页面上,运行的时候没有报错,但是不跳转.测试账号密码正确不跳转因为没写,但是测试账号密码错误的情况下也不跳转. <%@ page language=""java"" import=""java.util.*java.sql.*info.DataBase"" pageEncoding=""

html-插入jstl标签报错,求大神帮忙看下,网上解决方案都是错的

问题描述 插入jstl标签报错,求大神帮忙看下,网上解决方案都是错的 com.neusoft.unieap.action.EAPActionServlet.process(EAPActionServlet.java:814) >> org.apache.jasper.JasperException: Validation error messages from TagLibraryValidator for c null: org.xml.sax.SAXParseException: Attr

哪位大神帮忙看下这个脚本有什么错误,谢谢

问题描述 哪位大神帮忙看下这个脚本有什么错误,谢谢 #! /bin/sh RUN_COMMAND="/bin/sh " if [["$1" == ""]] then exit fi for x in "$@" do if [[${x:-7}=="libtool"]] then RUN_COMMAND=$RUN_COMMAND' '$x else if [[${x:-11} == "/libgdal

jar-web启动出错了,求大神帮忙看下!!

问题描述 web启动出错了,求大神帮忙看下!! 谁知道是怎么回事啊.看不懂求解释 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in URL [jar:file:/G:/apache-tomcat-7.0.59/webapps/llsfw-web/WEB-INF/lib/llsfw-core-

asp.net-各位大神帮忙看下我这哪里错了

问题描述 各位大神帮忙看下我这哪里错了 这是Dal层代码这是问题,该怎么改呢 解决方案 求助大神.....大神请进来帮忙 解决方案二: 首先你把你GetList()方法中拼接的strSql 拿到数据库里面执行一下,看看语法是否正确, 如果没问题,可能是DbHelperSQL.Query()这个封装的方法里面跟你的sql语句起了冲突.最好能单步调试进去这个方法看一下就知道为什么了. 解决方案三: sql的问题,你下个断点,输出下strsql,里面有不正确的字符.已经提示了,错误在1附近.你的sql

使用newtonsoft.net反序列老是报错,请大神帮忙看下

问题描述 这个是我定义的实体类publicList<Bill>JsonResult{get;set;}publicstringResultType{get;set;}publicstringStatus{get;set;}publicstringMessage{get;set;}publicclassBill{publicstring欠费ID{get;set;}publicint用户ID{get;set;}publicint水表号{get;set;}//[JsonConverter(typeo

编程-跪求大神帮忙看下代码,错了不晓得怎么改哦

问题描述 跪求大神帮忙看下代码,错了不晓得怎么改哦 switch (uMsg) { case WM_CHAR: char szChar[20]; sprintf(_T(szChar),_T( "char code is %d"), wParam); 错误 1 error C2065: "LszChar": 未声明的标识符 IntelliSense: "const wchar_t *" 类型的实参与 "const char *"

c语言-刚学C,编了个小程序出错了,请大神帮忙看一下。

问题描述 刚学C,编了个小程序出错了,请大神帮忙看一下. 知道长方形的长和宽,求面积和周长 #include main() { float x,y,a,b; printf ("请输入长和宽且用逗号分隔:); scanf ("%f,%f,&x,&y); a=x*y; b=(x+y)*2; printf ("面积=%f,周长=%fn",a,b); } 解决方案 错误一:include后面缺少头文件包含 错误二:printf中没有右半边的引号 错误三:sc