Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69750 - antlr failed to install
Summary: antlr failed to install
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-01 11:34 UTC by Grzegorz Kulewski
Modified: 2004-12-18 13:52 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grzegorz Kulewski 2004-11-01 11:34:32 UTC
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/antlr-2.7.4 to /
>>> md5 src_uri ;-) antlr-2.7.4.tar.gz
>>> Unpacking source...
>>> Unpacking antlr-2.7.4.tar.gz to /var/tmp/portage/antlr-2.7.4/work
>>> Source unpacked.
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking if examples must be built... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking if we are using Cygwin/MinGW... no
no
checking if we prefer gcj built over normal java... no
checking if BOOTSTRAP_JAR is set... no
checking for ar... /usr/bin/ar
checking for as... /usr/bin/as
checking for cygpath... no
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for i686-pc-linux-gnu-g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for doxygen... doxygen
checking for a BSD-compatible install... /bin/install -c
CLASSPATH set to:
.
IMPORTANT: make sure the current directory containing configure
is in the CLASSPATH
checking if /opt/sun-jdk-1.4.2.06/bin/javac works... yes
checking for kaffe... no
checking for java... java
checking for uudecode... yes
checking if uudecode can decode base 64 file... yes
checking if java works... yes
checking for jar... jar
checking for antlr.Version class... yes
checking for ld... /usr/bin/ld
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for makedepend... /usr/X11R6/bin/makedepend
checking for mkdir... /bin/mkdir
checking for nm... /usr/bin/nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for rm... /bin/rm
checking for strip... /usr/bin/strip
checking for gtar... no
checking for tar... /bin/tar
checking for tclsh... /usr/bin/tclsh
checking for touch... /bin/touch
checking for chmod... /bin/chmod
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for strcasecmp... yes
configure: creating ./config.status
config.status: creating scripts/Config.make
config.status: creating scripts/antlr-config
config.status: creating scripts/run-antlr
config.status: creating scripts/antlr.spec
=============================
Making dependencies...
=============================
cat java_deps | grep -v ": antlr/Version.class" >> .depend
for i in  antlr/ANTLRError.class antlr/ANTLRException.class antlr/ANTLRGrammarParseBehavior.class antlr/ANTLRHashString.class antlr/ANTLRLexer.class antlr/ANTLRParser.class antlr/ANTLRStringBuffer.class antlr/ANTLRTokdefLexer.class antlr/ANTLRTokdefParser.class antlr/ANTLRTokdefParserTokenTypes.class antlr/ANTLRTokenTypes.class antlr/ASTFactory.class antlr/ASTIterator.class antlr/ASTNULLType.class antlr/ASTPair.class antlr/ASTVisitor.class antlr/ActionElement.class antlr/ActionTransInfo.class antlr/Alternative.class antlr/AlternativeBlock.class antlr/AlternativeElement.class antlr/BaseAST.class antlr/BlockContext.class antlr/BlockEndElement.class antlr/BlockWithImpliedExitPath.class antlr/ByteBuffer.class antlr/CSharpBlockFinishingInfo.class antlr/CSharpCharFormatter.class antlr/CSharpCodeGenerator.class antlr/CSharpNameSpace.class antlr/CharBuffer.class antlr/CharFormatter.class antlr/CharLiteralElement.class antlr/CharQueue.class antlr/CharRangeElement.class antlr/CharScanner.class antlr/CharStreamException.class antlr/CharStreamIOException.class antlr/CodeGenerator.class antlr/CommonAST.class antlr/CommonASTWithHiddenTokens.class antlr/CommonHiddenStreamToken.class antlr/CommonToken.class antlr/CppBlockFinishingInfo.class antlr/CppCharFormatter.class antlr/CppCodeGenerator.class antlr/DefaultFileLineFormatter.class antlr/DefaultToolErrorHandler.class antlr/DefineGrammarSymbols.class antlr/DiagnosticCodeGenerator.class antlr/DocBookCodeGenerator.class antlr/DumpASTVisitor.class antlr/ExceptionHandler.class antlr/ExceptionSpec.class antlr/FileCopyException.class antlr/FileLineFormatter.class antlr/Grammar.class antlr/GrammarAnalyzer.class antlr/GrammarAtom.class antlr/GrammarElement.class antlr/GrammarSymbol.class antlr/HTMLCodeGenerator.class antlr/ImportVocabTokenManager.class antlr/InputBuffer.class antlr/JavaBlockFinishingInfo.class antlr/JavaCharFormatter.class antlr/JavaCodeGenerator.class antlr/LLkAnalyzer.class antlr/LLkGrammarAnalyzer.class antlr/LLkParser.class antlr/LexerGrammar.class antlr/LexerSharedInputState.class antlr/Lookahead.class antlr/MakeGrammar.class antlr/MismatchedCharException.class antlr/MismatchedTokenException.class antlr/NameSpace.class antlr/NoViableAltException.class antlr/NoViableAltForCharException.class antlr/OneOrMoreBlock.class antlr/ParseTree.class antlr/ParseTreeRule.class antlr/ParseTreeToken.class antlr/Parser.class antlr/ParserGrammar.class antlr/ParserSharedInputState.class antlr/PreservingFileWriter.class antlr/RecognitionException.class antlr/RuleBlock.class antlr/RuleEndElement.class antlr/RuleRefElement.class antlr/RuleSymbol.class antlr/SemanticException.class antlr/SimpleTokenManager.class antlr/StringLiteralElement.class antlr/StringLiteralSymbol.class antlr/StringUtils.class antlr/SynPredBlock.class antlr/Token.class antlr/TokenBuffer.class antlr/TokenManager.class antlr/TokenQueue.class antlr/TokenRangeElement.class antlr/TokenRefElement.class antlr/TokenStream.class antlr/TokenStreamBasicFilter.class antlr/TokenStreamException.class antlr/TokenStreamHiddenTokenFilter.class antlr/TokenStreamIOException.class antlr/TokenStreamRecognitionException.class antlr/TokenStreamRetryException.class antlr/TokenStreamRewriteEngine.class antlr/TokenStreamRewriteEngine\$\$1.class antlr/TokenStreamRewriteEngine\$\$DeleteOp.class antlr/TokenStreamRewriteEngine\$\$InsertBeforeOp.class antlr/TokenStreamRewriteEngine\$\$ReplaceOp.class antlr/TokenStreamRewriteEngine\$\$RewriteOperation.class antlr/TokenStreamSelector.class antlr/TokenSymbol.class antlr/TokenWithIndex.class antlr/Tool.class antlr/ToolErrorHandler.class antlr/TreeBlockContext.class antlr/TreeElement.class antlr/TreeParser.class antlr/TreeParserSharedInputState.class antlr/TreeSpecifierNode.class antlr/TreeWalkerGrammar.class antlr/Version.class antlr/WildcardElement.class antlr/ZeroOrMoreBlock.class antlr/actions/cpp/ActionLexer.class antlr/actions/cpp/ActionLexerTokenTypes.class antlr/actions/csharp/ActionLexer.class antlr/actions/csharp/ActionLexerTokenTypes.class antlr/actions/java/ActionLexer.class antlr/actions/java/ActionLexerTokenTypes.class antlr/build/ANTLR.class antlr/build/StreamScarfer.class antlr/build/Tool.class antlr/collections/AST.class antlr/collections/ASTEnumeration.class antlr/collections/Enumerator.class antlr/collections/List.class antlr/collections/Stack.class antlr/collections/impl/ASTArray.class antlr/collections/impl/ASTEnumerator.class antlr/collections/impl/BitSet.class antlr/collections/impl/IndexedVector.class antlr/collections/impl/IntRange.class antlr/collections/impl/LLCell.class antlr/collections/impl/LLEnumeration.class antlr/collections/impl/LList.class antlr/collections/impl/Vector.class antlr/collections/impl/VectorEnumeration.class antlr/collections/impl/VectorEnumerator.class antlr/debug/DebuggingCharScanner.class antlr/debug/DebuggingInputBuffer.class antlr/debug/DebuggingParser.class antlr/debug/Event.class antlr/debug/GuessingEvent.class antlr/debug/InputBufferAdapter.class antlr/debug/InputBufferEvent.class antlr/debug/InputBufferEventSupport.class antlr/debug/InputBufferListener.class antlr/debug/InputBufferReporter.class antlr/debug/LLkDebuggingParser.class antlr/debug/ListenerBase.class antlr/debug/MessageAdapter.class antlr/debug/MessageEvent.class antlr/debug/MessageListener.class antlr/debug/NewLineEvent.class antlr/debug/NewLineListener.class antlr/debug/ParseTreeDebugParser.class antlr/debug/ParserAdapter.class antlr/debug/ParserController.class antlr/debug/ParserEventSupport.class antlr/debug/ParserListener.class antlr/debug/ParserMatchAdapter.class antlr/debug/ParserMatchEvent.class antlr/debug/ParserMatchListener.class antlr/debug/ParserReporter.class antlr/debug/ParserTokenAdapter.class antlr/debug/ParserTokenEvent.class antlr/debug/ParserTokenListener.class antlr/debug/SemanticPredicateAdapter.class antlr/debug/SemanticPredicateEvent.class antlr/debug/SemanticPredicateListener.class antlr/debug/SyntacticPredicateAdapter.class antlr/debug/SyntacticPredicateEvent.class antlr/debug/SyntacticPredicateListener.class antlr/debug/TraceAdapter.class antlr/debug/TraceEvent.class antlr/debug/TraceListener.class antlr/debug/Tracer.class antlr/debug/misc/ASTFrame.class antlr/debug/misc/ASTFrame\$\$1.class antlr/debug/misc/ASTFrame\$\$MyTreeSelectionListener.class antlr/debug/misc/JTreeASTModel.class antlr/debug/misc/JTreeASTPanel.class antlr/preprocessor/Grammar.class antlr/preprocessor/GrammarFile.class antlr/preprocessor/Hierarchy.class antlr/preprocessor/Option.class antlr/preprocessor/Preprocessor.class antlr/preprocessor/PreprocessorLexer.class antlr/preprocessor/PreprocessorTokenTypes.class antlr/preprocessor/Rule.class antlr/preprocessor/Tool.class ; do echo $i ; done \
  | sed -n  -e 's,^[    ]*\([^$]*\)\($$.*\)\.class.*$,\1\2.class : \1.class,p' \
  >> .depend
