Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40274 - dev-java/ant-1.6.1-r1 fails to build.
Summary: dev-java/ant-1.6.1-r1 fails to build.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-03 07:20 UTC by Don Seiler (RETIRED)
Modified: 2004-04-14 11:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
complete output of attempted build (antbuild.txt,8.10 KB, text/plain)
2004-03-12 09:05 UTC, Don Seiler (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Don Seiler (RETIRED) gentoo-dev 2004-02-03 07:20:19 UTC
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)
Comment 1 Adrian Almenar 2004-02-04 20:24:20 UTC
Don, can you try unmerging ant and re-emerging it after ?
Comment 2 Don Seiler (RETIRED) gentoo-dev 2004-02-04 20:27:05 UTC
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.
Comment 3 Adrian Almenar 2004-02-04 20:43:22 UTC
btw. can you also post the output of emerge info ?
Comment 4 Don Seiler (RETIRED) gentoo-dev 2004-02-05 07:27:53 UTC
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"
Comment 5 Don Seiler (RETIRED) gentoo-dev 2004-02-05 07:28:39 UTC
Of course I no longer have ant installed because I'm a bonehead.
Comment 6 Adrian Almenar 2004-02-09 22:50:38 UTC
Don, can you try with ant-1.6.0-r3 ?
Comment 7 Brandon Low (RETIRED) gentoo-dev 2004-02-10 06:18:42 UTC
1.6.0-r3 doesn't appear to install the ant executable ...???  as a result ant-optional fails to build.
Comment 8 Don Seiler (RETIRED) gentoo-dev 2004-02-10 08:35:10 UTC
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.
Comment 9 Don Seiler (RETIRED) gentoo-dev 2004-02-11 13:38:25 UTC
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.
Comment 10 Chetan Sarva 2004-02-11 14:21:59 UTC
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.

Comment 11 Adrian Almenar 2004-02-11 17:43:49 UTC
Brandon, ant executable should be working now, sync and try to merge ant again.
Comment 12 Don Seiler (RETIRED) gentoo-dev 2004-02-12 13:29:43 UTC
I did the steps (set, clean, etc) and still get the same error.
Comment 13 Don Seiler (RETIRED) gentoo-dev 2004-02-19 06:10:33 UTC
Updating summary since -r2 is no longer around and same breakage occurs with -r3.

meh.
Comment 14 Dylan Carlson (RETIRED) gentoo-dev 2004-02-25 00:28:07 UTC
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.
Comment 15 Don Seiler (RETIRED) gentoo-dev 2004-02-25 06:53:36 UTC
Might I ask what you did to fix it and how you are sure?  I haven't heard anyone else duplicating my problem.
Comment 16 Don Seiler (RETIRED) gentoo-dev 2004-03-12 07:08:57 UTC
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.
Comment 17 Don Seiler (RETIRED) gentoo-dev 2004-03-12 09:05:56 UTC
Created attachment 27250 [details]
complete output of attempted build

redirected build output to file, per zx's request.
Comment 18 Don Seiler (RETIRED) gentoo-dev 2004-03-17 14:47:32 UTC
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
Comment 19 Death Angel 2004-04-10 06:48:08 UTC
Who uses java blackdown should try what Chetan Sarva said.
Comment #10
I Had the same problem and now everything is fine 
Comment 20 Don Seiler (RETIRED) gentoo-dev 2004-04-14 11:54:20 UTC
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.