Package Details: java8-openjfx-src 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.85
First Submitted: 2022-03-09 18:41 (UTC)
Last Updated: 2024-04-03 08:22 (UTC)

Latest Comments

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

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.

Moire commented on 2024-04-08 02:11 (UTC)

@GYDev I have the same issue. Nothing I have tried has fixed it. I've read that sometimes warnings will cause libraries not to be found, but I can't find where to pass -Wno-dev to the compiler, as that might suppress the errors and allow Threads to be found.

Rogach commented on 2024-04-05 08:47 (UTC)

@GYDev Looks like the error is caused by this:

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Threads (missing: Threads_FOUND)

Looks like there's some problem with pthreads on your system.

GYDev commented on 2024-04-04 20:52 (UTC) (edited on 2024-04-04 20:58 (UTC) by GYDev)

Im getting an error when building

> Task :web:compileNativeLinux FAILED
Building Webkit configuration /Release/ into /home/gydev/AUR/java8-openjfx/src/rt-8u202-ga/modules/web/build/linux
Use of uninitialized value $previousContents in chomp at /home/gydev/AUR/java8-openjfx/src/rt-8u202-ga/modules/web/src/main/native/Tools/Scripts/webkitdirs.pm line 1975.
Use of uninitialized value $previousContents in string ne at /home/gydev/AUR/java8-openjfx/src/rt-8u202-ga/modules/web/src/main/native/Tools/Scripts/webkitdirs.pm line 1978.
+  cmake -DPORT="Java" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release -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/gydev/AUR/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/gydev/AUR/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/gydev/AUR/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/gydev/AUR/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/gydev/AUR/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/gydev/AUR/java8-openjfx/src/rt-8u202-ga/modules/web/src/main/native"
CMake Deprecation Warning at CMakeLists.txt:11 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.


