Gentoo Archives: gentoo-java

From: Patrick Callahan <pat.callahan@×××××××××.net>
To: gentoo-java@l.g.o
Subject: [gentoo-java] error building ant
Date: Fri, 30 Jun 2006 01:10:15
Message-Id: 20060629210915.20fbbf0f@ocelot
1 Emerge of dev-java/ant fails.
2
3 1. error message from e-build java-config not found
4 error message Error: JAVA_HOME is not defined correctly.We cannot execute java
5
6 2. value of JAVA_HOME still points to blackdown-jdk-1.4.2
7 3. /etc/env.d/java points to blackdown-jdk-1.4.2
8 3. java-check-environment does not report any problem
9
10 Questions: Should i re-emerge java-config? will that bring bak the java-config executable
11 Should I do something to /etc/env.d/java?
12
13 -Pat Callahan
14 Database QA Specialist
15
16 Here's the supporting materials:
17
18 -- emerge log
19
20 -- Some things from my java environment
21 $JAVA_HOME
22 output of java-config-2 -L
23 output of java-config-1 -L
24 output of java-check-environment
25 contents of /etc/env.d/java
26 -- output of # /usr/bin/java-check-environment
27
28 -- and of course, the output of emerge --info
29
30
31 ----------------------------------------------------
32 -- emerge log
33 Calculating dependencies... done!
34 >>> Emerging (1 of 3) dev-java/ant-core-1.6.5-r13 to /
35 >>> checking ebuild checksums ;-)
36 >>> checking auxfile checksums ;-)
37 >>> checking miscfile checksums ;-)
38 >>> checking apache-ant-1.6.5-src.tar.bz2 ;-)
39 /usr/portage/eclass/java-utils-2.eclass: line 1656: java-config: command not found
40 /usr/portage/eclass/java-utils-2.eclass: line 1604: java-config: command not found
41 /usr/portage/eclass/java-utils-2.eclass: line 1604: java-config: command not found
42 /usr/portage/eclass/java-utils-2.eclass: line 1663: java-config: command not found
43 /usr/portage/eclass/java-utils-2.eclass: line 1667: java-config: command not found
44 /usr/portage/eclass/java-utils-2.eclass: line 1656: java-config: command not found
45 /usr/portage/eclass/java-utils-2.eclass: line 1604: java-config: command not found
46 /usr/portage/eclass/java-utils-2.eclass: line 1604: java-config: command not found
47 /usr/portage/eclass/java-utils-2.eclass: line 1663: java-config: command not found
48 /usr/portage/eclass/java-utils-2.eclass: line 1667: java-config: command not found
49 /usr/portage/eclass/java-utils-2.eclass: line 1675: java-config: command not found
50 * Using:
51 >>> Unpacking source...
52 >>> Unpacking apache-ant-1.6.5-src.tar.bz2 to /var/tmp/portage/ant-core-1.6.5-r13/work
53 * Applying build.sh-exit-fix.patch ... [ ok ]
54 Rewriting ./src/etc/testcases/core/include/included_file_parse_error/build.xml
55 Rewriting ./src/etc/testcases/core/include/including_file_parse_error/build.xml
56 Rewriting ./src/etc/testcases/core/include/including_file_task_error/build.xml
57 Rewriting ./src/etc/testcases/core/include/included_file_task_error/build.xml
58 Rewriting ./src/etc/testcases/filters/build.xml
59 Rewriting ./src/etc/testcases/taskdefs/style/build.xml
60 Rewriting ./src/etc/testcases/taskdefs/fixcrlf/build.xml
61 Rewriting ./build.xml
62 >>> Source unpacked.
63 /usr/portage/eclass/java-utils-2.eclass: line 1656: java-config: command not found
64 /usr/portage/eclass/java-utils-2.eclass: line 1604: java-config: command not found
65 /usr/portage/eclass/java-utils-2.eclass: line 1604: java-config: command not found
66 /usr/portage/eclass/java-utils-2.eclass: line 1663: java-config: command not found
67 /usr/portage/eclass/java-utils-2.eclass: line 1667: java-config: command not found
68 >>> Compiling source in /var/tmp/portage/ant-core-1.6.5-r13/work/apache-ant-1.6.5 ...
69 Warning: JAVA_HOME environment variable not set.
70 If build fails because sun.* classes could not be found
71 you will need to set the JAVA_HOME environment variable
72 to the installation directory of java.
73 Error: JAVA_HOME is not defined correctly.
74 We cannot execute java
75 Bootstrap FAILED
76 !!! ERROR: dev-java/ant-core-1.6.5-r13 failed.
77 Call stack:
78 ebuild.sh, line 1545: Called dyn_compile
79 ebuild.sh, line 940: Called src_compile
80 ant-core-1.6.5-r13.ebuild, line 42: Called die
81
82 !!! failed to build
83 !!! If you need support, post the topmost build error, and the call stack if relevant.
84
85 !!! When you file a bug report, please include the following
86 information: GENTOO_VM=blackdown-jdk-1.4.2 CLASSPATH="" JAVA_HOME=""
87 JAVACFLAGS="-target 1.4" COMPILER=""
88 and of course, the output of emerge --info
89
90 -- Some things from my java environment
91
92
93 # echo $JAVA_HOME
94 /opt/blackdown-jdk-1.4.2.03
95 # java-config-2 -L
96 1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
97 (/usr/share/java-config-2/vm/blackdown-jdk-1.4.2) 2) WebLogic JRockit
98 1.5.0.06 [jrockit-jdk-bin-1.5]
99 (/usr/share/java-config-2/vm/jrockit-jdk-bin-1.5) *) Sun JDK 1.5.0.07
100 [sun-jdk-1.5] (/usr/share/java-config-2/vm/sun-jdk-1.5) 4) Sun JRE
101 1.5.0.07 [sun-jre-bin-1.5]
102 (/usr/share/java-config-2/vm/sun-jre-bin-1.5) ocelot java #
103 java-config-1 -L [blackdown-jdk-1.4.2.03] "Blackdown JDK
104 1.4.2.03" (/etc/env.d/java/20blackdown-jdk-1.4.2.03) * ocelot java
105
106 -- output of # /usr/bin/java-check-environment
107 * === Java Environment Checker ===
108 * The purpose of this script is to check the sanity of your Java
109 Environment.
110 * We have significantly changed and improved the way Java is handled
111 in many respects.
112 * Please refer to http://www.gentoo.org/proj/en/java/java-upgrade.xml
113 for details
114
115 * Checking vm_environment_files ... [ ok ]
116 * Checking user_settings ...
117 * Running as root. Don't need to check user settings. [ ok ]
118 * Checking generation_1_system_vm ... [ ok ]
119 * Java environment is sane. Congratulations!
120 # ls /etc/env.d/java
121 20blackdown-jdk-1.4.2.03
122
123 # cat /etc/env.d/java/*
124 # Copyright 1999-2005 Gentoo Foundation
125 # Distributed under the terms of the GNU General Public License v2
126 # $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jdk/files/blackdown-jdk-1.4.2.env,v 1.1 2006/06/25 16:47:40 nichoj Exp $
127
128 VERSION="Blackdown JDK 1.4.2.03"
129 JAVA_HOME=/opt/blackdown-jdk-1.4.2.03
130 JDK_HOME=/opt/blackdown-jdk-1.4.2.03
131 JAVAC=${JAVA_HOME}/bin/javac
132 PATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
133 ROOTPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
134 LDPATH="${JAVA_HOME}/jre/lib/i386/:${JAVA_HOME}/jre/lib/i386/native_threads/:${JAVA_HOME}/jre/lib/i386/classic/:${JAVA_HOME}/jre/lib/i386/server/"
135 MANPATH=/opt/blackdown-jdk-1.4.2.03/man
136
137
138
139 ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
140 GENERATION="2"
141 VMHANDLE="blackdown-jdk-1.4.2"
142
143
144
145 --and of course, the output of emerge --info
146
147 Portage 2.1.1_pre1-r5 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.6-r4, 2.6.16-rc6 i686)
148 =================================================================
149 System uname: 2.6.16-rc6 i686 Pentium III (Coppermine)
150 Gentoo Base System version 1.6.15
151 dev-lang/python: 2.3.5, 2.4.3-r1
152 dev-python/pycrypto: 2.0.1-r5
153 dev-util/ccache: [Not Present]
154 dev-util/confcache: [Not Present]
155 sys-apps/sandbox: 1.2.17
156 sys-devel/autoconf: 2.13, 2.59-r7
157 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
158 sys-devel/binutils: 2.16.1-r2
159 sys-devel/gcc-config: 1.3.13-r2
160 sys-devel/libtool: 1.5.22
161 virtual/os-headers: 2.6.11-r2
162 ACCEPT_KEYWORDS="x86"
163 AUTOCLEAN="yes"
164 CBUILD="i686-pc-linux-gnu"
165 CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
166 CHOST="i686-pc-linux-gnu"
167 CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /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/"
168 CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
169 CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
170 DISTDIR="/usr/portage/distfiles"
171 FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
172 GENTOO_MIRRORS="http://gentoo.osuosl.org/"
173 MAKEOPTS="-j 2"
174 PKGDIR="/usr/portage/packages"
175 PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
176 PORTAGE_TMPDIR="/var/tmp"
177 PORTDIR="/usr/portage"
178 PORTDIR_OVERLAY="/usr/local/portage"
179 SYNC="rsync://rsync.gentoo.org/gentoo-portage"
180 USE="x86 X alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts cdr cli crypt cups dba dri dvd eds emboss encode foomaticdb fortran gb gdb gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 imlib innodb ipv6 isdnlog jpeg kde libg++ libwww lirc mad mikmod mmx motif mozilla mp3 mpeg mysql mythtv ncurses neon nls ogg oggvorbis opengl oss pam pcre pdflib perl php png pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl sse ssl subversion tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb v4l video_cards_i810 vorbis vorbix wxwindows xine xml2 xmms xorg xv xvid zlib elibc_glibc kernel_linux userland_GNU video_cards_radeon"
181 Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
182
183 --
184 gentoo-java@g.o mailing list

Replies

Subject Author
Re: [gentoo-java] error building ant Wiktor Wandachowicz <siryes@×××××.com>