[Bug libgcj/30513] [4.3 Regression] Bootstrap failure with libgcj on sparc-sun-solaris2.10

ghazi at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Jan 21 04:35:00 GMT 2007



------- Comment #4 from ghazi at gcc dot gnu dot org  2007-01-21 04:35 -------
Tom, I tried your patch and now I get the following error.  On line 14 in
AnnotationInvocationHandler.h, there is "namespace sun" and "sun" is defined to
1 on solaris.  When I recompile with -ansi (which eliminates "sun" but leaves
things like __sun__ defined) then the compile succeeds:

/caip/u12/kishgcc/tmpdisk/gcc-testing/43/build/./gcc/xgcc -shared-libgcc
-B/caip/u12/kishgcc/tmpdisk/gcc-testing/43/build/./gcc -nostdinc++
-L/caip/u12/kishgcc/tmpdisk/gcc-testing/43/build/sparc-sun-solaris2.10/sparcv9/libstdc++-v3/src
-L/caip/u12/kishgcc/tmpdisk/gcc-testing/43/build/sparc-sun-solaris2.10/sparcv9/libstdc++-v3/src/.libs
-B/usr/local/sparc-sun-solaris2.10/bin/ -B/usr/local/sparc-sun-solaris2.10/lib/
-isystem /usr/local/sparc-sun-solaris2.10/include -isystem
/usr/local/sparc-sun-solaris2.10/sys-include -m64 -DHAVE_CONFIG_H -I.
-I../../../../egcc-SVN20070119/libjava -I./include -I./gcj
-I../../../../egcc-SVN20070119/libjava -Iinclude
-I../../../../egcc-SVN20070119/libjava/include
-I../../../../egcc-SVN20070119/libjava/classpath/include -Iclasspath/include
-I../../../../egcc-SVN20070119/libjava/classpath/native/fdlibm
-I../../../../egcc-SVN20070119/libjava/../boehm-gc/include
-I../boehm-gc/include -I../../../../egcc-SVN20070119/libjava/libltdl
-I../../../../egcc-SVN20070119/libjava/libltdl
-I../../../../egcc-SVN20070119/libjava/.././libjava/../gcc
-I../../../../egcc-SVN20070119/libjava/../zlib
-I../../../../egcc-SVN20070119/libjava/../libffi/include -I../libffi/include
-fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum
-D_FILE_OFFSET_BITS=64 -Wextra -Wall -D_GNU_SOURCE -DPREFIX=\"/usr/local\"
-DTOOLEXECLIBDIR=\"/usr/local/lib/sparcv9\" -DJAVA_HOME=\"/usr/local\"
-DBOOT_CLASS_PATH=\"/usr/local/share/java/libgcj-4.3.0.jar\"
-DJAVA_EXT_DIRS=\"/usr/local/share/java/ext\"
-DGCJ_ENDORSED_DIRS=\"/usr/local/share/java/gcj-endorsed\"
-DGCJ_VERSIONED_LIBDIR=\"/usr/local/lib/sparcv9/gcj-4.3.0\"
-DPATH_SEPARATOR=\":\"
-DLIBGCJ_DEFAULT_DATABASE=\"/usr/local/lib/sparcv9/gcj-4.3.0/classmap.db\"
-DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.3.0/classmap.db\" -g -O2 -m64 -MT
java/lang/natClass.lo -MD -MP -MF java/lang/.deps/natClass.Tpo -c
../../../../egcc-SVN20070119/libjava/java/lang/natClass.cc  -fPIC -DPIC -o
java/lang/.libs/natClass.o
In file included from
../../../../egcc-SVN20070119/libjava/java/lang/natClass.cc:72:
../../../../egcc-SVN20070119/libjava/sun/reflect/annotation/AnnotationInvocationHandler.h:14:
error: expected identifier before numeric constant
../../../../egcc-SVN20070119/libjava/sun/reflect/annotation/AnnotationInvocationHandler.h:14:
error: expected unqualified-id before numeric constant
In file included from
../../../../egcc-SVN20070119/libjava/java/lang/natClass.cc:73:
../../../../egcc-SVN20070119/libjava/java/lang/Enum.h:7: error: expected `}'
before end of line
../../../../egcc-SVN20070119/libjava/java/lang/Enum.h:7: error: expected
declaration before end of line
make[5]: *** [java/lang/natClass.lo] Error 1


-- 

ghazi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org


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



More information about the Java-prs mailing list