Jump to content
walterw

Cannot emerge openjfx

Recommended Posts

I am unable to emerge openjfx:

/etc/portage/package.use/java

dev-java/oracle-jdk-bin javafx gtk3 -nsplugin -webstart
dev-java/openjdk-bin javafx gtk3 -nsplugin -webstart
dev-java/openjdk-jre-bin javafx gtk3 -nsplugin -webstart

>=dev-java/swt-4.10 cairo

 

emerge openjfx -v 

My system VM is:

/etc/java-config-2/current-system-vm/jre/lib/ -> /usr/lib/jvm//openjdk-bin-11

 

eselect java-vm list system
Available Java Virtual Machines:
  [1]   openjdk-bin-11  system-vm
  [2]   openjdk-jre-bin-11 
  [3]   oracle-jdk-bin-1.8 


 

>>> Compiling source in /var/tmp/portage/dev-java/swt-4.10/work ...
 * libjawt.so not found in the JDK being used for compilation!
 * ERROR: dev-java/swt-4.10::java-kit failed (compile phase):
 *   cannot build AWT library
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 4508:  Called die
 * The specific snippet of code:
 *                   die "cannot build AWT library";
 * 
 * If you need support, post the output of `emerge --info '=dev-java/swt-4.10::java-kit'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/swt-4.10::java-kit'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=openjdk-bin-11  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-11.0.3_p7"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
and of course, the output of emerge --info =swt-4.10
 * The complete build log is located at '/var/tmp/portage/dev-java/swt-4.10/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/swt-4.10/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/swt-4.10/work'
 * S: '/var/tmp/portage/dev-java/swt-4.10/work'


 

Now, the ebuild is checking for lib here:

if [[ -f "${JAVA_HOME}/jre/lib/${AWT_ARCH}/${JAWTSO}" ]]; then
                export AWT_LIB_PATH="${JAVA_HOME}/jre/lib/${AWT_ARCH}"
        elif [[ -f "${JAVA_HOME}/jre/bin/${JAWTSO}" ]]; then
                export AWT_LIB_PATH="${JAVA_HOME}/jre/bin"
        elif [[ -f "${JAVA_HOME}/$(get_libdir)/${JAWTSO}" ]] ; then
                export AWT_LIB_PATH="${JAVA_HOME}/$(get_libdir)"
        else
                eerror "${JAWTSO} not found in the JDK being used for compilation!"
                die "cannot build AWT library"
        fi


 

 

Now, the libawt.so is here:

locate libawt.so

 

/opt/idea-community-2019.2.4/jbr/lib/libawt.so
/opt/openjdk-bin-11.0.3_p7/lib/libawt.so
/opt/openjdk-jre-bin-11.0.3_p7/lib/libawt.so
/opt/oracle-jdk-bin-1.8.0.202/jre/lib/amd64/libawt.so

 

So, I think the function get_libdir isn't able to find the library in /lib/libawt.so underneath my jre home directory.

 

Walter

 

Share this post


Link to post
Share on other sites

The build failed here now:

/usr/include/glib-2.0/glib/gtypes.h:549:26: note: declared here
  549 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime);
      |                          ^~~~~~~~
cc1plus: all warnings being treated as errors
cc1plus: all warnings being treated as errors
cc1plus: all warnings being treated as errors

> Task :graphics:ccLinuxGlassGlassgtk2 FAILED
:graphics:ccLinuxGlassGlassgtk2 (Thread[Task worker for ':' Thread 2,5,main]) completed. Took 5.401 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':graphics:ccLinuxGlassGlassgtk2'.
> java.util.concurrent.ExecutionException: org.gradle.process.internal.ExecException: Process 'command 'gcc'' finished with non-zero exit value 1

* Try:
Run with --debug option to get more log output. Run with --scan to get full insights.


 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...