Package Details: java8-openjfx-doc 8.u202-10

Git Clone URL: https://aur.archlinux.org/java8-openjfx.git (read-only, click to copy)
Package Base: java8-openjfx
Description: Java OpenJFX 8 client application platform (open-source implementation of JavaFX)
Upstream URL: https://wiki.openjdk.java.net/display/OpenJFX/Main
Keywords: java8-openjfx openjfx
Licenses: GPL
Submitter: freswa
Maintainer: Rogach
Last Packager: Rogach
Votes: 12
Popularity: 0.171898
First Submitted: 2022-03-09 18:41 (UTC)
Last Updated: 2024-05-25 07:41 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 .. 13 Next › Last »

Pillgar commented on 2024-05-25 22:18 (UTC)

Seeing errors:

Task :web:compileNativeLinux FAILED

FAILURE: Build failed with an exception.

  • Where: Build file '/home/atlantida/.cache/yay/java8-openjfx/src/rt-8u202-ga/build.gradle' line: 2583

  • What went wrong: Execution failed for task ':web:compileNativeLinux'.

Rogach commented on 2024-05-25 07:42 (UTC)

@quicksh Thank you! I've incorporated these changes into PKGBUILD.

quicksh commented on 2024-05-24 13:47 (UTC)

To compile successfully I had to disable some Warnings/Errors :

diff --git a/PKGBUILD b/PKGBUILD
index 8ba688d..bbf1608 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -88,7 +88,7 @@ build() {
   cd rt-${pkgver//./}-ga

   # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
-  CFLAGS+=' -fcommon'
+  CFLAGS+=' -fcommon -Wno-incompatible-pointer-types -Wno-int-conversion'
   # build against ffmpeg4.4
   export PKG_CONFIG_PATH='/usr/lib/ffmpeg4.4/pkgconfig'
   # ensure jdk 8 is used when building

Rogach commented on 2024-05-15 12:39 (UTC)

@Moire Same error for me :(

Moire commented on 2024-05-15 10:04 (UTC)

I have found a new issue, replacing the issue with :web:compileNativeLinux. This issue occurs on build step :media:buildLinuxGStreamer, when compiling gstreamer-lite/gstreamer/gst/gstcontext.c:

../../../gstreamer-lite/gstreamer/gst/gstchildproxy.c: In function ‘gst_child_proxy_lookup’:
../../../gstreamer-lite/gstreamer/gst/gstchildproxy.c:212:7: error: assignment to ‘GObject *’ {aka ‘struct _GObject *’} from incompatible pointer type ‘GstChildProxy *’ {aka ‘struct _GstChildProxy *’} [-Wincompatible-pointer-types]
  212 |   obj = g_object_ref (object);
      |       ^

Has anybody else encountered this?

iGom commented on 2024-04-27 14:57 (UTC)

@dibbel26 that did the trick,thanks

dibbel26 commented on 2024-04-26 13:57 (UTC) (edited on 2024-04-26 14:01 (UTC) by dibbel26)

@iGom

The default LDFLAGS in /etc/makepkg.conf are

LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
     -Wl,-z,pack-relative-relocs"

A comment on the aur pkg for java17-openjfx states that certain symbols als well as new line characters could not be handled thus /usr/bin/ld: cannot find : No such file or directory occurs.

To ensure that your LDFLAGS are properly formatted in your makepkg environment append

prepare() {
  [...]
  export LDFLAGS="$(echo ${LDFLAGS} | sed -e 's|[[:space:]][[:space:]]|[[:space:]]|g' -e 's|\n||g')"
}

to your prepare() function in PKGBUILD (after the patches).

@Rogach I'm still getting a lot of overflow warnings and a RAM overflow once but it compile successfully.

Rogach commented on 2024-04-26 06:47 (UTC)

@iGom I can't reproduce the error, unfortunately. You're on your own here :(

Did you build from a clean state? (after removing pkg and src directories)

iGom commented on 2024-04-25 17:26 (UTC) (edited on 2024-04-25 17:27 (UTC) by iGom)

after removing -Wl,-z,pack-relative-relocs it failed due to this

cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
> Task :graphics:compileDecoraNativeShadersLinux

> Task :graphics:linkDecoraNativeShadersLinux FAILED
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
collect2: error: ld returned 1 exit status

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':graphics:linkDecoraNativeShadersLinux'.
> Process 'command 'g++'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 27m 34s
60 actionable tasks: 60 executed
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: java8-openjfx-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
java8-openjfx - exit status 4

dibbel26 commented on 2024-04-25 00:03 (UTC) (edited on 2024-04-25 10:47 (UTC) by dibbel26)

@Rogach Thanks a lot for finding the conflicting flag. After spending more hours than I'd like to admit searching for the place where this flag is added, I just removed it with string(REPLACE) in src/rt-8u202-ga/modules/web/src/main/native/Source/cmake/OptionsCommon.cmake as a dirty workaround


set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold -Wl,--disable-new-dtags")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold -Wl,--disable-new-dtags")
string(REPLACE "-Wl,-z,pack-relative-relocs" "" CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}")
string(REPLACE "-Wl,-z,pack-relative-relocs" "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")

Since it's neither affected by removing the flag in /etc/makepkg.conf nor by setting custom LDFLAGS in PKGBUILD, I wonder how these flags can get messed up on my system and not on yours. It's not building in a clean chroot without patching either.

Thank you for your efforts!