Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
issue on emerging dev-java/javacup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jeffss
n00b
n00b


Joined: 13 Sep 2019
Posts: 53

PostPosted: Wed Oct 18, 2023 8:13 pm    Post subject: issue on emerging dev-java/javacup Reply with quote

on emerging javacup I am getting the following error:

Code:

* Package:    dev-java/javacup-0.11b_p20151001-r1:0
 * Repository: gentoo
 * Maintainer: java@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux
 * FEATURES:   ccache network-sandbox preserve-libs sandbox selinux sesandbox userpriv usersandbox
 * Using: icedtea-8
>>> 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 user patches from /etc/portage/patches ...
 * Applying additional_imports.patch ...
 [ ok ]
 * Applying resolve_names.patch ...
 [ ok ]
 * User patches applied.
 * =====================================================================================================================================================================================================
 * 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
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

BUILD FAILED
/var/tmp/portage/dev-java/javacup-0.11b_p20151001-r1/work/build.xml:49: java.lang.NoSuchMethodError: java_cup.runtime.lr_parser.<init>(Ljava_cup/runtime/Scanner;Ljava_cup/runtime/SymbolFactory;)V
        at java_cup.parser.<init>(parser.java:25)
        at java_cup.Main.parse_grammar_spec(Main.java:472)
        at java_cup.Main.main(Main.java:186)
        at java_cup.anttask.CUPTask.execute(CUPTask.java:157)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        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:827)
        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 3037:  Called eant
 *   environment, line  586:  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=icedtea-8  CLASSPATH="" JAVA_HOME="/usr/lib64/icedtea8"
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/log/ebuilds/dev-java:javacup-0.11b_p20151001-r1:20231018-182527.log'.
 * For convenience, a symlink to the 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'


the patches tried:
Code:

diff --git a/src/java_cup/runtime/lr_parser.java b/src/java_cup/runtime/lr_parser.java
index 2091929..7a664a4 100644
--- a/src/java_cup/runtime/lr_parser.java
+++ b/src/java_cup/runtime/lr_parser.java
@@ -7,6 +7,8 @@ import java.util.List;
 import java.util.Stack;
 
 import java_cup.runtime.ComplexSymbolFactory.ComplexSymbol;
+import java_cup.runtime.Scanner;
+import java_cup.runtime.SymbolFactory;
 
 
 
localhost ~ # cat /etc/portage/patches/dev-java/javacup*/*
diff --git a/src/java_cup/runtime/lr_parser.java b/src/java_cup/runtime/lr_parser.java
index 2091929..7a664a4 100644
--- a/src/java_cup/runtime/lr_parser.java
+++ b/src/java_cup/runtime/lr_parser.java
@@ -7,6 +7,8 @@ import java.util.List;
 import java.util.Stack;
 
 import java_cup.runtime.ComplexSymbolFactory.ComplexSymbol;
+import java_cup.runtime.Scanner;
+import java_cup.runtime.SymbolFactory;
 
 
 
