[Bug libgcj/32028] New: Make fails at gjdoc - gnu.classpath.tools.gjdoc.ParseException: unmatched input in line 1: @Retention(SOURCE) @Target(METHOD)

rob1weld at aol dot com gcc-bugzilla@gcc.gnu.org
Tue May 22 02:28:00 GMT 2007


Compiling gcc 4.3.0 20070521 using "--with-gjdoc" fails. It works on 4.2.0/1. I
don't know enough about gjdoc scripting or Java to go poking around so I leave
the fix to someone more capable. 

For anyone who compiled using "--with-gjdoc" and broke their make there is a
"bypass" at the end of this message.


# /usr/bin/gjdoc --version
gjdoc 0.7.7


# gcc/xgcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /root/downloads/gcc-4_3-trunk/configure --verbose
--enable-languages=c,ada,c++,fortran,java,objc,obj-c++ --with-tune=athlon-xp
--prefix=/usr --enable-objc-gc --enable-concept-checks --disable-multilib
--with-gxx-include-dir=/usr/include/c++/4.3 --enable-libstdcxx-debug
--enable-static --enable-shared --enable-initfini-array --enable-__cxa_atexit
--enable-threads=posix --enable-version-specific-runtime-libs --enable-libssp
--enable-libmudflap --enable-libgomp --disable-werror --enable-nls
--with-included-gettext --enable-decimal-float --with-long-double-128
--enable-debug --enable-java-gc=boehm --with-x --x-includes=/usr/X11R6/include
--x-libraries=/usr/X11R6/lib --enable-java-awt=gtk,xlib --enable-gtk-cairo
--enable-qt-peer --enable-xmlj --enable-gconf-peer --enable-tool-wrappers
--with-gjdoc --enable-portable-native-sync --enable-libgcj-multifile
--with-stabs --enable-hash-synchronization --enable-gc-debug
--enable-interpreter --with-system-zlib --enable-libada --with-tls
--with-cpu=athlon-xp --with-arch=athlon-xp
Thread model: posix
gcc version 4.3.0 20070521 (experimental)


Screen output for "gcc version 4.3.0 20070521 (experimental)":

...
touch resources
make[4]: Leaving directory
`/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava/classpath/lib'
Making all in doc
make[4]: Entering directory
`/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava/classpath/doc'
Making all in api
make[5]: Entering directory
`/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava/classpath/doc/api'
/bin/mkdir html > /dev/null 2>&1
/usr/bin/gjdoc \
        -use \
        -sourcepath
"../..:/root/downloads/gcc-4_3-trunk/libjava/classpath:/root/downloads/gcc-4_3-trunk/libjava/classpath/vm/reference:/root/downloads/gcc-4_3-trunk/libjava/classpath/external/w3c_dom:/root/downloads/gcc-4_3-trunk/libjava/classpath/external/sax"
\
        -encoding UTF-8 \
        -breakiterator \
        -licensetext \
        -linksource \
        -splitindex \
        -validhtml \
        -d html \
        -doctitle "GNU Classpath 0.94-pre" \
        -windowtitle "GNU Classpath 0.94-pre Documentation" \
        -header "<span class='logo'><a
href='http://www.gnu.org/software/classpath' target='_top'>GNU Classpath</a>
(0.94-pre)" -footer "<span class='logo'><a
href='http://www.gnu.org/software/classpath' target='_top'>GNU Classpath</a>
(0.94-pre)" \
        -subpackages java:javax:org
WARNING: unknown modifier 'enum'
WARNING: unknown modifier 'State'
gnu.classpath.tools.gjdoc.ParseException: unmatched input in line 1:
@Retention(SOURCE) @Target(METHOD)
public @interfa
   at gnu.classpath.tools.gjdoc.Parser.parse(gjdoc)
   at gnu.classpath.tools.gjdoc.Parser.processSourceFile(gjdoc)
   at gnu.classpath.tools.gjdoc.Parser.processSourceDir(gjdoc)
   at gnu.classpath.tools.gjdoc.RootDocImpl.build(gjdoc)
   at gnu.classpath.tools.gjdoc.Main.startDoclet(gjdoc)
   at gnu.classpath.tools.gjdoc.Main.start(gjdoc)
   at gnu.classpath.tools.gjdoc.Main.main(gjdoc)
make[5]: *** [create_html] Error 5
make[5]: Leaving directory
`/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava/classpath/doc/api'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava/classpath/doc'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava/classpath'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/opt/gcc-4_3-build'
make: *** [all] Error 2



Screen output for "gcc version 4.2.1 20070519 (prerelease)":

