Hi, I have an error while compiling dev-java/jmock-1.2.0-r1. The problem seems to be at the file /var/tmp/portage/dev-java/jmock-1.2.0-r1/temp/environment. The error I get is: >>> Compiling source in /var/tmp/portage/dev-java/jmock-1.2.0-r1/work/jmock-1.2.0 ... ejavac -d target/classes -encoding UTF-8 -classpath /usr/share/junit/lib/junit.jar @sources.lst * Using javac for compilation javac -source 1.6 -target 1.6 -d target/classes -encoding UTF-8 -classpath /usr/share/junit/lib/junit.jar @sources.lst /var/tmp/portage/dev-java/jmock-1.2.0-r1/temp/environment: line 644: $'\E[32;01m*\E[0m': command not found * ERROR: dev-java/jmock-1.2.0-r1::gentoo failed (compile phase): * ejavac failed Which is very descriptive by itself. It seems that the javac command has a green asterisk at the begining of the string. It seems to happen at the function ejavac() while executing the line: ${compiler_executable} ${javac_args} "${@}" || die "ejavac failed" So the problem would be at the ${compiler_executable} variable which is initialized in that line: compiler_executable=$(java-pkg_get-javac); The java-pkg_get-javac function finishes with an echo and maybe it's related with the problem (it seems to be a problem while reading the echo result, but I'm not sure). Thank you for your time, Regards.
I can't reproduce this bug. Would you mind attaching your build.log and environment files and capturing the output of `emerge --info' in a file, and attaching it as well?
Created attachment 410672 [details] The build.log file.
Created attachment 410674 [details] The environment file.
Created attachment 410676 [details] The emerge --info output.
Here they are, hope it helps.
This is a weird one but after some digging, I can see why it happens and it's related to something I changed around a month ago. What's less clear is why you're hitting this particular code path. Please show the contents of /etc/java-config-2/build/compilers.conf if it is not all comments.
Created attachment 410680 [details] The compilers.conf file.
Here it is, it just defines the COMPILERS variable to javac. Maybe I should use an absolute path?
(In reply to Armitage from comment #8) > Here it is, it just defines the COMPILERS variable to javac. Maybe I should > use an absolute path? Bingo! Please don't change anything as you've not done anything wrong. It's just you're probably the only Gentoo user in the world who's bothered to change this file. :) I'll get it fixed later.
Yes, probably I am :P. I) remember that very long ago I had a problem with ecj and that's why I changed it to always use javac. But it was very long ago and I'm not sure of that... I don't even remember the issue I had with ecj. I'm sorry I can't provide more information about why I changed that configuration.
Hi, How is the fix going? Do you need more information? Thank you for your time, Regards.
Sorry, bumping icedtea takes precedence. Nearly done on that.
Oh I'm sorry, I didn't know that you're involved in more important tasks. I understand the priority. That list is not a FIFO, it is more like a MIFO (the More Important the First Out ;). Thank you for the report :).
(In reply to Armitage from comment #13) > Oh I'm sorry, I didn't know that you're involved in more important tasks. The rest of our fledging team voted to make me leader yesterday. Lucky me. :)
(In reply to James Le Cuirot from comment #14) > (In reply to Armitage from comment #13) > > Oh I'm sorry, I didn't know that you're involved in more important tasks. > > The rest of our fledging team voted to make me leader yesterday. Lucky me. :) What a good new! You must be proud of that. :)
Created attachment 411010 [details, diff] Patch against java-utils-2.eclass monsieurp, please review this patch.
LGTM. Go ahead.
Fixed.
Hi, I have just tested the patch and worked perfectly. Sorry I couldn't test it before, I wasn't at home. Thank you for the good and fast job.