Open axiangyushanhaijing opened 2 years ago
slowdebug构建
CC=/opt/riscv64/bin/riscv64-unknown-linux-gnu-gcc \
CXX=/opt/riscv64/bin/riscv64-unknown-linux-gnu-g++ \
bash configure \
--with-sysroot=/opt/riscv64/sysroot \
--openjdk-target=riscv64-unknown-linux-gnu \
--with-boot-jdk=/home/zhangxiang/jdk-7/java-se-7u75-ri \
--with-jvm-variants=core \
--with-debug-level=slowdebug \
--with-native-debug-symbols=internal \
--x-includes=/opt/riscv64/sysroot/usr/include/X11/extension \
--x-libraries=/opt/riscv64/sysroot/usr/lib \
--with-cups=/opt/riscv64/sysroot/usr/include/cups \
--with-freetype-include=/opt/riscv64/sysroot/usr/include/freetype2 \
--with-freetype-lib=/opt/riscv64/sysroot/usr/lib \
--with-extra-cflags="-Wno-error"
aarch64的编译命令
bash configure \
--with-boot-jdk=/root/jdk8u345-b01 \
--with-jvm-variants=core \
--with-debug-level=slowdebug \
--with-freetype-include=/usr/include/freetype2 \
--with-freetype-lib=/usr/lib/aarch64-linux-gnu \
--with-extra-cflags="-Wno-error"
#make LOG=info > x86_make.log
其中一个报错解决方法 解决方法
1、打上patch
git apply java-1.8.0-riscv-1.patch
2、执行: bash common/autoconf/autogen.sh
3、构建