-- The CMake build type is: Release
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args`
(PerlModules_JSON::PP) does not match the name of the calling package
(PerlModules).  This can lead to problems in calling code that expects
`find_package` result variables (e.g., `_FOUND`) to follow a certain
pattern.
Call Stack (most recent call first):
Source/cmake/FindPerlModules.cmake:68 (find_package_handle_standard_args)
Source/cmake/WebKitCommon.cmake:21 (find_package)
CMakeLists.txt:147 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

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.

-- Performing Test CXX_COMPILER_SUPPORTS_-std=c++14
-- Performing Test CXX_COMPILER_SUPPORTS_-std=c++14 - Failed
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!

FAILURE: Build failed with an exception.

* Where:
Build file '/home/gydev/AUR/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

* 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 26s
39 actionable tasks: 11 executed, 28 up-to-date
==> ERROR: A failure occurred in build().
    Aborting...

Im not all to familiar with gradle or cmake so i dont really have any more information that could point in the direction of the issue, i looked on line 2583 of the build.gradle file and didnt find any perl commands so I figured id ask here since someone might have some pointers on how to fix the issue

Rogach commented on 2024-04-03 05:47 (UTC)

@malsyned I've added User-Agent spoofing to the download process, should work now.

malsyned commented on 2024-04-02 22:43 (UTC)

The download is failing for me right now:

==> Retrieving sources...
  -> Downloading 8u202-ga.tar.bz2...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:06 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:07 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:08 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:09 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:10 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:10 --:--:--     0

  0     0    0     0    0     0      0      0 --:--:--  0:00:10 --:--:--     0
curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)
==> ERROR: Failure while downloading https://hg.openjdk.java.net/openjfx/8u-dev/rt/archive/8u202-ga.tar.bz2
    Aborting...
Failed to build java8-openjfx

This looks to me like hg.openjdk.java.net attempting to prevent scraping. If I run curl on that URL from the shell, the download hangs indefinitely. However, if I use -A to spoof Chrome's User-Agent header as follows, the download completes successfully.

curl -O --user-agent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36' https://hg.openjdk.java.net/openjfx/8u-dev/rt/archive/8u202-ga.tar.bz2

nyadiia commented on 2024-02-28 17:00 (UTC) (edited on 2024-02-28 17:01 (UTC) by nyadiia)

build fails for me with this output:

    ==> Making package: java8-openjfx 8.u202-9 (Wed 28 Feb 2024 10:50:10 AM CST)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving sources...
      -> Downloading 8u202-ga.tar.bz2...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:--  0:00:10 --:--:--     0
    100 59.1M    0 59.1M    0     0  1129k      0 --:--:--  0:00:53 --:--:--  785k
      -> Found gradle.properties
      -> Downloading gradle-4.8-bin.zip...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    100 72.3M  100 72.3M    0     0  25.2M      0  0:00:02  0:00:02 --:--:-- 30.0M
      -> Found java8-openjfx-flags.patch
      -> Found java8-openjfx-no-xlocale.patch
      -> Found java8-openjfx-no-sys-sysctl.patch
      -> Found java8-openjfx-CVE-2021-3517-fix.patch
      -> Found java8-openjfx-CVE-2021-3522-fix.patch
      -> Found java8-openjfx-include-iterator.patch
      -> Found java8-openjfx-no-check-jfxrt-jar.patch
      -> Found java8-openjfx-fix-java-version-check.patch
    ==> Validating source files with sha256sums...
        8u202-ga.tar.bz2 ... Passed
        gradle.properties ... Passed
        gradle-4.8-bin.zip ... Passed
        java8-openjfx-flags.patch ... Passed
        java8-openjfx-no-xlocale.patch ... Passed
        java8-openjfx-no-sys-sysctl.patch ... Passed
        java8-openjfx-CVE-2021-3517-fix.patch ... Passed
        java8-openjfx-CVE-2021-3522-fix.patch ... Passed
        java8-openjfx-include-iterator.patch ... Passed
        java8-openjfx-no-check-jfxrt-jar.patch ... Passed
        java8-openjfx-fix-java-version-check.patch ... Passed
    ==> Extracting sources...
      -> Extracting 8u202-ga.tar.bz2 with bsdtar
      -> Extracting gradle-4.8-bin.zip with bsdtar
    ==> Starting prepare()...
    patching file buildSrc/linux.gradle
    patching file modules/media/src/main/native/gstreamer/projects/linux/avplugin/Makefile
    patching file modules/media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile
    patching file modules/media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile
    patching file modules/media/src/main/native/jfxmedia/projects/linux/Makefile
    patching file modules/media/src/main/native/gstreamer/projects/linux/glib-lite/Makefile
    patching file modules/media/src/main/native/gstreamer/3rd_party/glib/glib-2.56.1/glib/gstrfuncs.c
    patching file modules/web/src/main/native/Source/ThirdParty/libxslt/src/libxslt/xsltlocale.h
    patching file modules/fxpackager/src/main/native/library/common/PosixPlatform.cpp
    patching file entities.c
    Hunk #1 succeeded at 666 (offset -38 lines).
    patching file gst-libs/gst/tag/id3v2frames.c
    patching file modules/web/src/main/native/Source/WTF/wtf/text/IntegerToStringConversion.h
    patching file modules/web/src/main/native/Source/WTF/wtf/Vector.h
    patching file build.gradle
    patching file build.gradle
    ==> Starting build()...
    /home/nyadiia/Downloads/java8-openjfx/PKGBUILD: line 86: 163884 Segmentation fault      (core dumped) ../gradle-4.8/bin/gradle
    ==> ERROR: A failure occurred in build().
        Aborting...

i've also tried disabling media and webkit in gradle.properties and it has the same error

Moebius14 commented on 2023-08-25 18:03 (UTC) (edited on 2023-08-25 18:04 (UTC) by Moebius14)

Finally managed to build it after it always failed due some problem with ::LinuxGStreamer::.

What did the trick was disabling media & webkit support in gradle.properties.

Rogach commented on 2023-07-22 06:33 (UTC)

@cedric-air Glad to hear that the problem is resolved :)