https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-java/javacup-0.11b_p20151001-r1 fails to compile. Discovered on: amd64 (internal ref: ci)
CC'ing also the author of the commit
Created attachment 691764 [details] build.log build log and emerge --info
Cannot reproduce. Please verify.
Still happens. # emerge --unmerge javacup qdox ... # emerge -1 javacup >>> Emerging (1 of 2) dev-java/javacup-0.11b_p20151001-r1::gentoo * Fetching files in the background. * To view fetch progress, run in another terminal: * tail -f /var/log/emerge-fetch.log * 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 Rewriting ./build.xml >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/work ... * Bootstrapping with bundled javacup ... * Disabling all optional ANT_TASKS Warning: Unable to determine tools.jar location. If build fails because sun.* classes could not be found, Make sure you are using a JDK, not JRE as your user/system VM. and that you have java-config version 2.0.30 or above installed. Buildfile: /var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/work/build.xml init: cup: [cup] This is CUP v0.11a beta 20060608 [cup] Authors : Scott E. Hudson, Frank Flannery, Andrea Flexeder, Michael Petter and C. Scott Ananian [cup] Bugreports to petter@cs.tum.edu [cup] Destination directory didn't exist; creating new one: /var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/work/java/java_cup [cup] ------- CUP v0.11a beta 20060608 Parser Generation Summary ------- [cup] 0 errors and 0 warnings [cup] 36 terminals, 60 non-terminals, and 117 productions declared, [cup] producing 185 unique parse states. [cup] 0 terminals declared but not used. [cup] 0 non-terminals declared but not used. [cup] 0 productions never reduced. [cup] 0 conflicts detected (0 expected). [cup] Code written to "parser.java", and "sym.java". [cup] ---------------------------------------------------- (v0.11a beta 20060608) jflex: BUILD FAILED /var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/work/build.xml:53: java.lang.NoSuchMethodError: 'java_cup.runtime.Symbol java_cup.runtime.SymbolFactory.newSymbol(java.lang.String, int, java_cup.runtime.Symbol, java.lang.Object)' at jflex.LexParse$CUP$LexParse$actions.CUP$LexParse$do_action_part00000000(LexParse.java:1415) at jflex.LexParse$CUP$LexParse$actions.CUP$LexParse$do_action(LexParse.java:3399) at jflex.LexParse.do_action(LexParse.java:940) at java_cup.runtime.lr_parser.parse(lr_parser.java:584) at jflex.Main.generate(Main.java:67) at jflex.anttask.JFlexTask.execute(JFlexTask.java:66) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299) at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99) at org.apache.tools.ant.Task.perform(Task.java:350) at org.apache.tools.ant.Target.execute(Target.java:449) at org.apache.tools.ant.Target.performTasks(Target.java:470) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401) at org.apache.tools.ant.Project.executeTarget(Project.java:1374) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1264) at org.apache.tools.ant.Main.runBuild(Main.java:818) at org.apache.tools.ant.Main.startAnt(Main.java:223) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101) Total time: 0 seconds * ERROR: dev-java/javacup-0.11b_p20151001-r1::gentoo failed (compile phase): * eant failed * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 3050: Called eant * environment, line 590: Called die * The specific snippet of code: * ant ${antflags} "${@}" || die "eant failed" * * 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="javac" 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' The build.log does not contain anything new. BTW, I tried: # ant !!! ERROR: Package javacup was not found! !!! ERROR: Package javacup was not found! Warning: Unable to determine tools.jar location. If build fails because sun.* classes could not be found, Make sure you are using a JDK, not JRE as your user/system VM. and that you have java-config version 2.0.30 or above installed. Buildfile: build.xml does not exist! Build failed # Is the javacup thing still somewhere registered in ant although it was unmerged?
(In reply to Martin Mokrejš from comment #4) > Still happens. > [...] > Is the javacup thing still somewhere registered in ant although it was > unmerged? No. It's one of those presently 3 packages still depending on ant core: https://packages.gentoo.org/packages/dev-java/ant-core/reverse-dependencies Guess it's a good time to re-activate https://github.com/gentoo/gentoo/pull/32820 and see what problems are left.