make[1]: Entering directory `/var/tmp/portage/antlr-2.7.4/work/antlr-2.7.4/antlr'
Makefile:58: warning: overriding commands for target `dep'
/var/tmp/portage/antlr-2.7.4/work/antlr-2.7.4/scripts/Rules.make:263: warning: ignoring old commands for target `dep'
Makefile:58: warning: overriding commands for target `fastdep'
/var/tmp/portage/antlr-2.7.4/work/antlr-2.7.4/scripts/Rules.make:263: warning: ignoring old commands for target `fastdep'
Makefile:68: warning: overriding commands for target `../antlr.bin'
/var/tmp/portage/antlr-2.7.4/work/antlr-2.7.4/scripts/Rules.make:235: warning: ignoring old commands for target `../antlr.bin'
Makefile:77: warning: overriding commands for target `install'
/var/tmp/portage/antlr-2.7.4/work/antlr-2.7.4/scripts/Rules.make:353: warning: ignoring old commands for target `install'
gcj -O2 -O3 -Os -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer -fweb -frename-registers -freorder-blocks -ftracer -funit-at-a-time -fforce-addr -pipe   -MM ANTLRError.java ANTLRException.java ANTLRGrammarParseBehavior.java ANTLRHashString.java ANTLRLexer.java ANTLRParser.java ANTLRStringBuffer.java ANTLRTokdefLexer.java ANTLRTokdefParser.java ANTLRTokdefParserTokenTypes.java ANTLRTokenTypes.java ASTFactory.java ASTIterator.java ASTNULLType.java ASTPair.java ASTVisitor.java ActionElement.java ActionTransInfo.java Alternative.java AlternativeBlock.java AlternativeElement.java BaseAST.java BlockContext.java BlockEndElement.java BlockWithImpliedExitPath.java ByteBuffer.java CSharpBlockFinishingInfo.java CSharpCharFormatter.java CSharpCodeGenerator.java CSharpNameSpace.java CharBuffer.java CharFormatter.java CharLiteralElement.java CharQueue.java CharRangeElement.java CharScanner.java CharStreamException.java CharStreamIOException.java CodeGenerator.java CommonAST.java CommonASTWithHiddenTokens.java CommonHiddenStreamToken.java CommonToken.java CppBlockFinishingInfo.java CppCharFormatter.java CppCodeGenerator.java DefaultFileLineFormatter.java DefaultToolErrorHandler.java DefineGrammarSymbols.java DiagnosticCodeGenerator.java DocBookCodeGenerator.java DumpASTVisitor.java ExceptionHandler.java ExceptionSpec.java FileCopyException.java FileLineFormatter.java Grammar.java GrammarAnalyzer.java GrammarAtom.java GrammarElement.java GrammarSymbol.java HTMLCodeGenerator.java ImportVocabTokenManager.java InputBuffer.java JavaBlockFinishingInfo.java JavaCharFormatter.java JavaCodeGenerator.java LLkAnalyzer.java LLkGrammarAnalyzer.java LLkParser.java LexerGrammar.java LexerSharedInputState.java Lookahead.java MakeGrammar.java MismatchedCharException.java MismatchedTokenException.java NameSpace.java NoViableAltException.java NoViableAltForCharException.java OneOrMoreBlock.java ParseTree.java ParseTreeRule.java ParseTreeToken.java Parser.java ParserGrammar.java ParserSharedInputState.java PreservingFileWriter.java RecognitionException.java RuleBlock.java RuleEndElement.java RuleRefElement.java RuleSymbol.java SemanticException.java SimpleTokenManager.java StringLiteralElement.java StringLiteralSymbol.java StringUtils.java SynPredBlock.java Token.java TokenBuffer.java TokenManager.java TokenQueue.java TokenRangeElement.java TokenRefElement.java TokenStream.java TokenStreamBasicFilter.java TokenStreamException.java TokenStreamHiddenTokenFilter.java TokenStreamIOException.java TokenStreamRecognitionException.java TokenStreamRetryException.java TokenStreamRewriteEngine.java TokenStreamSelector.java TokenSymbol.java TokenWithIndex.java Tool.java ToolErrorHandler.java TreeBlockContext.java TreeElement.java TreeParser.java TreeParserSharedInputState.java TreeSpecifierNode.java TreeWalkerGrammar.java Version.java WildcardElement.java ZeroOrMoreBlock.java collections/AST.java collections/ASTEnumeration.java collections/Enumerator.java collections/List.java collections/Stack.java collections/impl/ASTArray.java collections/impl/ASTEnumerator.java collections/impl/BitSet.java collections/impl/IndexedVector.java collections/impl/IntRange.java collections/impl/LLCell.java collections/impl/LLEnumeration.java collections/impl/LList.java collections/impl/Vector.java collections/impl/VectorEnumeration.java collections/impl/VectorEnumerator.java preprocessor/Grammar.java preprocessor/GrammarFile.java preprocessor/Hierarchy.java preprocessor/Option.java preprocessor/Preprocessor.java preprocessor/PreprocessorLexer.java preprocessor/PreprocessorTokenTypes.java preprocessor/Rule.java preprocessor/Tool.java actions/cpp/ActionLexer.java actions/cpp/ActionLexerTokenTypes.java actions/csharp/ActionLexer.java actions/csharp/ActionLexerTokenTypes.java actions/java/ActionLexer.java actions/java/ActionLexerTokenTypes.java >> .depend
ANTLRGrammarParseBehavior.java:10: error: Class or interface `antlr.collections.impl.BitSet' not found in import.
   import antlr.collections.impl.BitSet;
          ^
