Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698876 - dev-java/openjfx-11.0.3_p1 : /.../build-impl.xml:289: Compile failed; see the compiler error output for details.
Summary: dev-java/openjfx-11.0.3_p1 : /.../build-impl.xml:289: Compile failed; see the...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-29 18:57 UTC by Toralf Förster
Modified: 2020-04-29 21:05 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.82 KB, text/plain)
2019-10-29 18:57 UTC, Toralf Förster
Details
dev-java:openjfx-11.0.3_p1:20191029-184558.log.bz2 (dev-java:openjfx-11.0.3_p1:20191029-184558.log.bz2,61.50 KB, application/x-bzip)
2019-10-29 18:57 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,50.47 KB, text/plain)
2019-10-29 18:57 UTC, Toralf Förster
Details
environment (environment,152.23 KB, text/plain)
2019-10-29 18:57 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.21 KB, application/x-bzip)
2019-10-29 18:57 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-10-29 18:57:01 UTC
/var/tmp/portage/dev-java/openjfx-11.0.3_p1/work/rt-11.0.3+1/apps/samples/build.xml:13: The following error occurred while executing this line:
/var/tmp/portage/dev-java/openjfx-11.0.3_p1/work/rt-11.0.3+1/apps/samples/3DViewer/nbproject/build-impl.xml:944: The following error occurred while executing this line:
/var/tmp/portage/dev-java/openjfx-11.0.3_p1/work/rt-11.0.3+1/apps/samples/3DViewer/nbproject/build-impl.xml:289: Compile failed; see the compiler error output for details.

Total time: 5 seconds


  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-libressl-20191028-101629

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *


llvm:
9.0.0
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.38.0 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.13.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Tue, 29 Oct 2019 17:46:02 +0000

emerge -qpvO dev-java/openjfx
[ebuild  N    ] dev-java/openjfx-11.0.3_p1  USE="media -debug -doc -source" CPU_FLAGS_X86="sse2"
Comment 1 Toralf Förster gentoo-dev 2019-10-29 18:57:04 UTC
Created attachment 594486 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-10-29 18:57:07 UTC
Created attachment 594488 [details]
dev-java:openjfx-11.0.3_p1:20191029-184558.log.bz2
Comment 3 Toralf Förster gentoo-dev 2019-10-29 18:57:10 UTC
Created attachment 594490 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2019-10-29 18:57:13 UTC
Created attachment 594492 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2019-10-29 18:57:16 UTC
Created attachment 594494 [details]
etc.portage.tbz2
Comment 6 bugtrack 2019-10-31 10:24:33 UTC
I can confirm this bug.
The compiler error output mentioned in the first is here

    [javac] Compiling 143 source files to /var/tmp/portage/dev-java/openjfx-11.0.3_p1/work/rt-11.0.3+1/apps/samples/3DViewer/build/classes
    [javac] error: invalid flag: @/var/tmp/portage/dev-java/openjfx-11.0.3_p1/work/rt-11.0.3+1/build/compile.args
    [javac] Usage: javac <options> <source files>
    [javac] use --help for a list of possible options

I couldn't reconstruct so far how and why something is passed to javac that it considers an invalid flag.

How can I find what is actually passed at this point to javac as commandline arguments?

The file mentioned in this compiler error,
/var/tmp/portage/dev-java/openjfx-11.0.3_p1/work/rt-11.0.3+1/build/compile.args , contains the following two lines:

--module-path="/var/tmp/portage/dev-java/openjfx-11.0.3_p1/work/rt-11.0.3+1/build/sdk/lib"
--add-modules=javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web

I assume, that the *content* of the file should be passed to javac. Might the error come from the *filename* being passed to javac instead?
Comment 7 Niccolò Scatena 2019-11-04 16:00:35 UTC
Possible (not optimal) workaround:

I've managed to install openjfx by disabling build of appsJar target.
Perform all installation steps till src_configure, then edit `work/rt-11.0.3+1/apps/build.xml` substituting the following line:

<target name="appsJar" depends="sampleAppsJar,scenebuilderAppJar,scenebuilderSampleAppsJar"/>

with this:

<target name="appsJar" depends=""/>

then continue with compile and merge.

This will disable building of samples and scene builder, but everything else will work. At least, you will be able to build JavaFX apps.
Comment 8 Jan Henke 2019-12-31 11:34:31 UTC
I have hit this bug as well and can confirm the above workaround did get the package to build.
Comment 9 Anton Bolshakov 2020-01-16 13:21:14 UTC
https://bz.apache.org/bugzilla/show_bug.cgi?id=63874

The bug is in the ant-core component, you can apply the patch from https://github.com/apache/ant/pull/105 and release ant-core-1.10.7-r1
Comment 10 Larry the Git Cow gentoo-dev 2020-01-22 00:23:03 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8720a4d009fcfa5a258244533a9f51a63f468b0

commit a8720a4d009fcfa5a258244533a9f51a63f468b0
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-01-21 23:44:14 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-01-22 00:22:31 +0000

    dev-java/ant-core: rebvump, add cmdline handling patch
    
    Bug: https://bugs.gentoo.org/698876
    Package-Manager: Portage-2.3.84, Repoman-2.3.16
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-java/ant-core/ant-core-1.10.7-r1.ebuild       | 110 ++++++++++++++++++
 dev-java/ant-core/files/1.10.7-cmdline-args.patch | 135 ++++++++++++++++++++++
 2 files changed, 245 insertions(+)
Comment 11 Georgy Yakovlev archtester gentoo-dev 2020-01-22 00:29:44 UTC
thanks for patch suggestion!
it helped.
Comment 12 Larry the Git Cow gentoo-dev 2020-01-22 01:15:07 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be822d9c5e47878dda2e822d3fdef5eac034c84f

commit be822d9c5e47878dda2e822d3fdef5eac034c84f
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-01-22 01:13:37 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-01-22 01:14:50 +0000

    dev-java/openjfx: require fixed ant-core
    
    Bug: https://bugs.gentoo.org/698876
    Package-Manager: Portage-2.3.84, Repoman-2.3.16
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-java/openjfx/openjfx-11.0.6_p2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 13 Larry the Git Cow gentoo-dev 2020-04-29 21:05:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bd0588cf0d8ed636a5b86a8d6e8bf081a663c49

commit 2bd0588cf0d8ed636a5b86a8d6e8bf081a663c49
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-04-29 21:03:03 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-04-29 21:05:02 +0000

    dev-java/openjfx: drop old
    
    Closes: https://bugs.gentoo.org/698876
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-java/openjfx/Manifest                 |   2 -
 dev-java/openjfx/openjfx-11.0.6_p2.ebuild | 220 -----------------------------
 dev-java/openjfx/openjfx-11.0.7_p0.ebuild | 221 ------------------------------
 3 files changed, 443 deletions(-)