Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(solved) Unable to emerge dev-java/javacup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ultimeight
n00b
n00b


Joined: 09 Apr 2023
Posts: 60

PostPosted: Mon Jun 03, 2024 9:33 pm    Post subject: (solved) Unable to emerge dev-java/javacup Reply with quote

Trying to do a system update, but I am getting an error while emerging dev-java/javacup

Code:
>>> Emerging (1 of 105) dev-java/javacup-0.11b_p20151001-r1::gentoo
 * java-cup-src-11b-20151001.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                            [ ok ]
 * Using: openjdk-bin-17
>>> Unpacking source...
>>> Unpacking java-cup-src-11b-20151001.tar.gz to /var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/work
>>> Source unpacked in /var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/work
>>> Preparing source in /var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/work ...
 * Applying javacup-0.11b_beta20150326-build-xml-svn.patch ...
patching file build.xml
Hunk #2 succeeded at 56 with fuzz 2.                                                                                                                                                                       [ ok ]
removed 'bin/JFlex.jar'
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/work ...
Rewriting attributes
/var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/temp/environment: line 1296: /usr/lib64/javatoolkit/bin/xml-rewrite-3.py: No such file or directory
 * ERROR: dev-java/javacup-0.11b_p20151001-r1::gentoo failed (configure phase):
 *   xml-rewrite-3 failed: ./build.xml
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_configure
 *   environment, line 3011:  Called java-ant-2_src_configure
 *   environment, line 1197:  Called java-ant_bsfix
 *   environment, line 1215:  Called java-ant_bsfix_files './build.xml'
 *   environment, line 1296:  Called die
 * The specific snippet of code:
 *               ${rewriter3} "${files[@]}" -c --source-element ${JAVA_PKG_BSFIX_SOURCE_TAGS// / --source-element } --source-attribute source --source-value ${want_source} --target-element ${JAVA_PKG_BSFIX_TARGET_TAGS// / --target-element } --target-attribute target --target-value ${want_target} --target-attribute nowarn --target-value yes "${bsfix_extra_args[@]}" || die "xml-rewrite-3 failed: ${file}";
 *
 * If you need support, post the output of `emerge --info '=dev-java/javacup-0.11b_p20151001-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/javacup-0.11b_p20151001-r1::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=openjdk-bin-17  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-17.0.10_p7"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
and of course, the output of emerge --info =javacup-0.11b_p20151001
 * The complete build log is located at '/var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/work'
 * S: '/var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/work'

>>> Failed to emerge dev-java/javacup-0.11b_p20151001-r1, Log file:

>>>  '/var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/temp/build.log'

 * Messages for package dev-java/javacup-0.11b_p20151001-r1:

 * ERROR: dev-java/javacup-0.11b_p20151001-r1::gentoo failed (configure phase):
 *   xml-rewrite-3 failed: ./build.xml
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_configure
 *   environment, line 3011:  Called java-ant-2_src_configure
 *   environment, line 1197:  Called java-ant_bsfix
 *   environment, line 1215:  Called java-ant_bsfix_files './build.xml'
 *   environment, line 1296:  Called die
 * The specific snippet of code:
 *               ${rewriter3} "${files[@]}" -c --source-element ${JAVA_PKG_BSFIX_SOURCE_TAGS// / --source-element } --source-attribute source --source-value ${want_source} --target-element ${JAVA_PKG_BSFIX_TARGET_TAGS// / --target-element } --target-attribute target --target-value ${want_target} --target-attribute nowarn --target-value yes "${bsfix_extra_args[@]}" || die "xml-rewrite-3 failed: ${file}";
 *
 * If you need support, post the output of `emerge --info '=dev-java/javacup-0.11b_p20151001-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/javacup-0.11b_p20151001-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/work'
 * S: '/var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/work'


Complete build log can be found here: https://bpa.st/E5LA
Link to the emerge --info output: https://bpa.st/EYSA
Link to the make.conf file: https://bpa.st/UZYA

I tried running a one-shot emerge on javacup but that throws the same error. Found one similar post, but there was no solution.
Thank you for reading, appreciate the help.
_________________
Regards,
ultimeight.


Last edited by ultimeight on Fri Jun 07, 2024 5:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1737
Location: Germany

PostPosted: Tue Jun 04, 2024 5:44 am    Post subject: Reply with quote

There is a similar topic with some fix: https://forums.gentoo.org/viewtopic-p-8828880.html
And a bug: https://bugs.gentoo.org/933467
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
ultimeight
n00b
n00b


Joined: 09 Apr 2023
Posts: 60

PostPosted: Tue Jun 04, 2024 1:07 pm    Post subject: Reply with quote

Hi @Banana, thanks for the reply. I went through the post you have mentioned, the OP somewhat resolved their issue by symlinking /usr/lib/python-exec/python3.12/xml-rewrite-3.py to /usr/lib64/javatoolkit/bin/xml-rewrite-3.py. But in my case there are no such files on my system.

Code:
ultimeight@vega ~ $ ls /usr/lib64/ | grep -i "python"
libpython3.11.so
libpython3.11.so.1.0
libpython3.12.so
libpython3.12.so.1.0
ultimeight@vega ~ $ ls /usr/lib64/ | grep -i "java"
ultimeight@vega ~ $

_________________
Regards,
ultimeight.
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1737
Location: Germany

PostPosted: Tue Jun 04, 2024 1:55 pm    Post subject: Reply with quote

Please have a look in the linked topic.
Quote:
I just symlinked /usr/lib/python-exec/python3.12/xml-rewrite-3.py to /usr/lib64/javatoolkit/bin/xml-rewrite-3.py now, then javacc emerged. but that is not a clean solution..

You are grepping in the wrong directory

I do not know if this fix is a good one so please use it at own risk.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
ultimeight
n00b
n00b


Joined: 09 Apr 2023
Posts: 60

PostPosted: Fri Jun 07, 2024 4:39 pm    Post subject: Reply with quote

Apologies for the oversight, but javatoolkit directory is missing in my case.

Code:
ultimeight@vega ~ $ doas ln /usr/lib/python-exec/python3.12/xml-rewrite-3.py /usr/lib64/javatoolkit/bin/xml-rewrite-3.py
doas (ultimeight@vega) password:
ln: failed to create hard link '/usr/lib64/javatoolkit/bin/xml-rewrite-3.py' => '/usr/lib/python-exec/python3.12/xml-rewrite-3.py': No such file or directory


Output of eix shows that it is currently installed on my system.

Code:
ultimeight@vega ~ $ eix javatoolkit
[I] dev-java/javatoolkit
     Available versions:  0.6.7 0.6.7[1] {PYTHON_TARGETS="python3_10 python3_11 python3_12"}
     Installed versions:  0.6.7[1](21:14:24 06/03/24)(PYTHON_TARGETS="python3_12 -python3_10 -python3_11")
     Homepage:            https://wiki.gentoo.org/wiki/Project:Java
     Description:         Collection of Gentoo-specific tools for Java

[1] "pentoo" /var/db/repos/pentoo


Am I supposed to create that file or something?
_________________
Regards,
ultimeight.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1921

PostPosted: Fri Jun 07, 2024 4:44 pm    Post subject: Reply with quote

ultimeight wrote:
Code:
ultimeight@vega ~ $ eix javatoolkit
[I] dev-java/javatoolkit
     Available versions:  0.6.7 0.6.7[1] {PYTHON_TARGETS="python3_10 python3_11 python3_12"}
     Installed versions:  0.6.7[1](21:14:24 06/03/24)(PYTHON_TARGETS="python3_12 -python3_10 -python3_11")
     Homepage:            https://wiki.gentoo.org/wiki/Project:Java
     Description:         Collection of Gentoo-specific tools for Java

[1] "pentoo" /var/db/repos/pentoo

As the quoted bug states, this is fixed with dev-java/javatoolkit-0.6.7-r1::gentoo
Back to top
View user's profile Send private message
ultimeight
n00b
n00b


Joined: 09 Apr 2023
Posts: 60

PostPosted: Fri Jun 07, 2024 5:35 pm    Post subject: Reply with quote

So I guess we'll have to wait until it is fixed by the devs? If that's the case, would you recommend doing a system update excluding this or should I just wait for the fix?

Edit: I couldn't find this issue on the bugs page of dev-java/javacup
_________________
Regards,
ultimeight.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1921

PostPosted: Fri Jun 07, 2024 5:42 pm    Post subject: Reply with quote

ultimeight wrote:
So I guess we'll have to wait until it is fixed by the devs? If that's the case, would you recommend doing a system update excluding this or should I just wait for the fix?

Edit: I couldn't find this issue on the bugs page of dev-java/javacup

This has nothing to do with javacup directly. It is a bad install of a Gentoo tool, namely dev-java/javatoolkit. You need to resync and ensure the dev-java/javatoolkit-0.6.7-r1::gentoo version is installed.
Back to top
View user's profile Send private message
ultimeight
n00b
n00b


Joined: 09 Apr 2023
Posts: 60

PostPosted: Fri Jun 07, 2024 5:48 pm    Post subject: Reply with quote

After looking at the following snippet of error log, I decided to re-emerge dev-java/javatoolkit and then I emerged dev-java/javacup successfully without any errors.

Code:
Rewriting attributes
/var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/temp/environment: line 1296: /usr/lib64/javatoolkit/bin/xml-rewrite-3.py: No such file or directory

_________________
Regards,
ultimeight.
Back to top
View user's profile Send private message
ultimeight
n00b
n00b


Joined: 09 Apr 2023
Posts: 60

PostPosted: Fri Jun 07, 2024 5:49 pm    Post subject: Reply with quote

You were absolutely right @grknight.
_________________
Regards,
ultimeight.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum