Search Criteria
Package Base Details: java8-openjfx
Package Actions
Git Clone URL: | https://aur.archlinux.org/java8-openjfx.git (read-only, click to copy) |
---|---|
Keywords: | java8-openjfx openjfx |
Submitter: | freswa |
Maintainer: | Rogach |
Last Packager: | Rogach |
Votes: | 11 |
Popularity: | 0.72 |
First Submitted: | 2022-03-09 18:41 (UTC) |
Last Updated: | 2024-04-24 04:47 (UTC) |
Latest Comments
1 2 3 4 5 6 .. 10 Next › Last »
dibbel26 commented on 2024-04-25 00:03 (UTC) (edited on 2024-04-25 00:05 (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
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: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:
It turned out I had
archlinux-java
configured to default tojava-21-openjdk
. When I switched it tojava-8-openjdk
, the build completed successfully.I was able to patch
PKGCONFIG
so that it would work regardless of howarchlinux-java
is configured: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
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:
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:
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
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.
1 2 3 4 5 6 .. 10 Next › Last »