编译OpenJDK8:error: control reaches end of non-void function [-Werror=return-type]

详细错误:

/home/tsrj/tsjdk8-project/tsjdk8/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp:227:26: error: control reaches end of non-void function [-Werror=return-type]
   SignalHandlerMark shm(t);

解决办法:

make/linux/makefiles/gcc.make:204

注释掉WARNINGS_ARE_ERRORS = -Werror
 

猜你喜欢

转载自blog.csdn.net/quantum7/article/details/107580875