ANTLRGrammarParseBehavior.java:22: error: Type `Token' not found in the declaration of the argument `label' of method `beginExceptionSpec'.
       public void beginExceptionSpec(Token label);
                                      ^
./RecognitionException.java:10: error: Superclass `ANTLRException' of class `antlr.RecognitionException' not found.
   public class RecognitionException extends ANTLRException {
                                             ^
./SemanticException.java:10: error: Superclass `RecognitionException' of class `antlr.SemanticException' not found.
   public class SemanticException extends RecognitionException {
                                          ^
ANTLRGrammarParseBehavior.java:27: error: Class `SemanticException' not found in `throws'.
       public void beginTree(Token tok) throws SemanticException;
                                               ^
ANTLRGrammarParseBehavior.java:103: error: Type `BitSet' not found in the declaration of the argument `b' of method `setCharVocabulary'.
       public void setCharVocabulary(BitSet b);
                                     ^
6 errors
./CharScanner.java:12: error: Class or interface `antlr.collections.impl.BitSet' not found in import.
   import antlr.collections.impl.BitSet;
          ^
./TokenStream.java:11: error: Type `Token' not found in the declaration of the return type of method `nextToken'.
       public Token nextToken() throws TokenStreamException;
              ^
./TokenStreamException.java:13: error: Superclass `ANTLRException' of class `antlr.TokenStreamException' not found.
   public class TokenStreamException extends ANTLRException {
                                             ^
./TokenStream.java:11: error: Class `TokenStreamException' not found in `throws'.
       public Token nextToken() throws TokenStreamException;
                                       ^
./CharScanner.java:16: error: Superinterface `TokenStream' of class `antlr.CharScanner' not found.
   public abstract class CharScanner implements TokenStream {
                                                ^
./CharScanner.java:19: error: Type `ANTLRStringBuffer' not found in declaration of field `text'.
       protected ANTLRStringBuffer text; // text of current token
                 ^
./InputBuffer.java:41: error: Type `CharQueue' not found in declaration of field `queue'.
       protected CharQueue queue;
                 ^
./InputBuffer.java:64: error: Class `CharStreamException' not found in `throws'.
       public abstract void fill(int amount) throws CharStreamException;
                                                    ^
./LexerSharedInputState.java:23: error: Type `InputBuffer' not found in declaration of field `input'.
       protected InputBuffer input;
                 ^
./CharScanner.java:37: error: Type `LexerSharedInputState' not found in declaration of field `inputState'.
       protected LexerSharedInputState inputState;
                 ^
./CharScanner.java:109: error: Type `BitSet' not found in the declaration of the argument `set' of method `consumeUntil'.
       public void consumeUntil(BitSet set) throws CharStreamException {
                                ^
./MismatchedCharException.java:10: error: Class or interface `antlr.collections.impl.BitSet' not found in import.
   import antlr.collections.impl.BitSet;
          ^
./MismatchedCharException.java:12: error: Superclass `RecognitionException' of class `antlr.MismatchedCharException' not found.
   public class MismatchedCharException extends RecognitionException {
                                                ^
./MismatchedCharException.java:34: error: Type `BitSet' not found in declaration of field `set'.
       public BitSet set;
              ^
./MismatchedCharException.java:66: error: Type `BitSet' not found in the declaration of the argument `set_' of method `<init>'.
       public MismatchedCharException(char c, BitSet set_, boolean matchNot, CharScanner scanner_) {
                                              ^
./CharScanner.java:195: error: Class `MismatchedCharException' not found in `throws'.
       public void match(char c) throws MismatchedCharException, CharStreamException {
                                        ^
./CharScanner.java:202: error: Type `BitSet' not found in the declaration of the argument `b' of method `match'.
       public void match(BitSet b) throws MismatchedCharException, CharStreamException {
                         ^
Caught signal 2 in pid 19406
make[1]: *** [fastdep] Interrupt
make: *** [depend] Interrupt

/usr/portage/dev-java/antlr/antlr-2.7.4.ebuild: src_compile aborted; exiting.



Exiting on signal 2
[There were many many screens with following errors...]

I am wondering why it uses gcj??? It should use sun-jdk in my opinion...

$ set
BASH=/bin/bash
BASH_ARGC=()
BASH_ARGV=()
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="3" [1]="00" [2]="13" [3]="1" [4]="release" [5]="i686-pc-linux-gnu")
BASH_VERSION='3.00.13(1)-release'
CLASSPATH=.
COLUMNS=120
CONFIG_PROTECT='/usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/xdvi/'
CONFIG_PROTECT_MASK=/etc/terminfo
CVS_RSH=ssh
DIRSTACK=()
EDITOR=/bin/nano
EUID=0
GDK_USE_XFT=1
GLIBC_SSP_CHECKED=1
GROUPS=()
G_BROKEN_FILENAMES=1
HISTFILE=/root/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/root
HOSTNAME=kangur
HOSTTYPE=i686
IFS=$' \t\n'
INFOPATH=/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info
JAVAC=/opt/sun-jdk-1.4.2.06/bin/javac
JAVA_HOME=/opt/sun-jdk-1.4.2.06
JDK_HOME=/opt/sun-jdk-1.4.2.06
LESS=-R
LESSOPEN='|lesspipe.sh %s'
LINES=45
MACHTYPE=i686-pc-linux-gnu
MAILCHECK=60
MANPATH=/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man:/usr/share/man::/opt/sun-jdk-1.4.2.06/man
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PAGER=/usr/bin/less
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4:/usr/X11R6/bin:/opt/sun-jdk-1.4.2.06/bin:/opt/sun-jdk-1.4.2.06/jre/bin:/opt/sun-jdk-1.4.2.06/jre/javaws
PIPESTATUS=([0]="102")
PPID=5373
PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
PS2='> '
PS4='+ '
PWD=/
PYTHONDOCS=/usr/share/doc/python-docs-2.3.4/html
SHELL=/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
SHLVL=1
TERM=xterm
UID=0
XINITRC=/etc/X11/xinit/xinitrc
_=antlr
safe_term=xterm
use_color=true

$ java-config -L
[sun-jdk-1.4.2.06] "Sun JDK 1.4.2.06" (/etc/env.d/java/20sun-jdk-1.4.2.06) *





Reproducible: Always
Steps to Reproduce:
1. emerge -e system




Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041021-r0,
2.6.9-cko2 i686)
=================================================================
System uname: 2.6.9-cko2 i686 Unknown CPU Type
Gentoo Base System version 1.6.4
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -O3 -Os -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer -fweb
-frename-registers -freorder-blocks -ftracer -funit-at-a-time -fforce-addr -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/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/terminfo /etc/env.d"
CXXFLAGS="-O2 -O3 -Os -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer
-fweb -frename-registers -freorder-blocks -ftracer -funit-at-a-time -fforce-addr
-pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distlocks fixpackages nostrip sandbox sfperms"
GENTOO_MIRRORS="http://www.gigaload.org/gentoo.org/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://gentoo.eliteitminds.com http://gentoo.mirror.sdv.fr
http://gentoo.math.bme.hu http://gentoo.tiscali.nl/gentoo/
http://trumpetti.atm.tut.fi/gentoo/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://src.gentoo.pl
http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X aalib accessibility acl alsa apm artworkextra audiofile avi
bcmath berkdb bitmap-fonts bluetooth bmp bzlib calendar cdparanoia cdr crypt
ctype cups curl curlwrappers dga dio directfb doc dvd dvdr dvdread edl encode
erandom f77 fbcon flac foomaticdb freetts ftp gcj gd gdbm ggi gif gimpprint gmp
gnokii gnome gnutls gphoto2 gpm gstreamer gtk gtk2 guile hal howl imap imlib
inifile innodb irda jack jack-tmpfs java javascript jce jms joystick jpeg jpeg2k
justify jython kde libcaca libedit libg++ libwww lirc live lzo mad matroska
md5sum mhash mikmod mime ming mmap mmx mmx2 mng mnogosearch motif mozcalendar
mozdevelop mozilla mpeg msession mysql mysqli mythtv nas ncurses network nls
no-old-linux noantlr nptl nvidia objc oggvorbis opengl oss pam pcntl pcre pdflib
perl php pic png posix postgres povray python qt quicktime readline real rhino
rtc ruby scanner sdl session shared sharedmem simplexml slang sms sndfile soap
sockets speex spell sqlite sse ssl svg sysvipc tcltk tcpd tetex tga theora tiff
tokenizer truetype unicode v4l2 x86 xanim xinerama xml xml2 xmlrpc xmms xpm
xprint xscreensaver xsl xv xvid xvmc zlib"
Comment 1 Neil Katin 2004-11-02 16:04:00 UTC
I just tried to recreate this problem; it worked OK for me.
You say it was running gcj instead of a (presumably installed)
sun java compiler.  Can you check the output of "java-config -c"?

Mine says /home/neil/dist/j2sdk1.4.2_03/bin/javac, from emerging
sun-j2sdk-1.4.2...

Thanks.
Comment 2 Grzegorz Kulewski 2004-11-03 06:14:45 UTC
$ java-config -c
/opt/sun-jdk-1.4.2.06/bin/javac

I do not know if it should use gcj or should not, but I think it should use Sun javac instead, especially as it looks like gcj can not compile this...
Comment 3 Grzegorz Kulewski 2004-11-03 06:44:27 UTC
Ok, I found the problem. If GCJ="gcj" is set in /etc/make.conf this package is compiled using it. I set GCJ because CC and CXX are required because some bug in one package (I do not remember, but it is in bugzilla). But I do not think that setting GCJ should cause antlr to be compiled using it... GCJ is only the name (and the location) of Gnu Java Compiler, not command to build everyting using it...
Comment 4 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-12-18 13:52:35 UTC
This is presumably a feature of the ANTLR build system.

I think the logic goes: Just as setting CXX and CC will determine your c++ and
c compilers, setting GCJ will determine your Java compiler.

I don't want to add unset GCJ to just this ebuild, as you have actually
specified in /etc/make.conf that you prefer GCJ when it's supported.


If you have a nice, clean solution to this problem, please reopen the bug and tell us, and we'll be happy to address it.