Package Details: java17-openjfx 17.0.12.u0-1

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.140804
First Submitted: 2023-12-05 21:09 (UTC)
Last Updated: 2024-05-05 16:01 (UTC)

Dependencies (31)

Required by (72)

Sources (5)

Latest Comments

1 2 3 Next › Last »

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

duvel71 commented on 2024-03-22 09:08 (UTC)

Trying to build this I get the following error:

> 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
collect2: error: ld returned 1 exit status

FAILURE: Build failed with an exception.

First attempt was a clean build with java-openjdk-17 as my default java environment. Changing java-environment-openjdk=11 to 17 in PKGBUILD didn't help. Neither did changing it back to 11 and switching the default java environment from java-openjdk-17 to java-openjdk-11. All combinations resulted in the same build error.

Here's the full build output:

==> Making package: java17-openjfx 17.0.11.u2-1 (Fri 22 Mar 2024 10:52:21)
==> Retrieving sources...
  -> Downloading java17-openjfx-17.0.11.u2.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 58.4M    0 58.4M    0     0   923k      0 --:--:--  0:01:04 --:--:--  886k
  -> Found gradle.properties
  -> Found java-openjfx-flags.patch
  -> Found java-openjfx-no-xlocale.patch
  -> Found java-openjfx-gstreamer-lite-gcc10-compat.patch
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with b2sums...
    java17-openjfx-17.0.11.u2.tar.gz ... Passed
    gradle.properties ... Passed
    java-openjfx-flags.patch ... Passed
    java-openjfx-no-xlocale.patch ... Passed
    java-openjfx-gstreamer-lite-gcc10-compat.patch ... Passed
:: (1/1) Parsing SRCINFO: java17-openjfx
==> Making package: java17-openjfx 17.0.11.u2-1 (Fri 22 Mar 2024 10:53:30)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found java17-openjfx-17.0.11.u2.tar.gz
  -> Found gradle.properties
  -> Found java-openjfx-flags.patch
  -> Found java-openjfx-no-xlocale.patch
  -> Found java-openjfx-gstreamer-lite-gcc10-compat.patch
==> Validating source files with b2sums...
    java17-openjfx-17.0.11.u2.tar.gz ... Passed
    gradle.properties ... Passed
    java-openjfx-flags.patch ... Passed
    java-openjfx-no-xlocale.patch ... Passed
    java-openjfx-gstreamer-lite-gcc10-compat.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting java17-openjfx-17.0.11.u2.tar.gz with bsdtar
==> Starting prepare()...
patching file buildSrc/linux.gradle
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile
Hunk #2 succeeded at 55 with fuzz 1.
patching file modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile
patching file modules/javafx.web/src/main/native/Source/ThirdParty/libxslt/src/libxslt/xsltlocale.h
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile
Hunk #1 succeeded at 56 with fuzz 2 (offset 3 lines).
==> Sources are ready.
==> Making package: java17-openjfx 17.0.11.u2-1 (Fri 22 Mar 2024 10:53:42)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
Downloading https://services.gradle.org/distributions/gradle-7.3-bin.zip
...........10%...........20%...........30%...........40%...........50%...........60%...........70%...........80%...........90%...........100%

Welcome to Gradle 7.3!

Here are the highlights of this release:
 - Easily declare new test suites in Java projects
 - Support for Java 17
 - Support for Scala 3

For more details see https://docs.gradle.org/7.3/release-notes.html

To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.3/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build 

> Configure project :
gradle.gradleVersion: 7.3
OS_NAME: linux
OS_ARCH: amd64
JAVA_HOME: /usr/lib/jvm/java-17-openjdk
JDK_HOME: /usr/lib/jvm/java-17-openjdk
java.runtime.version: 17.0.10+7
java version: 17.0.10
java build number: 7
jdk.runtime.version: 17.0.10+7
jdk version: 17.0.10
jdk build number: 7
minimum jdk version: 11
minimum jdk build number: 28
GCC version: gcc12.2.0-OL6.4+1.0
cmake version: 3.22.3
ninja version: 1.8.2
ant version: 1.10.5
HAS_JAVAFX_MODULES: false
STUB_RUNTIME: /usr/lib/jvm/java-17-openjdk
CONF: Release
NUM_COMPILE_THREADS: 8
COMPILE_TARGETS: linux
COMPILE_FLAGS_FILES: buildSrc/linux.gradle
HUDSON_JOB_NAME: not_hudson
HUDSON_BUILD_NUMBER: 0000
PROMOTED_BUILD_NUMBER: 0
PRODUCT_NAME: OpenJFX
RELEASE_VERSION: 17.0.11
RELEASE_SUFFIX: -internal
RELEASE_VERSION_SHORT: 17.0.11-internal
RELEASE_VERSION_LONG: 17.0.11-internal+0-2024-03-22-105555
RELEASE_VERSION_PADDED: 17.0.11.0
MAVEN_PUBLISH: false
MAVEN_VERSION: 
UPDATE_STUB_CACHE: false
Building Webkit configuration /Release/ into /home/captain/.cache/yay/java17-openjfx/src/jfx17u-17.0.11-2/modules/javafx.web/build/linux
module: project ':apps' (buildModule=NO)
module: project ':base' (buildModule=YES)
module: project ':controls' (buildModule=YES)
module: project ':fxml' (buildModule=YES)
module: project ':graphics' (buildModule=YES)
module: project ':media' (buildModule=YES)
module: project ':swing' (buildModule=YES)
module: project ':swt' (buildModule=NO)
module: project ':systemTests' (buildModule=NO)
module: project ':web' (buildModule=YES)

> Task :base:compileJava
You specified both --module-source-path and a sourcepath. These options are mutually exclusive. Ignoring sourcepath.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :graphics:generateGrammarSource
warning(131): com/sun/scenario/effect/compiler/JSL.g4:482:19: greedy block ()* contains wildcard; the non-greedy syntax ()*? may be preferred

> Task :graphics:compileJava
You specified both --module-source-path and a sourcepath. These options are mutually exclusive. Ignoring sourcepath.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :graphics:compileFullJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> 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
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

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 4m
20 actionable tasks: 20 executed
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: java17-openjfx-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
java17-openjfx - exit status 4

redtide commented on 2024-02-28 11:00 (UTC)

why java-environment-openjdk=11 and not 17? I need to install another version this way

mmachen commented on 2024-01-27 19:31 (UTC) (edited on 2024-01-27 19:34 (UTC) by mmachen)

Failed with this Gradle error message.

BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65

Per https://docs.gradle.org/7.1.1/userguide/compatibility.html:

A Java version between 8 and 16 is required to execute Gradle. Java 17 and later versions are not yet supported.

So I added below to gradle.properties.

org.gradle.java.home=/usr/lib/jvm/java-11-openjdk/

Then I ran below and it worked.

makepkg -g >> PKGBUILD
makepkg