From: Patrick Callahan <pat.callahan@earthlink.net>
To: gentoo-java@lists.gentoo.org
Subject: [gentoo-java] error building ant
Date: Thu, 29 Jun 2006 21:09:15 -0400 [thread overview]
Message-ID: <20060629210915.20fbbf0f@ocelot> (raw)
In-Reply-To: <1151623290-1444bead-mlmmj-6a073483@4f080295.plonk>
Emerge of dev-java/ant fails.
1. error message from e-build java-config not found
error message Error: JAVA_HOME is not defined correctly.We cannot execute java
2. value of JAVA_HOME still points to blackdown-jdk-1.4.2
3. /etc/env.d/java points to blackdown-jdk-1.4.2
3. java-check-environment does not report any problem
Questions: Should i re-emerge java-config? will that bring bak the java-config executable
Should I do something to /etc/env.d/java?
-Pat Callahan
Database QA Specialist
Here's the supporting materials:
-- emerge log
-- Some things from my java environment
$JAVA_HOME
output of java-config-2 -L
output of java-config-1 -L
output of java-check-environment
contents of /etc/env.d/java
-- output of # /usr/bin/java-check-environment
-- and of course, the output of emerge --info
----------------------------------------------------
-- emerge log
Calculating dependencies... done!
>>> Emerging (1 of 3) dev-java/ant-core-1.6.5-r13 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking apache-ant-1.6.5-src.tar.bz2 ;-)
/usr/portage/eclass/java-utils-2.eclass: line 1656: java-config: command not found
/usr/portage/eclass/java-utils-2.eclass: line 1604: java-config: command not found
/usr/portage/eclass/java-utils-2.eclass: line 1604: java-config: command not found
/usr/portage/eclass/java-utils-2.eclass: line 1663: java-config: command not found
/usr/portage/eclass/java-utils-2.eclass: line 1667: java-config: command not found
/usr/portage/eclass/java-utils-2.eclass: line 1656: java-config: command not found
/usr/portage/eclass/java-utils-2.eclass: line 1604: java-config: command not found
/usr/portage/eclass/java-utils-2.eclass: line 1604: java-config: command not found
/usr/portage/eclass/java-utils-2.eclass: line 1663: java-config: command not found
/usr/portage/eclass/java-utils-2.eclass: line 1667: java-config: command not found
/usr/portage/eclass/java-utils-2.eclass: line 1675: java-config: command not found
* Using:
>>> Unpacking source...
>>> Unpacking apache-ant-1.6.5-src.tar.bz2 to /var/tmp/portage/ant-core-1.6.5-r13/work
* Applying build.sh-exit-fix.patch ... [ ok ]
Rewriting ./src/etc/testcases/core/include/included_file_parse_error/build.xml
Rewriting ./src/etc/testcases/core/include/including_file_parse_error/build.xml
Rewriting ./src/etc/testcases/core/include/including_file_task_error/build.xml
Rewriting ./src/etc/testcases/core/include/included_file_task_error/build.xml
Rewriting ./src/etc/testcases/filters/build.xml
Rewriting ./src/etc/testcases/taskdefs/style/build.xml
Rewriting ./src/etc/testcases/taskdefs/fixcrlf/build.xml
Rewriting ./build.xml
>>> Source unpacked.
/usr/portage/eclass/java-utils-2.eclass: line 1656: java-config: command not found
/usr/portage/eclass/java-utils-2.eclass: line 1604: java-config: command not found
/usr/portage/eclass/java-utils-2.eclass: line 1604: java-config: command not found
/usr/portage/eclass/java-utils-2.eclass: line 1663: java-config: command not found
/usr/portage/eclass/java-utils-2.eclass: line 1667: java-config: command not found
>>> Compiling source in /var/tmp/portage/ant-core-1.6.5-r13/work/apache-ant-1.6.5 ...
Warning: JAVA_HOME environment variable not set.
If build fails because sun.* classes could not be found
you will need to set the JAVA_HOME environment variable
to the installation directory of java.
Error: JAVA_HOME is not defined correctly.
We cannot execute java
Bootstrap FAILED
!!! ERROR: dev-java/ant-core-1.6.5-r13 failed.
Call stack:
ebuild.sh, line 1545: Called dyn_compile
ebuild.sh, line 940: Called src_compile
ant-core-1.6.5-r13.ebuild, line 42: Called die
!!! failed to build
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! When you file a bug report, please include the following
information: GENTOO_VM=blackdown-jdk-1.4.2 CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="-target 1.4" COMPILER=""
and of course, the output of emerge --info
-- Some things from my java environment
# echo $JAVA_HOME
/opt/blackdown-jdk-1.4.2.03
# java-config-2 -L
1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
(/usr/share/java-config-2/vm/blackdown-jdk-1.4.2) 2) WebLogic JRockit
1.5.0.06 [jrockit-jdk-bin-1.5]
(/usr/share/java-config-2/vm/jrockit-jdk-bin-1.5) *) Sun JDK 1.5.0.07
[sun-jdk-1.5] (/usr/share/java-config-2/vm/sun-jdk-1.5) 4) Sun JRE
1.5.0.07 [sun-jre-bin-1.5]
(/usr/share/java-config-2/vm/sun-jre-bin-1.5) ocelot java #
java-config-1 -L [blackdown-jdk-1.4.2.03] "Blackdown JDK
1.4.2.03" (/etc/env.d/java/20blackdown-jdk-1.4.2.03) * ocelot java
-- output of # /usr/bin/java-check-environment
* === Java Environment Checker ===
* The purpose of this script is to check the sanity of your Java
Environment.
* We have significantly changed and improved the way Java is handled
in many respects.
* Please refer to http://www.gentoo.org/proj/en/java/java-upgrade.xml
for details
* Checking vm_environment_files ... [ ok ]
* Checking user_settings ...
* Running as root. Don't need to check user settings. [ ok ]
* Checking generation_1_system_vm ... [ ok ]
* Java environment is sane. Congratulations!
# ls /etc/env.d/java
20blackdown-jdk-1.4.2.03
# cat /etc/env.d/java/*
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $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 $
VERSION="Blackdown JDK 1.4.2.03"
JAVA_HOME=/opt/blackdown-jdk-1.4.2.03
JDK_HOME=/opt/blackdown-jdk-1.4.2.03
JAVAC=${JAVA_HOME}/bin/javac
PATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
ROOTPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
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/"
MANPATH=/opt/blackdown-jdk-1.4.2.03/man
ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
GENERATION="2"
VMHANDLE="blackdown-jdk-1.4.2"
--and of course, the output of emerge --info
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)
=================================================================
System uname: 2.6.16-rc6 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.15
dev-lang/python: 2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: [Not Present]
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils: 2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
MAKEOPTS="-j 2"
PKGDIR="/usr/portage/packages"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
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"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
--
gentoo-java@gentoo.org mailing list
next parent reply other threads:[~2006-06-30 1:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1151623290-1444bead-mlmmj-6a073483@4f080295.plonk>
2006-06-30 1:09 ` Patrick Callahan [this message]
2006-06-30 1:33 ` [gentoo-java] error building ant Wiktor Wandachowicz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060629210915.20fbbf0f@ocelot \
--to=pat.callahan@earthlink.net \
--cc=gentoo-java@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox