Bug#831153: openjdk-8-jre-dcevm: FTBFS with GCC 6: os.hpp:28:30: fatal error: jvmtifiles/jvmti.h: No such file or directory

Emmanuel Bourg ebourg at apache.org
Wed Sep 21 22:47:59 UTC 2016


The error "jvmtifiles/jvmti.h: No such file or directory" isn't the
cause of the build failure. This error has been fixed upstream (see
https://bugs.openjdk.java.net/browse/JDK-8152067) and it can be avoided
by setting the USE_PRECOMPILED_HEADER=0 environment variable.

The fatal errors are the ones listed after and related to C++11 syntax
changes. Adding the --std=gnu++98 and -fpermissive options to CFLAGS
helps a bit, but the build still fails due to missing type definitions
for jint, jlong, size_t and uint64_t. This is odd, because jint and
jlong are defined in jni.h which should be in the include path.



More information about the pkg-java-maintainers mailing list