请中止或关闭一个运行中的虚拟机运行慢并重试

1270人阅读
iOS_应用(25)
最近升级了xcode打包后出现了个BUG,记录解决的方法。
现象:报错误信息:“......'all-product-headers.yaml' not found"
原因:新增加了第三方库
1.检查工程-Target-Build Settings
设置Defines Module的值是否为YES
“Defines Module = YES”
2.工程-Target-Build Settings - Other Linker Flags
将pod里面涉及到的第三方框架都加上 “AFNetworing” -framework
2.error: Couldn’t materialize
错误信息: error: Couldn't materialize: couldn't get the
value of variable amount: variable not available
error: errored out in DoExecute, couldn't PrepareToExecuteJITExpression.
解决:Release改为Debug
3.dyld: Library not loaded
错误信息:dyld: Library not loaded: /System/Library/Frameworks/UserNotificationsUI.framework/UserNotificationsUI
Referenced from: /var/containers/Bundle/Application/A8-47F7-9C74-3EFB5D2D94A7/***
解决:在低版本的系统中不支持高版本的framework
arget下的Build Phases标签里,
找到Link Binary With Libraries,
在里面找到UserNotifications.framework,
把status由Required 修改成Optional
4.Domain=NSCocoaErrorDomain Code=3000
错误信息:Get deviceToken failed, error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment'
entitlement string found for application" UserInfo={NSLocalizedDescription=no valid
'aps-environment' entitlement string found for application}
解决:打开Push Notifications 为ON
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:28461次
积分:1026
积分:1026
排名:千里之外
原创:77篇
(4)(2)(4)(1)(6)(3)(5)(6)(5)(3)(11)(14)(4)(5)(1)(7)1018人阅读
开发笔记(9)
升级了xcode & &打包untiy IOS工程 出现:Apple LLVM 6.1 Error&
解决办法是设置 BuildSetting----Apple LLVM6.1-code Generation----Optimization Level---None[-00]
我怀疑这个报错应该是unity转换工程的问题,非我们逻辑代码出错。
Optimization Level是指编译器的优化层度,优化后的代码效率比较高,但是可读性比较差,且编译时间更长。&
None:编译器不会尝试优化代码,当你专注解决逻辑错误、编译速度快时使用此项。Do
not use this option for shipping your executable.
Fast:编译器执行简单的优化来提高代码的性能,同时最大限度的减少编译时间,该选项在编译过程中会使用更多的内存。
Faster:编译器执行所有优化,增加编译时间,提高代码的性能。
Fastest:编译器执行所有优化,改善代码的速度,但会增加代码长度,编译速度慢。
Fastest, Smallest:编译器执行所有优化,不会增加代码的长度,它使执行文件占用更少内存的首选方案
/threads/xcode-llvm-6-1-error.332082/
/library/mac/documentation/General/Conceptual/MOSXAppProgrammingGuide/Performance/Performance.html
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:43360次
排名:千里之外
原创:25篇
评论:33条
分享,使我们更优秀。
希望能与同行多多交流。
(1)(4)(1)(2)(3)(6)(7)(1)升级到 10.11 以后 Brew 装不了东西了。。 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
已注册用户请 &
Sponsored by
UCloud 再获 9.6 亿元 D 轮融资,有钱、任性、撒福利!爆款云主机,2核 / 2G / 2M 独享带宽 / 50G 高性能云盘,低至 99 元/月,且优惠补贴期长达 1 年!V2EX 社区用户使用活动码 v2ex-ucloud 注册 UCloud,再送 100 元代金券!
Promoted by
升级到 10.11 以后 Brew 装不了东西了。。
21:33:48 +08:00 · 7269 次点击
搜了半天没有结果 无奈之下只好来此伸手了。。不是程序员所以。。
主要是为了用MTR和Aria2
==& Downloading
Already downloaded: /Library/Caches/Homebrew/pkg-config-0.28.tar.gz
==& ./configure --prefix=/usr/local/Cellar/pkg-config/0.28 --disable-host-tool --with-internal-glib --with-pc-path=/usr/local/lib/pkgconfig:/usr/local/s
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/private/tmp/pkg-config3-nccjm8/pkg-config-0.28':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
READ THIS:
这是log。。
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by pkg-config configure 0.28, which was
generated by GNU Autoconf 2.69.
Invocation command line was
$ ./configure --disable-debug --prefix=/usr/local/Cellar/pkg-config/0.28 --disable-host-tool --with-internal-glib --with-pc-path=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.11
## --------- ##
## Platform. ##
## --------- ##
hostname = Totorias-MacBook-Pro.local
uname -m = x86_64
uname -r = 15.0.0
uname -s = Darwin
uname -v = Darwin Kernel Version 15.0.0: Sun Jul 26 19:48:55 PDT 2015; root:xnu-~15/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X
= unknown
/usr/bin/arch -k
= unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo
= Mach kernel version:
Darwin Kernel Version 15.0.0: Sun Jul 26 19:48:55 PDT 2015; root:xnu-~15/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 16.00 gigabytes
Default processor set: 313 tasks, 1652 threads, 8 processors
Load average: 2.42, Mach factor: 5.56
/bin/machine
= unknown
/usr/bin/oslevel
= unknown
/bin/universe
PATH: /usr/local/Library/ENV/4.3
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2311: checking for a BSD-compatible install
configure:2379: result: /usr/bin/install -c
configure:2390: checking whether build environment is sane
configure:2445: result: yes
configure:2596: checking for a thread-safe mkdir -p
configure:2635: result: ./install-sh -c -d
configure:2642: checking for gawk
configure:2672: result: no
configure:2642: checking for mawk
configure:2672: result: no
configure:2642: checking for nawk
configure:2672: result: no
configure:2642: checking for awk
configure:2658: found /usr/bin/awk
configure:2669: result: awk
configure:2680: checking whether make sets $(MAKE)
configure:2702: result: yes
configure:2818: checking build system type
configure:2832: result: x86_64-apple-darwin15.0.0
configure:2852: checking host system type
configure:2865: result: x86_64-apple-darwin15.0.0
configure:2906: checking how to print strings
configure:2933: result: printf
configure:2966: checking for style of include used by make
configure:2994: result: GNU
configure:3065: checking for gcc
configure:3092: result: clang
configure:3321: checking for C compiler version
configure:3330: clang --version &&5
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin15.0.0
Thread model: posix
configure:3341: $? = 0
configure:3330: clang -v &&5
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin15.0.0
Thread model: posix
configure:3341: $? = 0
configure:3330: clang -V &&5
clang: error: unsupported option '-V -isysroot'
configure:3341: $? = 1
configure:3330: clang -qversion &&5
clang: error: unknown argument: '-qversion'
clang: warning: no such sysroot directory: ''
configure:3341: $? = 1
configure:3361: checking whether the C compiler works
configure:3383: clang
conftest.c
&&5
clang: warning: no such sysroot directory: ''
configure:3387: $? = 0
configure:3435: result: yes
configure:3438: checking for C compiler default output file name
configure:3440: result: a.out
configure:3446: checking for suffix of executables
configure:3453: clang -o conftest
conftest.c
&&5
clang: warning: no such sysroot directory: ''
configure:3457: $? = 0
configure:3479: result:
configure:3501: checking whether we are cross compiling
configure:3509: clang -o conftest
conftest.c
&&5
clang: warning: no such sysroot directory: ''
conftest.c:11:10: fatal error: 'stdio.h' file not found
#include &stdio.h&
^
1 error generated.
configure:3513: $? = 1
configure:3520: ./conftest
./configure: line 3522: ./conftest: No such file or directory
configure:3524: $? = 127
configure:3531: error: in `/private/tmp/pkg-config3-nccjm8/pkg-config-0.28':
configure:3533: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-apple-darwin15.0.0
ac_cv_env_CC_set=set
ac_cv_env_CC_value=clang
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_GLIB_CFLAGS_set=
ac_cv_env_GLIB_CFLAGS_value=
ac_cv_env_GLIB_LIBS_set=
ac_cv_env_GLIB_LIBS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=set
ac_cv_env_PKG_CONFIG_LIBDIR_value=/usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.11
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_TESTS_SHELL_set=
ac_cv_env_TESTS_SHELL_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-apple-darwin15.0.0
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=clang
ac_cv_prog_make_make_set=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /private/tmp/pkg-config3-nccjm8/pkg-config-0.28/missing --run aclocal-1.12'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH=''
AM_DEFAULT_V=''
AM_DEFAULT_VERBOSITY=''
AM_V=''
AR=''
AUTOCONF='${SHELL} /private/tmp/pkg-config3-nccjm8/pkg-config-0.28/missing --run autoconf'
AUTOHEADER='${SHELL} /private/tmp/pkg-config3-nccjm8/pkg-config-0.28/missing --run autoheader'
AUTOMAKE='${SHELL} /private/tmp/pkg-config3-nccjm8/pkg-config-0.28/missing --run automake-1.12'
AWK='awk'
CC='clang'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GCOV=''
GCOV_CFLAGS=''
GLIB_CFLAGS=''
GLIB_LIBS=''
GREP=''
HOST_TOOL_FALSE=''
HOST_TOOL_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INTERNAL_GLIB_FALSE=''
INTERNAL_GLIB_TRUE=''
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /private/tmp/pkg-config3-nccjm8/pkg-config-0.28/missing --run makeinfo'
MANIFEST_TOOL=''
MKDIR_P='./install-sh -c -d'
NATIVE_WIN32_FALSE=''
NATIVE_WIN32_TRUE=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='pkg-config'
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=pkg-config'
PACKAGE_NAME='pkg-config'
PACKAGE_STRING='pkg-config 0.28'
PACKAGE_TARNAME='pkg-config'
PACKAGE_URL=''
PACKAGE_VERSION='0.28'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PKG_CONFIG_LIBDIR='/usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.11'
PKG_CONFIG_PATH=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
TESTS_SHELL=''
VERSION='0.28'
WARN_CFLAGS=''
ac_ct_AR=''
ac_ct_CC='clang'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - &$$tardir&'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin15.0.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin15.0.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-apple-darwin15.0.0'
host_alias=''
host_cpu='x86_64'
host_os='darwin15.0.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /private/tmp/pkg-config3-nccjm8/pkg-config-0.28/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pc_path=''
pdfdir='${docdir}'
prefix='/usr/local/Cellar/pkg-config/0.28'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=''
sysconfdir='${prefix}/etc'
system_include_path=''
system_library_path=''
target_alias=''
use_indirect_deps=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME &pkg-config&
#define PACKAGE_TARNAME &pkg-config&
#define PACKAGE_VERSION &0.28&
#define PACKAGE_STRING &pkg-config 0.28&
#define PACKAGE_BUGREPORT &https://bugs.freedesktop.org/enter_bug.cgi?product=pkg-config&
#define PACKAGE_URL &&
#define PACKAGE &pkg-config&
#define VERSION &0.28&
configure: exit 1
22 回复 &| &直到
09:50:11 +08:00
& & 21:46:58 +08:00
homebrew目前不支持10.11 等正式版
& & 21:54:11 +08:00
简单粗暴的暂时先手动复制cellar目录过去然后link一下 发现基本都还能用
& & 22:02:35 +08:00
@ 这个是可以的,我装了10.10和10.11双系统,就是直接link /usr/local的
& & 22:11:04 +08:00
检查一下有没有 /usr/include,或者 brew config 看一下有没有 clt
你可能需要安装 clt: xcode-select --install
& & 22:15:06 +08:00
homebrew我用着没问题。
应该是权限出错了,看下/usr/local的权限,刚升10.11的时候我的homebrew也报错了,把/usr/local的权限修复了就好了。
& & 22:21:03 +08:00
chown -R `whoami` /usr/local
试了一下 没用
@ 老虎prpr
确实没有clt 显示n/a
现在在尝试安装
& & 22:23:36 +08:00
usr local 要把所有者切换到当前用户,且owner要有7权限
& & 23:53:41 +08:00
我觉得 homebrew 默认安装到 /usr/local 是一个很蛋疼的事情,反正我是把 homebrew 装到用户目录,什么问题都没出过
& & 00:10:17 +08:00
或者可以关闭一个系统功能
& & 00:13:15 +08:00
楼上都不看错误日志吗...
错误是缺头文件,下载 xcode 7 beta,然后
sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer/
& & 01:42:13 +08:00
不是程序员为啥要装预览版。。
& & 04:03:27 +08:00
@ 这个是Public Beta
安装原因主要是因为被Yosemite卡的要怀孕了
& & 04:52:27 +08:00 via Smartisan T1
下一代系统启用Rootless安全机制,有些目录所有用户都没权限,导致一些东西的无法安装,可以在重启时恢复模式取消security integrity protect,我试了,不过然并卵
& & 05:03:21 +08:00 via iPad
折腾、发帖的时间不如降回 10.10 吧。
& & 05:47:58 +08:00 via Android
Brew doctor
& & 06:55:58 +08:00
@ rootless 不影响 homebrew 装的 /usr/local
& & 08:34:23 +08:00
下载Xcode beta
`xcode-select --switch /Applications/Xcode-beta.app`
& & 08:56:25 +08:00
@ pip是不是影响了,有解决办法吗
& & 09:53:22 +08:00
@ 我上周 brew install 的时候发现报错, brew update 报错, brew upgrade 下载了更新包,但是不安装,折腾来折腾去,算事弄好了。
1 、 Xcode 升级到 7 beta ,但是 7 beta 和 6 可以共存,你要考虑是做共存还是直接删了 6 就用 7 beta ;
2 、不知道是我人品不好,还是 7 beta 就这样, Preferences - Locations - Command Line Tools :选项是空的,下拉选择 Xcode 7.0
3 、 brew doctor
根据提示,一条一条的处理报错(我可能是曾经傻逼的用了 su ,报了了没有写全县,所以只能 chown -R 先修改权限;
4 、 brew doctor 没有报错,仅仅是提示 10.11 是预览版,有可能不兼容后, brew update && brew upgrade
5 、 brew install 正常
预祝好运
& & 00:08:01 +08:00
要装 Xcode 7.0 吧
& & 00:34:54 +08:00
万年 10.9 飘过
& & 09:50:11 +08:00
brew doctor & Xcode 7.0
& · & 2273 人在线 & 最高记录 2607 & · &
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.7.5 · 34ms · UTC 09:21 · PVG 17:21 · LAX 02:21 · JFK 05:21? Do have faith in what you're doing.Mac OSX 10.9 上build openjdk8和openjdk7 - 田麦 - ITeye博客
博客分类:
先分享下自己build出来的fastdebug版本的openjdk: ,
=====================================================================================
由于想看下cms gc的debug日志,验证个问题,但是发现jvm的cpp代码里头,要Verbose值为true才能看到debug信息,而,于是就自己动手build出了下jdk。
我的系统是Mac OSX 10.9.2,XCode是Version 5.1 (5B130a),GCC是:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
由于XCode5.0开始不再支持llvm-gcc,并且LLVM5.1废弃了一些编译option,如-fcheck-new等,也把不认识的option当成了错误。而jdk源码包里边的make脚本并不完全支持新版的clang,参数需要调整,所以我build的时候就出了一堆问题。
先是按照跑了跑,但是发现不行,他那个针对macosx版本比较低,在我机器上是跑不过的,不知道怎么解决,就放弃了。然后自己下载自己跑,仍然遇到了很多问题,就到里,根据R大的帮助,才顺利build出来,艰辛啊,5年前build过一次,没成功,尽是挫折,这次有了R大帮忙才成功build出来。这里主要列下JDK8的build过程,JDK7的跟8差不多,有一点点不一样的地方,最后给出。详细的过程是:
1、通过xcode-select选中xcode,由于我习惯性更新系统软件,所以我的xcode是5.1:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
2、安装必须的软件,如git 和 mercurial (hg)
3、安装X11,系统默认好像是没有这个东西,需要下载安装,然后link下
sudo ln -s /usr/X11/include/X11 /usr/include/X11
4、link llvm-gcc和llvm-g++,由于xcode目录下已经没有llvm-gcc和llvm-g++程序,而build jdk的时候会用到,所以需要link过去
sudo ln -s /usr/bin/llvm-g++ /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-g++
sudo ln -s /usr/bin/llvm-gcc /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc
5、另外我还装了Xcode的、freetype,还link了cups,但是我不知道如果不做这些是否会影响build,所以可以先跳过这部,出错了再回来。
6、下载jdk源码
hg clone http://hg.openjdk.java.net/jdk8/jdk8 YourOpenJDK
cd YourOpenJDK
bash ./get_source.sh
jdk8u的地址是http://hg.openjdk.java.net/jdk8u/jdk8u
7、configure,可以参考下YourOpenJDK目录下的README,我直接build fastdebug版本的
./configure --enable-debug --with-target-bits=64
如果是正式版本,./configure后边不需要加参数。configure过程会检查一些配置,然后在YourOpenJDK/build目录下会有macosx-x86_64-normal-server-fastdebug目录,如果不是fastdebug版本,会有macosx-x86_64-normal-server-release目录。这个过程中遇到一个问题:
configure: error: GCC compiler is required
对于这个问题,我查到是YourOpenJDK/common/autoconf/generated-configure.sh里边校验抛出,我直接找到下边文本出现的两个地方给注释掉了......
as_fn_error $? "GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5
8、make,直接./make all的时候遇到了很多问题
遇到了这个,看是clang的参数问题:
clang: error: unknown argument: '-fcheck-new' [-Wunused-command-line-argument-hard-error-in-future]
于是直接打开YourOpenJDK/hotspot/make/bsd/makefiles/gcc.make,把这行(line 193)给注释掉:
#CFLAGS += -fcheck-new
但是继续build还是遇到了很多问题,诸如:
/Users/fanhua/develop/openjdk-home/sources/openjdk8/hotspot/src/share/vm/utilities/globalDefinitions.hpp:754:11: error: enumeration values 'number_of_states' and 'ilgl' not handled in switch [-Werror,-Wswitch]
switch (state) {
/Users/fanhua/develop/openjdk-home/sources/openjdk8/hotspot/src/share/vm/utilities/globalDefinitions.hpp:1108:24: error: implicit conversion changes signedness: 'uintx' (aka 'unsigned long') to 'intptr_t' (aka 'long') [-Werror,-Wsign-conversion]
if (!is_power_of_2(s)) basic_fatal("s must be a power of 2");
~~~~~~~~~~~~~ ^
搞到这里已经搞不定了,于是,按照他的回复,先在YourOpenJDK/hotspot/make/bsd/makefiles/gcc.make(line 334)里边加入Clang5.1的逻辑:
# ifeq ($(USE_CLANG), true)
# # Clang 4.2
# ifeq ($(shell expr $(CC_VER_MAJOR) = 4 \& $(CC_VER_MINOR) = 2), 1)
OPT_CFLAGS/loopTransform.o += $(OPT_CFLAGS/NOOPT)
OPT_CFLAGS/unsafe.o += -O1
# Clang 5.0
ifeq ($(shell expr $(CC_VER_MAJOR) = 5 \& \( $(CC_VER_MINOR) = 0 \| $(CC_VER_MINOR) = 1 \) ), 1)
OPT_CFLAGS/loopTransform.o += $(OPT_CFLAGS/NOOPT)
OPT_CFLAGS/unsafe.o += -O1
OPT_CFLAGS/graalCompilerToVM.o += -O1
第一个ifeq那里,这个make file其实已经有了,所以注释掉。:
YourOpenJDK/hotspot/src/share/vm/code/relocInfo.hpp
最后,用R大给出的make命令,用本机安装的JDK7的目录替换命令行中$JAVA_HOME,期待激动人心的时刻吧:
make CC=clang COMPILER_WARNINGS_FATAL=false LFLAGS='-Xlinker -lstdc++' USE_CLANG=true LP64=1 LANG=C ALT_BOOTDIR=$JAVA_HOME ARCH_DATA_MODEL=64 HOTSPOT_BUILD_JOBS=8 all
9、构建成功后,你可以在这个目录下找到相应的jdk包:
YourOpenJDK/build/macosx-x86_64-normal-server-fastdebug/images/
10、如果你要build jdk7,则没有configure过程,直接make
make sanity
先运行上边命令检查环境,根据提示可能要改些环境变量,如$JAVA_HOME要干掉,然后build。其他的对jdk文件修改上跟8一样。
另外还需要改YourOpenJDK7/hotspot/make/bsd/makefiles/gcc.make(line 216),把注释掉一些,加上下边那段,那是我从jdk8的相应文件里边拷出来的:
# Flags for generating make dependency flags.
# ifneq ("${CC_VER_MAJOR}", "2")
# DEPFLAGS = -fpch-deps -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d)
####################replace by me
# Flags for generating make dependency flags.
DEPFLAGS = -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d)
ifeq ($(USE_CLANG),)
ifneq ($(CC_VER_MAJOR), 2)
DEPFLAGS += -fpch-deps
make命令上跟8也不一样,注意ALT_BOOTDIR是JDK6的Home目录,fastdebug_build说明你要build fastdebug版本:
make CC=clang COMPILER_WARNINGS_FATAL=false LFLAGS='-Xlinker -lstdc++' USE_CLANG=true LP64=1 LANG=C ALT_BOOTDIR=/Library/Java/Home ARCH_DATA_MODEL=64 HOTSPOT_BUILD_JOBS=8 fastdebug_build
更多make选项可以make help看。
build成功后,相关的jdk包在这个目录下:
YourOpenJDK7/build/macosx-x86_64-fastdebug/
enjoy it!
论坛回复 /
(4 / 3844)
pulsar_lxl 写道yueyemaitian 写道pulsar_lxl 写道我也没成功,是因为源码改了么?这不应该是一个稳定版了么?Building OpenJDK for target 'all' in configuration 'macosx-x86_64-normal-server-fastdebug'## Starting langtoolsCompiling 2 files for BUILD_TOOLS/work/projects/opensource/openjdk8/langtools/src/share/classes/com/sun/tools/javac/parser/JavacParser.java:305: 错误: 找不到符号&&&&&&& return tk.accepts(S.token(lookahead + 1).kind);&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& ^& 符号:&& 变量 kind介个,我这个文章发了后,mac os升级了,编译期版本也升级了,估计又有啥不兼容了,这需要问问R大好的,那能把你编译成功的fastdebug版给我发一个吗? pulsar. 谢谢!百度云盘,jdk7:/s/1sjqaJ1bjdk8:/s/1mgsSLZE谢谢
yueyemaitian 写道pulsar_lxl 写道我也没成功,是因为源码改了么?这不应该是一个稳定版了么?Building OpenJDK for target 'all' in configuration 'macosx-x86_64-normal-server-fastdebug'## Starting langtoolsCompiling 2 files for BUILD_TOOLS/work/projects/opensource/openjdk8/langtools/src/share/classes/com/sun/tools/javac/parser/JavacParser.java:305: 错误: 找不到符号&&&&&&& return tk.accepts(S.token(lookahead + 1).kind);&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& ^& 符号:&& 变量 kind介个,我这个文章发了后,mac os升级了,编译期版本也升级了,估计又有啥不兼容了,这需要问问R大好的,那能把你编译成功的fastdebug版给我发一个吗? pulsar. 谢谢!百度云盘,jdk7:/s/1sjqaJ1bjdk8:/s/1mgsSLZE
pulsar_lxl 写道我也没成功,是因为源码改了么?这不应该是一个稳定版了么?Building OpenJDK for target 'all' in configuration 'macosx-x86_64-normal-server-fastdebug'## Starting langtoolsCompiling 2 files for BUILD_TOOLS/work/projects/opensource/openjdk8/langtools/src/share/classes/com/sun/tools/javac/parser/JavacParser.java:305: 错误: 找不到符号&&&&&&& return tk.accepts(S.token(lookahead + 1).kind);&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& ^& 符号:&& 变量 kind介个,我这个文章发了后,mac os升级了,编译期版本也升级了,估计又有啥不兼容了,这需要问问R大好的,那能把你编译成功的fastdebug版给我发一个吗? pulsar. 谢谢!
我也没成功,是因为源码改了么?这不应该是一个稳定版了么?Building OpenJDK for target 'all' in configuration 'macosx-x86_64-normal-server-fastdebug'## Starting langtoolsCompiling 2 files for BUILD_TOOLS/work/projects/opensource/openjdk8/langtools/src/share/classes/com/sun/tools/javac/parser/JavacParser.java:305: 错误: 找不到符号&&&&&&& return tk.accepts(S.token(lookahead + 1).kind);&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& ^& 符号:&& 变量 kind介个,我这个文章发了后,mac os升级了,编译期版本也升级了,估计又有啥不兼容了,这需要问问R大
没成功!!!jvm源码又改了不少吧,LLVM群组中,求教R大看看?
yueyemaitian
浏览: 201500 次
来自: 杭州
你这么牛逼,你父母知道吗
谢楼主,构建成功了
?????
walle1027 写道学习了,正式想要的

我要回帖

更多关于 请不要在虚拟机中运行 的文章

 

随机推荐