I have ant-1.6.0. Can't upgrade to 1.6.0-r2. I have sun-jdk and blackdown-jdk, blackdown is the system-vm: # java-config -J /opt/blackdown-jdk-1.4.1/bin/java I get this error trying to emerge ant-1.6.0-r2: build: Created dir: /var/tmp/portage/ant-1.6.0-r2/work/apache-ant-1.6.0/build/classes Compiling 527 source files to /var/tmp/portage/ant-1.6.0-r2/work/apache-ant-1.6.0/build/classes /var/tmp/portage/ant-1.6.0-r2/work/apache-ant-1.6.0/src/main/org/apache/tools/ant/util/regexp/JakartaRegexpMatcher.java:156: cannot resolve symbol symbol : variable MATCH_SINGLELINE location: class org.apache.regexp.RE cOptions |= RE.MATCH_SINGLELINE; ^ Note: Some input files use or override a deprecated API. Note: Recompile with -deprecation for details. 1 error BUILD FAILED /var/tmp/portage/ant-1.6.0-r2/work/apache-ant-1.6.0/build.xml:602: Compile failed; see the compiler error output for details. Total time: 20 seconds !!! ERROR: dev-java/ant-1.6.0-r2 failed. !!! Function src_compile, Line 41, Exitcode 1 !!! (no error message)
Don, can you try unmerging ant and re-emerging it after ?
I hadn't tried that. I saw it mentioned in other bugs but I thought it only applied to upgrading from before 1.6.0. I'll give it a try when I get to the office tomorrow.
btw. can you also post the output of emerge info ?
Unmerging and merging new failed with same error. # emerge info Portage 2.0.50_pre21 (default-x86-1.4, gcc-3.2.3, glibc-2.2.5-r2,2.3.2-r8, 2.4.24) ================================================================= System uname: 2.4.24 i686 Intel(R) Pentium(R) 4 CPU 1400MHz Gentoo Base System version 1.4.3.12 distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59 Automake: sys-devel/automake-1.7.8 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache cvs fixpackages sandbox" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.linux.no/ http://gentoo.inode.at/ http://ftp.gentoo.or.kr/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X aalib acpi acpi4linux alsa apache2 apm avi berkdb cdr cjk crypt cups curl dga directfb encode ethereal faad fbcon fbdev flash foomaticdb gd gd-bundled gdbm ggi gif gpm gstreamer gtk gtk2 guile imlib innodb java jpeg junit ldap libg++ libwww mad mbox memlimit mikmod motif moznocompose moznoirc moznomail mpeg mysql ncurses nls oci8 odbc offensive oggvorbis opengl oss pam perl png python qt qtmt quicktime readline ruby samba sdl slang slp smooth spell sse ssl svga tcltk tcpd tetex tiff truetype usb wmf x86 xinerama xml xml2 xmms xv zlib"
Of course I no longer have ant installed because I'm a bonehead.
Don, can you try with ant-1.6.0-r3 ?
1.6.0-r3 doesn't appear to install the ant executable ...??? as a result ant-optional fails to build.
No I get the same error with 1.6.0-r3. Just a note that in fixed-width font the ^ is pointing to the period after RE.
ant 1.6.0-r3 installs fine on my machine at home. Unfortunately I only use it at work where it continues to fail to build with that same error. On my work machine I have both blackdown and sun jdks installed. system is blackdown, and sun is the choice for my user. orthanc root # echo $JAVA_HOME /opt/blackdown-jdk-1.4.1 orthanc root # echo $JAVAC /opt/blackdown-jdk-1.4.1/bin/javac Looks like it should to me. So I continue to be stumped.
I built it fine with blackdown-jdk after doing the following: # java-config --set-system-vm blackdown-jdk-1.4.1 # java-config --clean-system-classpath # env-update && source /etc/profile I had a problem where my CLASSPATH somehow got screwed up and blocked me from installing ant-1.6.0. My error was a bit different (class not found, see bug #38874) but it may help.
Brandon, ant executable should be working now, sync and try to merge ant again.
I did the steps (set, clean, etc) and still get the same error.
Updating summary since -r2 is no longer around and same breakage occurs with -r3. meh.
Compile problems should be fixed now; However, 1.6.0 is going into package.mask until the tree dependencies gets sorted out. Closing this as fixed.
Might I ask what you did to fix it and how you are sure? I haven't heard anyone else duplicating my problem.
dev-java/ant-1.6.1 fails with same error: Created dir: /var/tmp/portage/ant-1.6.1/work/apache-ant-1.6.1/build/classes Compiling 531 source files to /var/tmp/portage/ant-1.6.1/work/apache-ant-1.6.1/build/classes /var/tmp/portage/ant-1.6.1/work/apache-ant-1.6.1/src/main/org/apache/tools/ant/util/regexp/JakartaRegexpMatcher.java:119: cannot resolve symbol symbol : variable MATCH_SINGLELINE location: class org.apache.regexp.RE cOptions |= RE.MATCH_SINGLELINE; ^ Note: Some input files use or override a deprecated API. Note: Recompile with -deprecation for details. 1 error BUILD FAILED /var/tmp/portage/ant-1.6.1/work/apache-ant-1.6.1/build.xml:602: Compile failed; see the compiler error output for details.
Created attachment 27250 [details] complete output of attempted build redirected build output to file, per zx's request.
Still failing for me. Same error. I've since set sun-jdk as my system vm. /me shrugs. orthanc root # echo $JAVA_HOME /opt/sun-jdk-1.4.2.04 orthanc root # echo $JAVAC /opt/sun-jdk-1.4.2.04/bin/javac
Who uses java blackdown should try what Chetan Sarva said. Comment #10 I Had the same problem and now everything is fine
I had an epiphany this afternoon after a nice roast beef sub. The one difference between the two machines I have where one installs ant and the other doesn't. The one that doesn't is my work desktop that has Oracle installed, and I had an /etc/env.d/99oracle file that I made that was setting Oracle jars into the CLASSPATH. On a hunch I removed the CLASSPATH line from that file, did the java-config clean, env-update and source /etc/profile and it installed fine. I'm going to close this as INVALID since it was really user error on my part.