编译java-1.8.0-openjdk,龙芯的新版本 SRPM 。结果失败……

1、不兼容新版 GCC 的要求,需要加 -fpermissive
2、又不兼容新版 GCC 默认的 C++11 ,需要加 -std=c++98
3、结果编译后面 SIGSEGV ……
Compiling 162 files for BUILD_TOOLS
Generating exceptions classes
Generating icon classes
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00000000002f9784, pid=8123, tid=1099088916960
#
# JRE version: OpenJDK Runtime Environment (8.0_25-b17) (build 1.8.0_25-rc25-b17)
# Java VM: OpenJDK 64-Bit Server VM (25.25-b02 mixed mode linux-mips64 compressed oops)
# Problematic frame:
# <Error> 32-bit pc: 55002f9784
C 0x00000055002f9784
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/mockbuild/rpmbuild/BUILD/java-1.8.0-openjdk-1.8.0.60-1.b32.rc26.fc27.mips64el/jdk8-mips/jdk/make/hs_err_pid8123.log
<Error> 32-bit pc: 55002f9784
Compiled method (c2) 3008 169 com.sun.tools.javac.file.ZipFileIndex$Entry::compareTo (9 bytes)
total in heap [0x00000000002f9510,0x00000000002f9c78] = 1896
relocation [0x00000000002f9630,0x00000000002f9650] = 32
main code [0x00000000002f9650,0x00000000002f9a20] = 976
stub code [0x00000000002f9a20,0x00000000002f9a60] = 64
metadata [0x00000000002f9a60,0x00000000002f9a88] = 40
scopes data [0x00000000002f9a88,0x00000000002f9b90] = 264
scopes pcs [0x00000000002f9b90,0x00000000002f9c30] = 160
dependencies [0x00000000002f9c30,0x00000000002f9c38] = 8
nul chk table [0x00000000002f9c38,0x00000000002f9c78] = 64
Compiled method (c2) 3008 193 ! com.sun.tools.javac.jvm.ClassReader::classSigToType (498 bytes)
total in heap [0x00000000003184d0,0x000000000031ab60] = 9872
relocation [0x00000000003185f0,0x0000000000318710] = 288
main code [0x0000000000318710,0x0000000000319c00] = 5360
stub code [0x0000000000319c00,0x0000000000319e50] = 592
oops [0x0000000000319e50,0x0000000000319e68] = 24
metadata [0x0000000000319e68,0x0000000000319ef8] = 144
scopes data [0x0000000000319ef8,0x000000000031a5d0] = 1752
scopes pcs [0x000000000031a5d0,0x000000000031a930] = 864
dependencies [0x000000000031a930,0x000000000031a950] = 32
handler table [0x000000000031a950,0x000000000031ab00] = 432
nul chk table [0x000000000031ab00,0x000000000031ab60] = 96
<Error> 32-bit pc: 55002f9784
<Error> 32-bit pc: 55002f9784
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#
/bin/sh: line 1: 8123 Aborted (core dumped) /usr/lib/jvm/java-openjdk/bin/java -XX:+UseSerialGC -Xms32M -Xmx512M "-Xbootclasspath/p:/home/mockbuild/rpmbuild/BUILD/java-1.8.0-openjdk-1.8.0.60-1.b32.rc26.fc27.mips64el/jdk8-mips/build/linux-mips64-normal-server-release/langtools/dist/bootstrap/lib/javac.jar" -cp /home/mockbuild/rpmbuild/BUILD/java-1.8.0-openjdk-1.8.0.60-1.b32.rc26.fc27.mips64el/jdk8-mips/build/linux-mips64-normal-server-release/langtools/dist/bootstrap/lib/javac.jar com.sun.tools.javac.Main -source 7 -target 7 -bootclasspath /usr/lib/jvm/java-openjdk/jre/lib/rt.jar -Xlint:all,-deprecation,-unchecked,-rawtypes,-cast,-serial,-dep-ann,-static,-fallthrough,-try,-varargs,-empty,-finally -implicit:none -sourcepath "/home/mockbuild/rpmbuild/BUILD/java-1.8.0-openjdk-1.8.0.60-1.b32.rc26.fc27.mips64el/jdk8-mips/jdk/make/src/classes:/home/mockbuild/rpmbuild/BUILD/java-1.8.0-openjdk-1.8.0.60-1.b32.rc26.fc27.mips64el/jdk8-mips/jdk/src/solaris/classes/sun/awt/X11/generator" -d /home/mockbuild/rpmbuild/BUILD/java-1.8.0-openjdk-1.8.0.60-1.b32.rc26.fc27.mips64el/jdk8-mips/build/linux-mips64-normal-server-release/jdk/btclasses @/home/mockbuild/rpmbuild/BUILD/java-1.8.0-openjdk-1.8.0.60-1.b32.rc26.fc27.mips64el/jdk8-mips/build/linux-mips64-normal-server-release/jdk/btclasses/_the.BUILD_TOOLS_batch.tmp
gmake[2]: *** [Tools.gmk:41: /home/mockbuild/rpmbuild/BUILD/java-1.8.0-openjdk-1.8.0.60-1.b32.rc26.fc27.mips64el/jdk8-mips/build/linux-mips64-normal-server-release/jdk/btclasses/_the.BUILD_TOOLS_batch] Error 134
gmake[1]: *** [BuildJdk.gmk:55: gensrc-only] Error 2
make: *** [/home/mockbuild/rpmbuild/BUILD/java-1.8.0-openjdk-1.8.0.60-1.b32.rc26.fc27.mips64el/jdk8-mips//make/Main.gmk:116: jdk-only] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.huDpeW (%build)
为了能成功,前面设置了环境变量
export CFLAGS="-march=mips64r2 -mabi=64 -O0 -pipe -fpermissive -std=c++98"
可惜还是失败了……

用龙芯,就必须生活在几年前吗?
还是说因为我去掉了 prelink 和 lesstif-devel 导致的?
已邀请:

heiher

赞同来自:

可以试下 -march=loongson3a

要回复问题请先登录注册