...
touch resources
make[4]: Leaving directory
`/opt/gcc-4_2-build/i686-pc-linux-gnu/libjava/classpath/lib'
Making all in doc
make[4]: Entering directory
`/opt/gcc-4_2-build/i686-pc-linux-gnu/libjava/classpath/doc'
Making all in api
make[5]: Entering directory
`/opt/gcc-4_2-build/i686-pc-linux-gnu/libjava/classpath/doc/api'
/bin/mkdir html > /dev/null 2>&1
/usr/bin/gjdoc \
        -use \
        -sourcepath
"../..:/root/downloads/gcc-4_2-branch/libjava/classpath:/root/downloads/gcc-4_2-branch/libjava/classpath/vm/reference:/root/downloads/gcc-4_2-branch/libjava/classpath/external/w3c_dom:/root/downloads/gcc-4_2-branch/libjava/classpath/external/sax"
\
        -encoding UTF-8 \
        -breakiterator \
        -licensetext \
        -linksource \
        -splitindex \
        -validhtml \
        -d html \
        -doctitle "GNU Classpath 0.92" \
        -windowtitle "GNU Classpath 0.92 Documentation" \
        -header "<span class='logo'><a
href='http://www.gnu.org/software/classpath' target='_top'>GNU Classpath</a>
(0.92)" -footer "<span class='logo'><a
href='http://www.gnu.org/software/classpath' target='_top'>GNU Classpath</a>
(0.92)" \
        -subpackages java:javax:org
Loading classes for package java.applet...
Loading classes for package java.awt...
Loading classes for package java.awt.color...
... (MANY lines)
Loading classes for package org.xml.sax.ext...
Loading classes for package org.xml.sax.helpers...
Constructing Javadoc information...
Resolving references in comments...
Resolving references in classes...
Resolving references in packages...
Resolving references in class comments...
Null tags for gnu.classpath.tools.gjdoc.InheritDocTagImpl[name=@inheritDoc,
text=, tagMap=null]
Null tags for gnu.classpath.tools.gjdoc.InheritDocTagImpl[name=@inheritDoc,
text=, tagMap=null]
Null tags for gnu.classpath.tools.gjdoc.InheritDocTagImpl[name=@inheritDoc,
text=, tagMap=null]
Null tags for gnu.classpath.tools.gjdoc.InheritDocTagImpl[name=@inheritDoc,
text=, tagMap=null]
Null tags for gnu.classpath.tools.gjdoc.InheritDocTagImpl[name=@inheritDoc,
text=, tagMap=null]
Null tags for gnu.classpath.tools.gjdoc.InheritDocTagImpl[name=@inheritDoc,
text=, tagMap=null]
Null tags for gnu.classpath.tools.gjdoc.InheritDocTagImpl[name=@inheritDoc,
text=, tagMap=null]
Null tags for gnu.classpath.tools.gjdoc.InheritDocTagImpl[name=@inheritDoc,
text=, tagMap=null]
Null tags for gnu.classpath.tools.gjdoc.InheritDocTagImpl[name=@inheritDoc,
text=, tagMap=null]
Null tags for gnu.classpath.tools.gjdoc.InheritDocTagImpl[name=@inheritDoc,
text=, tagMap=null]
Null tags for gnu.classpath.tools.gjdoc.InheritDocTagImpl[name=@inheritDoc,
text=, tagMap=null]
Resolving references in package comments...
Running doclet...
Building cross-reference information...
Writing overview files...
Writing full tree...
Writing index...
Writing HTML files for package java.applet
Writing HTML files for package java.awt
Writing HTML files for package java.awt.color
Writing HTML files for package java.awt.datatransfer
... (MANY lines)
Writing HTML files for package org.xml.sax.ext
Writing HTML files for package org.xml.sax.helpers
touch create_html
make[5]: Leaving directory
`/opt/gcc-4_2-build/i686-pc-linux-gnu/libjava/classpath/doc/api'
make[5]: Entering directory
`/opt/gcc-4_2-build/i686-pc-linux-gnu/libjava/classpath/doc'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory
`/opt/gcc-4_2-build/i686-pc-linux-gnu/libjava/classpath/doc'
make[4]: Leaving directory
`/opt/gcc-4_2-build/i686-pc-linux-gnu/libjava/classpath/doc'
...



To get around this problem I typed:

# cd i686-pc-linux-gnu/libjava/classpath/doc/api
# touch create_html
# cd ../../../../..
# make


-- 
           Summary: Make fails at gjdoc -
                    gnu.classpath.tools.gjdoc.ParseException: unmatched
                    input in line 1: @Retention(SOURCE) @Target(METHOD)
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rob1weld at aol dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32028



More information about the Gcc-bugs mailing list