Java related bootstrap failure: java/mangle_name.c:144: undefinedreference to `error'

Gerald Pfeifer
Fri Feb 9 08:11:00 GMT 2001

Perhaps this has the same root as the bootstrap failure I previously
reported for parallel make on sparc-sun-solaris2.8, but the following
patch apparently causes bootstrap failures on i386-unknown-freebsd4.2:

2001-02-08  Alexandre Petit-Bianco  <>

        * (JAVA_OBJS): Added java/mangle_name.o
        (JVGENMAIN_OBJS): Likewise.
        * java-tree.h (append_gpp_mangled_name): New prototype.
        * jcf-parse.c (ggc_mark_jcf): Argument now `void *.'
        Removed cast calling `gcc_add_root.'
        * jvgenmain.c (mangle_obstack): New global, initialized.
        (main): Use it.
        (do_mangle_class): Constify local `ptr.'
        Removed macro `MANGLE_NAME.' Removed cast in `for.' Call
        append_gpp_mangle_name and update `count' if necessary.
        Use `mangle_obstack.'
        * mangle.c (append_unicode_mangled_name): Removed.
        (append_gpp_mangled_name): Likewise.
        (unicode_mangling_length): Likewise.
        (mangle_member_name): Return type set to `void.'
        (mangle_field_decl): Don't append `U' in escaped names.
        (mangle_method_decl): Likewise.
        (mangle_member_name): Just use `append_gpp_mangled_name.'
        * mangle_name.c: New file.

stage1/xgcc -Bstage1/ -B/sw/test/gcc/FreeBSD/i386-unknown-freebsd4.2/bin/ -c  -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes   -DHAVE_CONFIG_H    -I. -Ijava -I/sw/test/gcc/cvs/gcc -I/sw/test/gcc/cvs/gcc/java -I/sw/test/gcc/cvs/gcc/config -I/sw/test/gcc/cvs/gcc/../include /sw/test/gcc/cvs/gcc/java/jvgenmain.c -o java/jvgenmain.o
rm -f jvgenmain
stage1/xgcc -Bstage1/ -B/sw/test/gcc/FreeBSD/i386-unknown-freebsd4.2/bin/  -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  -o jvgenmain java/jvgenmain.o java/mangle_name.o obstack.o   ./intl/libintl.a      ../libiberty/libiberty.a
java/mangle_name.o: In function `unicode_mangling_length':
/sw/test/gcc/cvs/gcc/java/mangle_name.c:144: undefined reference to `error'
collect2: ld returned 1 exit status
gmake[2]: *** [jvgenmain] Error 1
gmake[2]: Leaving directory `/files/pfeifer/OBJ-0209-1637/gcc'
gmake[1]: *** [stage2_build] Error 2

Gerald "Jerry"

More information about the Java mailing list