Package Details: java17-openjfx 17.0.12.u0-2

Git Clone URL: https://aur.archlinux.org/java17-openjfx.git (read-only, click to copy)
Package Base: java17-openjfx
Description: Java OpenJFX 17 client application platform (open-source implementation of JavaFX)
Upstream URL: https://wiki.openjdk.java.net/display/OpenJFX/Main
Licenses: custom
Provides: java-openjfx
Submitter: ItachiSan
Maintainer: ItachiSan
Last Packager: ItachiSan
Votes: 3
Popularity: 0.070446
First Submitted: 2023-12-05 21:09 (UTC)
Last Updated: 2024-05-18 19:00 (UTC)

Dependencies (31)

Required by (72)

Sources (6)

Latest Comments

1 2 3 Next › Last »

Piroro-hs commented on 2024-06-13 05:24 (UTC)

@ItachiSan Thanks! I completely forgot to setup swap.

ItachiSan commented on 2024-06-12 10:01 (UTC)

Hi @Piroro-hs, that is a normal out of memory error. You should use a smaller number of jobs.

Piroro-hs commented on 2024-06-12 04:18 (UTC)

Failed on building JSC? It happens on clean chroot build.

[ 32%] Building CXX object Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-bfc896e1-14.cpp.o
[ 32%] Building CXX object Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-bfc896e1-15.cpp.o
[ 32%] Building CXX object Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-bfc896e1-16.cpp.o
[ 32%] Building CXX object Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-bfc896e1-17.cpp.o
[ 32%] Building C object Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-fa42537c-1-c.c.o
[ 32%] Building C object Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/disassembler/zydis/Zydis/ZydisFormatterATT.c.o
{standard input}: Assembler messages:
{standard input}:6809541: Warning: end of file not at end of a line; newline inserted
{standard input}:6810880: Error: unknown pseudo-op: `.'
g++-13: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/build.make:1517: Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-bfc896e1-3.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:698: Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/all] Error 2
make: *** [Makefile:111: all] Error 2

> Task :web:compileNativeLinux FAILED

FAILURE: Build failed with an exception.

* Where:
Build file '/build/java17-openjfx/src/jfx17u-17.0.12-0/build.gradle' line: 3528

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

ItachiSan commented on 2024-05-18 11:49 (UTC) (edited on 2024-05-18 11:50 (UTC) by ItachiSan)

@dreieck in order:

  1. I will remove the dependency on gradle.
  2. I will check whether I can just do the preparation work in prepare().
  3. The runtime dependency is already present on java17-openjfx package, not on the -doc and -src ones.
  4. I am building the package with GCC13, since it is still in the repositories for now. The update will be out soon.

dreieck commented on 2024-05-18 10:52 (UTC)

With GCC 14.1.1, build aborts with new warnings treated as errors.

For java21-openjfx the following added to build() fixes that, the same or something similar is needed here:

  _FIXWERROR_GCC14="-Wno-error=incompatible-pointer-types -Wno-error=sign-compare -Wno-error=int-conversion"
  _SILENCEWARNINGS="-Wno-incompatible-pointer-types -Wno-sign-compare -Wno-int-conversion -Wno-missing-field-initializers -Wno-cast-function-type -Wno-discarded-qualifiers -Wno-deprecated-copy -Wno-missing-field-initializers -Wno-stringop-truncation -Wno-return-local-addr -Wno-dangling-pointer -Wno-address -Wno-switch -Wno-deprecated-declarations -Wno-stringop-overread -Wno-expansion-to-defined"
  _CFLAGSADDITIONS=" ${_FIXWERROR_GCC14} ${_SILENCEWARNINGS}"
  CFLAGS+="${_CFLAGSADDITIONS}"
  CXXFLAGS+="${_CFLAGSADDITIONS}"
  export CFLAGS
  export CXXFLAGS

(_SILENCEWARNINGS is optional, it also silences the printing of some compiler warnings.)

Regards and thanks for maintaining!

dreieck commented on 2024-05-18 09:24 (UTC)

You need to depend on a 17-version of Java Runtime (java-runtime=17).

Regards and thanks for maintaining!

dreieck commented on 2024-05-18 09:22 (UTC)

This package makedepends on gradle but still downloads it during build():

==> Starting build()...
Downloading https://services.gradle.org/distributions/gradle-7.3-bin.zip
...........10%...........20%...........30%....
  1. Can you, if possible, only use the gradle provided by the makedepends (call gradle manually), or if not
  2. Remove it from makedepends and make sure that it is downloaded in the source array or in prepare(), so that build() can run in an offline environment?

Also, later on in the build process, stuff gets downloaded in build(). Can this also be moved into prepare(), please?:

> root project > Resolve files of :web:icu > icu4c-73_1-data-bin-l.zip > 8.5 MiB/11.8 MiB downloaded

Regards and thanks for the package and for maintaining!

duvel71 commented on 2024-05-01 15:13 (UTC)

The workaround proposed by @dynobo and @sl1pkn07 did clear the initial linker error, but two hours into compilation, I now encounter a new error. Clean build, on an up-to-date system, with the latest snapshot from the AUR, and with java17-openjdk set as default.

Apologies for the lengthy build output, starting with the command that generated the error and build failure:

[6335/6349] Linking CXX shared library lib/libjfxwebkit.so
FAILED: lib/libjfxwebkit.so 
: && /usr/bin/c++ -fPIC -fdiagnostics-color=always -Wextra -Wall -pipe -fmax-errors=20 -Wno-odr -Wno-stringop-overread -Wno-stringop-overflow -Wno-nonnull -Wno-array-bounds -Wno-expansion-to-defined -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-maybe-uninitialized -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wno-error=cast-function-type -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -Werror=trampolines -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/captain/.cache/yay/java17-openjfx/java17-openjfx/src=/usr/src/debug/java17-openjfx -flto=auto -fno-lto -fno-strict-aliasing -fno-exceptions -fno-rtti -O3 -DNDEBUG  -Wl,--no-undefined -static-libgcc -static-libstdc++ -shared -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wno-error=cast-function-type -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -Werror=trampolines -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/captain/.cache/yay/java17-openjfx/java17-openjfx/src=/usr/src/debug/java17-openjfx -flto=auto -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 -fuse-ld=lld -Wl,--disable-new-dtags -Wl,--no-gc-sections -Wl,--export-dynamic  -Xlinker -version-script=/home/captain/.cache/yay/java17-openjfx/java17-openjfx/src/jfx17u-17.0.11-2/modules/javafx.web/src/main/native/Source/WebCore/mapfile-vers -Wl,--no-undefined -shared -Wl,-soname,libjfxwebkit.so -o lib/libjfxwebkit.so Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/Storage/InProcessIDBServer.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/Storage/StorageAreaImpl.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/Storage/StorageAreaSync.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/Storage/StorageNamespaceImpl.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/Storage/StorageSyncManager.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/Storage/StorageThread.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/Storage/StorageTracker.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/Storage/WebDatabaseProvider.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/Storage/WebStorageNamespaceProvider.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/WebCoreSupport/NetworkStorageSessionMap.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/WebCoreSupport/WebBroadcastChannelRegistry.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/WebCoreSupport/WebResourceLoadScheduler.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaAttr.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaCDATASection.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaCSSCharsetRule.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaCSSFontFaceRule.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaCSSImportRule.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaCSSMediaRule.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaCSSPageRule.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaCSSPrimitiveValue.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaCSSRule.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaCSSRuleList.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaCSSStyleDeclaration.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaCSSStyleRule.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaCSSStyleSheet.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaCSSUnknownRule.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaCSSValue.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaCSSValueList.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaCharacterData.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaComment.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaCounter.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaDOMImplementation.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaDOMStringList.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaDOMWindow.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaDocument.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaDocumentFragment.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaDocumentType.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaEntity.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaEntityReference.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaEvent.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaEventTarget.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLAnchorElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLAppletElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLAreaElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLBRElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLBaseElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLBaseFontElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLBodyElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLButtonElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLCollection.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLDListElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLDirectoryElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLDivElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLDocument.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLFieldSetElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLFontElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLFormElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLFrameElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLFrameSetElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLHRElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLHeadElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLHeadingElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLHtmlElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLIFrameElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLImageElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLInputElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLLIElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLLabelElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLLegendElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLLinkElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLMapElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLMenuElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLMetaElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLModElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLOListElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLObjectElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLOptGroupElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLOptionElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLOptionsCollection.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLParagraphElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLParamElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLPreElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLQuoteElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLScriptElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLSelectElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLStyleElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLTableCaptionElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLTableCellElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLTableColElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLTableElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLTableRowElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLTableSectionElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLTextAreaElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLTitleElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaHTMLUListElement.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaKeyboardEvent.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaMediaList.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaMouseEvent.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaMutationEvent.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaNamedNodeMap.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaNode.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaNodeFilter.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaNodeIterator.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaNodeList.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaProcessingInstruction.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaRGBColor.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaRange.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaRect.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaStyleSheet.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaStyleSheetList.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaText.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaTreeWalker.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaUIEvent.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaXPathExpression.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaXPathNSResolver.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/DOM/JavaXPathResult.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/WebCoreSupport/ColorChooserJava.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/WebCoreSupport/ContextMenuClientJava.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/WebCoreSupport/PopupMenuJava.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/WebCoreSupport/SearchPopupMenuJava.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/WebCoreSupport/DragClientJava.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/WebCoreSupport/EditorClientJava.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/WebCoreSupport/FrameLoaderClientJava.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/WebCoreSupport/ProgressTrackerClientJava.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/WebCoreSupport/VisitedLinkStoreJava.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/WebCoreSupport/InspectorClientJava.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/WebCoreSupport/WebPage.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/WebCoreSupport/PlatformStrategiesJava.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/WebCoreSupport/ChromeClientJava.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/WebCoreSupport/BackForwardList.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/WebCoreSupport/PageCacheJava.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/java/storage/WebDatabaseProviderJava.cpp.o Source/WebKitLegacy/CMakeFiles/WebKitLegacy.dir/__/__/mapfile-vers.stamp.cpp.o  lib/libicui18n.a  lib/libicuuc.a  lib/libicudata.a  lib/libicudata.a  lib/libicuuc.a  lib/libicudata.a  lib/libWebCoreTestSupport.a  lib/libWebCore.a  lib/libJavaScriptCore.a  lib/libPAL.a  lib/libWTF.a  lib/libicui18n.a  -lrt  -lpthread  lib/libbmalloc.a  -ldl  lib/libSqliteJava.a  lib/libXSLTJava.a  lib/libXMLJava.a  lib/libicuuc.a  lib/libicudata.a  /usr/lib/jvm/java-17-openjdk/lib/server/libjvm.so && :
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol '_ZN3WTF8LockBase8lockSlowEv' failed: symbol not defined
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol '_ZN3WTF8LockBase10unlockSlowEv' failed: symbol not defined
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol '_ZN3WTF10fastMallocEj' failed: symbol not defined
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol '_ZN3WTF16fastZeroedMallocEj' failed: symbol not defined
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol '_ZNK3WTF10StringView23underlyingStringIsValidEv' failed: symbol not defined
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol 'Java_com_sun_webkit_dom_DOMSelectionImpl_addRangeImpl' failed: symbol not defined
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol 'Java_com_sun_webkit_dom_DOMSelectionImpl_collapseImpl' failed: symbol not defined
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol 'Java_com_sun_webkit_dom_DOMSelectionImpl_collapseToEndImpl' failed: symbol not defined
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol 'Java_com_sun_webkit_dom_DOMSelectionImpl_collapseToStartImpl' failed: symbol not defined
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol 'Java_com_sun_webkit_dom_DOMSelectionImpl_containsNodeImpl' failed: symbol not defined
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol 'Java_com_sun_webkit_dom_DOMSelectionImpl_deleteFromDocumentImpl' failed: symbol not defined
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol 'Java_com_sun_webkit_dom_DOMSelectionImpl_dispose' failed: symbol not defined
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol 'Java_com_sun_webkit_dom_DOMSelectionImpl_emptyImpl' failed: symbol not defined
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol 'Java_com_sun_webkit_dom_DOMSelectionImpl_extendImpl' failed: symbol not defined
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol 'Java_com_sun_webkit_dom_DOMSelectionImpl_getAnchorNodeImpl' failed: symbol not defined
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol 'Java_com_sun_webkit_dom_DOMSelectionImpl_getAnchorOffsetImpl' failed: symbol not defined
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol 'Java_com_sun_webkit_dom_DOMSelectionImpl_getBaseNodeImpl' failed: symbol not defined
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol 'Java_com_sun_webkit_dom_DOMSelectionImpl_getBaseOffsetImpl' failed: symbol not defined
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol 'Java_com_sun_webkit_dom_DOMSelectionImpl_getExtentNodeImpl' failed: symbol not defined
ld.lld: error: version script assignment of 'SUNWprivate_1.0' to symbol 'Java_com_sun_webkit_dom_DOMSelectionImpl_getExtentOffsetImpl' failed: symbol not defined
ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

> Task :web:compileNativeLinux FAILED

FAILURE: Build failed with an exception.

* Where:
Build file '/home/captain/.cache/yay/java17-openjfx/java17-openjfx/src/jfx17u-17.0.11-2/build.gradle' line: 3528

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 2h 3m 46s
61 actionable tasks: 61 executed
==> ERROR: A failure occurred in build().
    Aborting...

dynobo commented on 2024-04-24 14:30 (UTC) (edited on 2024-04-24 14:31 (UTC) by dynobo)

To expand on @sl1pkn06's solution to @duvel71's issue: That line has to go into PKGBUILD in the build() section before the line where gradle is started. I used this line from the java-openjfx package and put it in L84:

  # Workaround for situation where the linker treats whitespace as arguments
  export LDFLAGS="${LDFLAGS//+([[:space:]]|[[:blank:]])/ }"

Worked like a charm!

sl1pkn07 commented on 2024-03-28 20:14 (UTC)

Hi

if help

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

expalantion in the java-openjfx package

greetings