diff --git a/src/java_cup/runtime/lr_parser.java b/src/java_cup/runtime/lr_parser.java
index 7a664a4..14f5a17 100644
--- a/src/java_cup/runtime/lr_parser.java
+++ b/src/java_cup/runtime/lr_parser.java
@@ -128,7 +128,7 @@ public abstract class lr_parser {
 
     /**
      * Simple constructor. 
-     * deprecated; The use of a SymbolFactory, e.g. Complexsymbolfactory is advised 
+     * deprecated; The use of a SymbolFactory, e.g. Complexsymbolfactory is advised  java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf
      */
        @Deprecated
     public lr_parser() {
@@ -137,7 +137,7 @@ public abstract class lr_parser {
     /**
      * Simple constructor. 
      */
-    public lr_parser(SymbolFactory fac) {
+    public lr_parser(java_cup.runtime.SymbolFactory fac) {
         symbolFactory = fac;
     }
     /**
@@ -145,22 +145,22 @@ public abstract class lr_parser {
      * deprecated; The use of a SymbolFactory, e.g. Complexsymbolfactory is advised
      */
     @Deprecated
-    public lr_parser(Scanner s) {
+    public lr_parser(java_cup.runtime.Scanner s) {
         this(s,new DefaultSymbolFactory()); // TUM 20060327 old cup v10 Symbols as default
     }
     /**
      * Constructor that sets the default scanner and a SymbolFactory
      */
-    public lr_parser(Scanner s, SymbolFactory symfac) {
+    public lr_parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory symfac) {
         this(); // in case default constructor someday does something
         symbolFactory = symfac;
         setScanner(s);
     }
-    public SymbolFactory symbolFactory;
+    public java_cup.runtime.SymbolFactory symbolFactory;
     /**
      * Whenever creation of a new Symbol is necessary, one should use this factory.
      */
-    public SymbolFactory getSymbolFactory(){
+    public java_cup.runtime.SymbolFactory getSymbolFactory(){
         return symbolFactory;
     }
   /*-----------------------------------------------------------*/


emerge --info:
Code:

Portage 3.0.49 (python 3.11.4-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-12, glibc-2.37-r3, 6.1.31-gentoo x86_64)
=================================================================
System uname: Linux-6.1.31-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_650_@_3.20GHz-with-glibc2.37
KiB Mem:     8115176 total,    861028 free
KiB Swap:   20971512 total,  20908280 free
Timestamp of repository Miezhiko: Thu, 14 Sep 2023 05:49:32 +0000
Head commit of repository Miezhiko: bbbfd8dc6fd56a6d847d9daac2e44067a88ef37a

Timestamp of repository eclipse: Sun, 30 Jul 2023 18:48:31 +0000
Head commit of repository eclipse: 11c9e6207105af9f711e1f5a965ca33052b16f35

Head commit of repository gentoo-zh: 3ba2c8c5f27348892d32894f235687745c742c63

Timestamp of repository guru: Thu, 10 Aug 2023 08:16:28 +0000
Head commit of repository guru: ee85ac757997530f57ad046fc0a369524ca7d5e5

Timestamp of repository tatsh-overlay: Thu, 10 Aug 2023 08:31:28 +0000
Head commit of repository tatsh-overlay: ff68b70401b447d7968eed5c2963127110788935

Timestamp of repository gentoo: Thu, 10 Aug 2023 21:15:01 +0000
Head commit of repository gentoo: 800d7e2da94dd545d984923b1b982abcfe201df6
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.39 p6) 2.39.0
ccache version 4.8.2 [enabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.36.1-r3::gentoo
dev-lang/python:           3.10.12::gentoo, 3.11.4::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-util/ccache:           4.8.2::gentoo
dev-util/cmake:            3.26.4-r2::gentoo
dev-util/meson:            1.1.1::gentoo
sec-policy/selinux-base:   2.20221101-r4::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.47.1::gentoo
sys-apps/sandbox:          2.37::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.39-r5::gentoo, 2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r1::gentoo, 16.0.6::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::localrepo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
sys-libs/libselinux:       3.5-r1::gentoo
Repositories:

Miezhiko
    location: /var/db/repos/Miezhiko
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/Miezhiko.git
    masters: gentoo
    volatile: False

eclipse
    location: /var/db/repos/eclipse
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/eclipse.git
    masters: gentoo
    volatile: False

gentoo-zh
    location: /var/db/repos/gentoo-zh
    sync-type: git
    sync-uri: https://github.com/microcai/gentoo-zh
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

tatsh-overlay
    location: /var/db/repos/tatsh-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/tatsh-overlay.git
    masters: gentoo
    volatile: False

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.ru.gentoo.org/gentoo-portage
    priority: 10
    volatile: False
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo
    priority: 60
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=native -maes -mmmx -mpclmul -mpopcnt -msse -msse2 -msse3 -msse4.1 -msse4.2 -mssse3 -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=4"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O3 -pipe -march=native -maes -mmmx -mpclmul -mpopcnt -msse -msse2 -msse3 -msse4.1 -msse4.2 -mssse3 -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=4"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 2 --load-average 4.00"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O3 -pipe -march=native -maes -mmmx -mpclmul -mpopcnt -msse -msse2 -msse3 -msse4.1 -msse4.2 -mssse3 -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=4"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O3 -pipe -march=native -maes -mmmx -mpclmul -mpopcnt -msse -msse2 -msse3 -msse4.1 -msse4.2 -mssse3 -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=4"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pt_BR.UTF-8"
LDFLAGS="-pthread -pipe -O2 -Wl,-O2 -march=native"
LEX="flex"
MAKEFLAGS="--jobserver-auth=R,W"
MAKEOPTS="-j2"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RUSTFLAGS="-C target-cpu=native -C lto -C opt-level=3"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities aes alisp alsa amd64 amdgpu audit berkdb bluetooth branding bzip2 cairo caps cdda cdr cet cli crypt cups dbus declarative dri dts dvd dvdr elogind encode exif fam flac fortran gdbm gif gles gnome gpm gtk gtk-doc gui hardened iconv icu introspection ipv6 jpeg julia kde kwallet lcms libnotify libtirpc lua mad mmx mng mp3 mp4 mpeg multilib ncurses nls nptl ogg open_perms opengl openh264 openmp pam pango pclmul pcre pdf peer_perms pie pipewire plasma png policykit popcnt ppds pt-BR pulseaudio python qml qt4 qt5 readline rusticl screencast sdl sdl2 seccomp selinux semantic-desktop sound spell split-usr sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 startup-notification svg systemtap test-rust thread-safety tiff truetype udev udisks unconfined unicode upower usb vala vorbis vulkan wayland widgets wxwidgets x264 x265 xattr xcb xft xml xtpax xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" AMDGPU_TARGETS="gfx803" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes pclmul popcnt sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_10" RUBY_TARGETS="ruby31" SANE_BACKENDS="hp" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS


I am trying to install it on a system that has just the ant-core installed, if that makes a difference. That problem also seems related to https://bugs.gentoo.org/776655. Also a problem that I am having is that though I tried to modify the ebuild for getting some informations, on java/java_cup/parser.java and a possible java/java_cup/lr_parser.java, I am not being able to mantain any file there after the compilation that would populate that folder. Though getting the sources and compiling manually, it starts from that line on java/java_cup/parser.java:
Code:

public class parser extends java_cup.runtime.lr_parser {
[...]
public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}


An option could also be to install manually with the binary tarballs given by the repository if I can have some information about the install
while searching about this problem I found this about circular dependencies: https://github.com/jflex-de/jflex/issues/271 and the V on
Code:
java.lang.NoSuchMethodError: java_cup.runtime.lr_parser.<init>(Ljava_cup/runtime/Scanner;Ljava_cup/runtime/SymbolFactory;)V
seems to be about versioning as in https://stackoverflow.com/questions/49322298/java-lang-nosuchmethoderror-org-apache-fontbox-afm-afmparser-parsev

the problem seems to be that the installed jflex is using the bundled java-cup-11a.jar, while the javacup I am trying to install is 11b; however considering bundling bug it may not be possible to solve it by just taking the other bundled javacup jar used for jflex in place of the default

Another information is that I had to comment the line "rm -rv ${JAVA_SRC_DIR}/java_cup examples/pom.xml || die" from the jflex ebuild. Otherwise I get many errors about not finding the function getSymbolFactory() and this first message of error:
Code:

1384 states before minimization, 828 states in minimized DFA
Writing code to "src/main/java/jflex/LexScan.java"
javac -source 1.8 -target 1.8 -d target/classes -encoding UTF-8 -classpath /usr/share/ant-core/lib/ant.jar:/usr/share/ant-core/lib/ant-bootstrap.jar:/usr/share/ant-core/lib/ant-launcher.jar:lib/java-cup-11a.jar @sources.lst
src/main/java/jflex/LexParse.java:24: error: no suitable constructor found for lr_parser(Scanner,SymbolFactory)
  public LexParse(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}
                                                                                  ^
    constructor lr_parser.lr_parser() is not applicable
      (actual and formal argument lists differ in length)
    constructor lr_parser.lr_parser(Scanner) is not applicable
      (actual and formal argument lists differ in length)
src/main/java/jflex/LexParse.java:1328: error: cannot find symbol
              CUP$LexParse$result = parser.getSymbolFactory().newSymbol("preclass",12, ((java_cup.runtime.Symbol)CUP$LexParse$stack.peek()), ((java_cup.runtime.Symbol)CUP$LexParse$stack.peek()), RESULT);
                                          ^


Now I could get javacup installed, but as a temporary solution by commenting the line on the ebuild that removes the JFlex jar, as a step on trying to bootstrap javacup and jflex, however when tryiing to recomple jflex I got the following errors:

Code:

 * Package:    dev-java/jflex-1.6.1-r1:0
 * Repository: localrepo
 * Maintainer: java@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux
 * FEATURES:   ccache network-sandbox preserve-libs sandbox selinux sesandbox userpriv usersandbox
 * Using: icedtea-8
>>> Unpacking source...
>>> Unpacking jflex-1.6.1.tar.gz to /var/tmp/portage/dev-java/jflex-1.6.1-r1/work
>>> Source unpacked in /var/tmp/portage/dev-java/jflex-1.6.1-r1/work
>>> Preparing source in /var/tmp/portage/dev-java/jflex-1.6.1-r1/work/jflex-1.6.1 ...
 * Applying icedtea-arm.patch ...
 [ ok ]
removed 'lib/java-cup-11a.jar'
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/jflex-1.6.1-r1/work/jflex-1.6.1 ...
 * java-pkg_ensure-dep: The ebuild is attempting to use javacup, which is not declared with a SLOT in DEPEND.
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/jflex-1.6.1-r1/work/jflex-1.6.1 ...
Warning : Terminal "STRING_I" was declared but never used
Warning : Terminal "CONCAT" was declared but never used
Warning : Terminal "CCLASSNOT" was declared but never used
Warning : Terminal "CHAR_I" was declared but never used
Warning : Terminal "UNION" was declared but never used
Warning : Terminal "CCLASS" was declared but never used
------- CUP v0.11b 20151001 Parser Generation Summary -------
  0 errors and 6 warnings
  60 terminals, 19 non-terminals, and 113 productions declared,
  producing 196 unique parse states.
  6 terminals declared but not used.
  0 non-terminals declared but not used.
  0 productions never reduced.
  0 conflicts detected (0 expected).
  Code written to "LexParse.java", and "sym.java".
---------------------------------------------------- (CUP v0.11b 20151001)
Reading skeleton file "src/main/jflex/skeleton.nested".
Reading "src/main/jflex/LexScan.flex"
Constructing NFA : 2.730 states in NFA
Converting NFA to DFA :
...................................................................................................................................................................................................................................................................................................................................................................................
1384 states before minimization, 828 states in minimized DFA
Writing code to "src/main/java/jflex/LexScan.java"
javac -source 1.8 -target 1.8 -d target/classes -encoding UTF-8 -classpath /usr/share/ant-core/lib/ant.jar:/usr/share/ant-core/lib/ant-bootstrap.jar:/usr/share/ant-core/lib/ant-launcher.jar:/usr/share/javacup/lib/javacup.jar @sources.lst
src/main/java/jflex/LexParse.java:1406: error: incompatible types: NFA cannot be converted to Symbol
              CUP$LexParse$result = parser.getSymbolFactory().newSymbol("specification",3, ((java_cup.runtime.Symbol)CUP$LexParse$stack.peek()), RESULT);
                                                                                                                                                 ^
src/main/java/jflex/LexParse.java:1415: error: incompatible types: Object cannot be converted to Symbol
              CUP$LexParse$result = parser.getSymbolFactory().newSymbol("macros",0, ((java_cup.runtime.Symbol)CUP$LexParse$stack.peek()), RESULT);
                                                                                                                                          ^
src/main/java/jflex/LexParse.java:1744: error: incompatible types: List<Integer> cannot be converted to Symbol
              CUP$LexParse$result = parser.getSymbolFactory().newSymbol("statesOPT",14, ((java_cup.runtime.Symbol)CUP$LexParse$stack.peek()), RESULT);
                                                                                                                                              ^
src/main/java/jflex/LexParse.java:1824: error: incompatible types: Boolean cannot be converted to Symbol
              CUP$LexParse$result = parser.getSymbolFactory().newSymbol("hatOPT",16, ((java_cup.runtime.Symbol)CUP$LexParse$stack.peek()), RESULT);
                                                                                                                                           ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: src/main/java/jflex/NFA.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
4 errors
 * ERROR: dev-java/jflex-1.6.1-r1::localrepo failed (compile phase):
 *   ejavac failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 2408:  Called jflex_compile '-cp' 'lib/jflex-1.6.1.jar:/usr/share/javacup/lib/javacup.jar'
 *   environment, line 2389:  Called java-pkg-simple_src_compile
 *   environment, line  882:  Called ejavac '-d' 'target/classes' '-encoding' 'UTF-8' '-classpath' '/usr/share/ant-core/lib/ant.jar:/usr/share/ant-core/lib/ant-bootstrap.jar:/usr/share/ant-core/lib/ant-launcher.jar:/usr/share/javacup/lib/javacup.jar' '@sources.lst'
 *   environment, line  641:  Called die
 * The specific snippet of code:
 *       "${args[@]}" || die "ejavac failed"
 *
 * If you need support, post the output of `emerge --info '=dev-java/jflex-1.6.1-r1::localrepo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/jflex-1.6.1-r1::localrepo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-8  CLASSPATH="" JAVA_HOME="/usr/lib64/icedtea8"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
and of course, the output of emerge --info =jflex-1.6.1
 * The complete build log is located at '/var/log/ebuilds/dev-java:jflex-1.6.1-r1:20231114-185838.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-java/jflex-1.6.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/jflex-1.6.1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/jflex-1.6.1-r1/work/jflex-1.6.1'
 * S: '/var/tmp/portage/dev-java/jflex-1.6.1-r1/work/jflex-1.6.1'
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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