Compiling OpenJFX on OpenBSD

Turvamies IT Security Services info at turvamies.fi
Thu Aug 4 11:54:19 UTC 2016


Hello, world!

I'm attempting to compile OpenJFX (rt-b41445afa464) on OpenBSD CURRENT
(2016-08-04) since the official OpenBSD package (and port) of OpenJDK
does not include OpenJFX.

I have managed to install and/or compile all the dependencies,
including gradle, but got stuck while compiling OpenJFX itself:

$ pwd
/tmp/rt-b41445afa464

$ env
JAVA_HOME=/usr/local/jdk-1.8.0
JDK_HOME=/usr/local/jdk-1.8.0
JRE_HOME=/usr/local/jdk-1.8.0
PATH=/usr/local/jdk-1.8.0/bin:/tmp/.gradle/wrapper/dists/gradle-2.14-bin/76oc0mnc3ieqtsukq90mp0rxk/gradle-2.14/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin

$ gradle --debug
[...]
08:38:44.707 [INFO] [org.gradle.configuration.project.BuildScriptProcessor] Evaluating root project 'rt-b41445afa464' using build file '/tmp/rt-b41445afa464/build.gradle'.

08:38:44.727 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on cp_proj remapped class cache for ctdme4j40oppm9q0pdgqhpn3y /tmp/.gradle/caches/2.14/scripts-remapped/build_17kvkvc4f9j45htivwn1v303b/ctdme4j40oppm9q0pdgqhpn3y/cp_proj-1283120199659856910).

08:38:44.728 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.

08:38:44.729 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on cp_proj remapped class cache for ctdme4j40oppm9q0pdgqhpn3y (/tmp/.gradle/caches/2.14/scripts-remapped/build_17kvkvc4f9j45htivwn1v303b/ctdme4j40oppm9q0pdgqhpn3y/cp_proj-1283120199659856910).

08:38:44.732 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on proj remapped class cache for ctdme4j40oppm9q0pdgqhpn3y (/tmp/.gradle/caches/2.14/scripts-remapped/build_17kvkvc4f9j45htivwn1v303b/ctdme4j40oppm9q0pdgqhpn3y/proj-1283120199659856910).

08:38:44.733 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.

08:38:44.734 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on proj remapped class cache for ctdme4j40oppm9q0pdgqhpn3y (/tmp/.gradle/caches/2.14/scripts-remapped/build_17kvkvc4f9j45htivwn1v303b/ctdme4j40oppm9q0pdgqhpn3y/proj-1283120199659856910).

08:38:45.852 [INFO] [org.gradle.api.Project] Applying COMPILE_FLAGS_FILE 'buildSrc/.gradle'

08:38:45.859 [DEBUG] [org.gradle.configuration.project.BuildScriptProcessor] Timing: Running the build script took 1.151 secs

08:38:45.902 [ERROR] [org.gradle.BuildExceptionReporter]

08:38:45.904 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception. 

08:38:45.906 [ERROR] [org.gradle.BuildExceptionReporter]

08:38:45.907 [ERROR] [org.gradle.BuildExceptionReporter] * Where:

08:38:45.908 [ERROR] [org.gradle.BuildExceptionReporter] Build file '/tmp/rt-b41445afa464/build.gradle' line:

614 08:38:45.909 [ERROR] [org.gradle.BuildExceptionReporter] 

08:38:45.910 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:

08:38:45.911 [ERROR] [org.gradle.BuildExceptionReporter] A problem occurred evaluating root project 'rt-b41445afa464'.

08:38:45.912 [ERROR] [org.gradle.BuildExceptionReporter] > String index out of range: 0

08:38:45.912 [ERROR] [org.gradle.BuildExceptionReporter]

08:38:45.913 [ERROR] [org.gradle.BuildExceptionReporter] * Try:

08:38:45.914 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.

08:38:45.916 [LIFECYCLE] [org.gradle.BuildResultLogger] 

08:38:45.917 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED 

08:38:45.918 [LIFECYCLE] [org.gradle.BuildResultLogger] 

08:38:45.919 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 29.999 secs 

08:38:45.931 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache Plugin Resolution Cache (/tmp/.gradle/caches/2.14/plugin-resolution) was closed 0 times.

I don't quite know how to debug this further.

Any tips would be much appreciated!

Yours,

Jyri
--
Turvamies IT Security Services


More information about the bsd-port-dev mailing list