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

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: 11
Popularity: 0.58
First Submitted: 2022-03-09 18:41 (UTC)
Last Updated: 2024-04-24 04:47 (UTC)

Latest Comments

1 2 3 4 5 6 .. 11 Next › Last »

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!

Rogach commented on 2024-04-24 07:15 (UTC)

@dibbel26, @Moire, @GYDev

I've managed to reproduce the issue by using cmake flags provided by @dibbel26. The issue comes down to -Wl,-z,pack-relative-relocs flag, probably coming from LDFLAGS in your /etc/makepkg.conf.

The build process uses ld.gold linker (configured by USE_LD_GOLD option in src/rt-8u202-ga/modules/web/src/main/native/Source/cmake/OptionsCommon.cmake), and it doesn't recognise the pack-relative-relocs option:

/usr/bin/ld.gold: pack-relative-relocs: unknown -z option

You can try it yourself, this command should reproduce the issue: /usr/bin/cc -Wl,-z,pack-relative-relocs -fuse-ld=gold test_pthreads.c

So in order to fix it, I guess you can remove -Wl,-z,pack-relative-relocs from LDFLAGS, or try unsetting the USE_LD_GOLD option (but that's scary).

Rogach commented on 2024-04-24 04:47 (UTC)

@malsyned Thank you for the patch! Added it to the PKGBUILD.

malsyned commented on 2024-04-23 19:16 (UTC)

The User-Agent spoofing worked like a charm. I ran into this problem as well, though:

FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().

It turned out I had archlinux-java configured to default to java-21-openjdk. When I switched it to java-8-openjdk, the build completed successfully.

I was able to patch PKGCONFIG so that it would work regardless of how archlinux-java is configured:

diff --git a/PKGBUILD b/PKGBUILD
index c73d82c..e0b7f9b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -91,6 +91,7 @@ build() {
   CFLAGS+=' -fcommon'
   # build against ffmpeg4.4
   export PKG_CONFIG_PATH='/usr/lib/ffmpeg4.4/pkgconfig'
+  export JAVA_HOME=/usr/lib/jvm/java-8-openjdk

   ../gradle-4.8/bin/gradle
 }

dibbel26 commented on 2024-04-16 23:58 (UTC) (edited on 2024-04-17 00:50 (UTC) by dibbel26)

Similar error to @Moire with :web:compileNativeLinux FAILED


This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PerlModules_JSON::PP: TRUE
-- Found PerlModules: TRUE  found components: JSON::PP
CMake Warning (dev) at Source/cmake/WebKitCommon.cmake:23 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  CMakeLists.txt:147 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.18", minimum required is "2.7.0")
-- Found Ruby: /usr/bin/ruby (found suitable version "3.0.6", minimum required is "1.9")
-- Performing Test C_COMPILER_SUPPORTS_-fno-strict-aliasing
-- Performing Test C_COMPILER_SUPPORTS_-fno-strict-aliasing - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-strict-aliasing
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-strict-aliasing - Failed
-- Performing Test C_COMPILER_SUPPORTS_-fno-exceptions
-- Performing Test C_COMPILER_SUPPORTS_-fno-exceptions - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-exceptions
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-exceptions - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-std=c++14
-- Performing Test CXX_COMPILER_SUPPORTS_-std=c++14 - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-rtti
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-rtti - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wall
-- Performing Test C_COMPILER_SUPPORTS_-Wall - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wextra
-- Performing Test C_COMPILER_SUPPORTS_-Wextra - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wcast-align
-- Performing Test C_COMPILER_SUPPORTS_-Wcast-align - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wformat-security
-- Performing Test C_COMPILER_SUPPORTS_-Wformat-security - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wmissing-format-attribute
-- Performing Test C_COMPILER_SUPPORTS_-Wmissing-format-attribute - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wpointer-arith
-- Performing Test C_COMPILER_SUPPORTS_-Wpointer-arith - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wundef
-- Performing Test C_COMPILER_SUPPORTS_-Wundef - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wwrite-strings
-- Performing Test C_COMPILER_SUPPORTS_-Wwrite-strings - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wall
-- Performing Test CXX_COMPILER_SUPPORTS_-Wall - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wextra
-- Performing Test CXX_COMPILER_SUPPORTS_-Wextra - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wcast-align
-- Performing Test CXX_COMPILER_SUPPORTS_-Wcast-align - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wformat-security
-- Performing Test CXX_COMPILER_SUPPORTS_-Wformat-security - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wmissing-format-attribute
-- Performing Test CXX_COMPILER_SUPPORTS_-Wmissing-format-attribute - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wpointer-arith
-- Performing Test CXX_COMPILER_SUPPORTS_-Wpointer-arith - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wundef
-- Performing Test CXX_COMPILER_SUPPORTS_-Wundef - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wwrite-strings
-- Performing Test CXX_COMPILER_SUPPORTS_-Wwrite-strings - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Qunused-arguments
-- Performing Test C_COMPILER_SUPPORTS_-Qunused-arguments - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wno-maybe-uninitialized
-- Performing Test C_COMPILER_SUPPORTS_-Wno-maybe-uninitialized - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wno-missing-field-initializers
-- Performing Test C_COMPILER_SUPPORTS_-Wno-missing-field-initializers - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wno-noexcept-type
-- Performing Test C_COMPILER_SUPPORTS_-Wno-noexcept-type - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wno-parentheses-equality
-- Performing Test C_COMPILER_SUPPORTS_-Wno-parentheses-equality - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Qunused-arguments
-- Performing Test CXX_COMPILER_SUPPORTS_-Qunused-arguments - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-missing-field-initializers
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-missing-field-initializers - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-noexcept-type
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-noexcept-type - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-parentheses-equality
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-parentheses-equality - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wno-expansion-to-defined
-- Performing Test C_COMPILER_SUPPORTS_-Wno-expansion-to-defined - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-expansion-to-defined
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-expansion-to-defined - Failed
-- Performing Test C_COMPILER_SUPPORTS_-fcolor-diagnostics
-- Performing Test C_COMPILER_SUPPORTS_-fcolor-diagnostics - Failed
-- Performing Test C_COMPILER_SUPPORTS_-fdiagnostics-color=always
-- Performing Test C_COMPILER_SUPPORTS_-fdiagnostics-color=always - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-fcolor-diagnostics
-- Performing Test CXX_COMPILER_SUPPORTS_-fcolor-diagnostics - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-fdiagnostics-color=always
-- Performing Test CXX_COMPILER_SUPPORTS_-fdiagnostics-color=always - Failed
-- Performing Test ATOMIC_INT64_IS_BUILTIN
-- Performing Test ATOMIC_INT64_IS_BUILTIN - Success
-- Looking for features.h
-- Looking for features.h - not found
-- Looking for errno.h
-- Looking for errno.h - not found
-- Looking for langinfo.h
-- Looking for langinfo.h - not found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - not found
-- Looking for pthread_np.h
-- Looking for pthread_np.h - not found
-- Looking for strings.h
-- Looking for strings.h - not found
-- Looking for sys/param.h
-- Looking for sys/param.h - not found
-- Looking for sys/time.h
-- Looking for sys/time.h - not found
-- Looking for sys/timeb.h
-- Looking for sys/timeb.h - not found
-- Looking for _aligned_malloc
-- Looking for _aligned_malloc - not found
-- Looking for IsDebuggerPresent
-- Looking for IsDebuggerPresent - not found
-- Looking for localtime_r
-- Looking for localtime_r - not found
-- Looking for strnstr
-- Looking for strnstr - not found
-- Looking for timegm
-- Looking for timegm - not found
-- Looking for vasprintf
-- Looking for vasprintf - not found
-- Looking for regexec
-- Looking for regexec - not found
-- Looking for SIGTRAP
-- Looking for SIGTRAP - not found
-- Performing Test HAVE_STAT_BIRTHTIME_value
-- Performing Test HAVE_STAT_BIRTHTIME_value - Failed
-- Performing Test HAVE_TM_GMTOFF_value
-- Performing Test HAVE_TM_GMTOFF_value - Failed
-- Performing Test HAVE_TM_ZONE_value
-- Performing Test HAVE_TM_ZONE_value - Failed
-- Looking for sys/types.h
-- Looking for sys/types.h - not found
-- Looking for stdint.h
-- Looking for stdint.h - not found
-- Looking for stddef.h
-- Looking for stddef.h - not found
-- Check size of __int128_t
-- Check size of __int128_t - failed
-- Found JNI: /usr/lib/jvm/java-8-openjdk/include  found components: AWT JVM
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - no
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindThreads.cmake:226 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  Source/cmake/OptionsJava.cmake:38 (find_package)
  Source/cmake/WebKitCommon.cmake:61 (include)
  CMakeLists.txt:147 (include)


-- Configuring incomplete, errors occurred!

> Task :web:compileNativeLinux FAILED

FAILURE: Build failed with an exception.

* Where:
Build file '/home/dibbel26/.cache/paru/clone/java8-openjfx/src/rt-8u202-ga/build.gradle' line: 2583

* What went wrong:
Execution failed for task ':web:compileNativeLinux'.
> Process 'command 'perl'' finished with non-zero exit value 1

The minimal work example given by @Rogach is compiling without throwing any errors.

In case it's important here are the flags used:

cmake -DPORT="Java" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release -G Ninja -DSHOW_BINDINGS_GENERATION_PROGRESS=1 -DENABLE_EXPERIMENTAL_FEATURES=ON -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_C_COMPILER=gcc -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DCMAKE_C_FLAGS='-fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wno-error=cast-function-type -Wno-error=deprecated-declarations -W -Wall -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/dibbel26/.cache/paru/clone/java8-openjfx/src=/usr/src/debug/java8-openjfx -flto=auto -fcommon -std=gnu++14 -fno-lto' -DCMAKE_CXX_FLAGS='-fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wno-error=cast-function-type -Wno-error=deprecated-declarations -W -Wall -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/dibbel26/.cache/paru/clone/java8-openjfx/src=/usr/src/debug/java8-openjfx -flto=auto -fcommon -std=gnu++14 -fno-lto' -DCMAKE_ASM_FLAGS='-fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wno-error=cast-function-type -Wno-error=deprecated-declarations -W -Wall -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/dibbel26/.cache/paru/clone/java8-openjfx/src=/usr/src/debug/java8-openjfx -flto=auto -fcommon -std=gnu++14 -fno-lto' -DCMAKE_SHARED_LINKER_FLAGS='-static-libgcc -static-libstdc++ -shared -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wno-error=cast-function-type -Wno-error=deprecated-declarations -W -Wall -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/dibbel26/.cache/paru/clone/java8-openjfx/src=/usr/src/debug/java8-openjfx -flto=auto -fcommon -z relro -Wl,--gc-sections -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto' -DCMAKE_EXE_LINKER_FLAGS='-static-libgcc -static-libstdc++ -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wno-error=cast-function-type -Wno-error=deprecated-declarations -W -Wall -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/dibbel26/.cache/paru/clone/java8-openjfx/src=/usr/src/debug/java8-openjfx -flto=auto -fcommon -z relro -Wl,--gc-sections -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto' -DJAVAFX_RELEASE_VERSION=8.0 "/home/dibbel26/.cache/paru/clone/java8-openjfx/src/rt-8u202-ga/modules/web/src/main/native"

Rogach commented on 2024-04-09 09:14 (UTC)

@GYDev @Moire CMake is trying to compile the following snippet:

#include <pthread.h>

static void* test_func(void* data)
{
  return data;
}

int main(void)
{
  pthread_t thread;
  pthread_create(&thread, NULL, test_func, NULL);
  pthread_detach(thread);
  pthread_cancel(thread);
  pthread_join(thread, NULL);
  pthread_atfork(NULL, NULL, NULL);
  pthread_exit(NULL);

  return 0;
}

Please try compiling this file manually (save as test_pthreads.c, compile with gcc test_pthreads.c) and check if there are any errors reported.