* Various errors encountered while compiling gcj.
@ 2022-04-01 21:00 Zopolis0
0 siblings, 0 replies; only message in thread
From: Zopolis0 @ 2022-04-01 21:00 UTC (permalink / raw)
To: gcc
While attempting to compile gcc with gcj re-added, the compilation fails on
a varying number of errors. I have solved most of the errors, but these are
the remaining ones I am stuck on. The code I am building from is available
here: https://github.com/Zopolis4/gcj/tree/gcjmainbuild . My apologies for
log dumping.
../.././gcc/java/jcf-depend.cc: In function ‘void jcf_dependency_reset()’:
../.././gcc/java/jcf-depend.cc:66:18: error: cannot convert ‘deps*’ to
‘mkdeps*’
66 | deps_free (dependencies);
| ^~~~~~~~~~~~
| |
| deps*
In file included from ../.././gcc/java/jcf-depend.cc:30:
../.././gcc/../libcpp/include/mkdeps.h:37:24: note: initializing argument
1 of ‘void deps_free(mkdeps*)’
37 | extern void deps_free (class mkdeps *);
| ^~~~~~~~~~~~~~
../.././gcc/java/jcf-depend.cc:37:7: note: class type ‘deps’ is incomplete
37 | class deps *dependencies;
| ^~~~
../.././gcc/java/jcf-depend.cc: In function ‘void
jcf_dependency_set_target(const char*)’:
../.././gcc/java/jcf-depend.cc:76:22: error: cannot convert ‘deps*’ to
‘mkdeps*’
76 | deps_add_target (dependencies, name, 1);
| ^~~~~~~~~~~~
| |
| deps*
../.././gcc/../libcpp/include/mkdeps.h:48:30: note: initializing argument
1 of ‘void deps_add_target(mkdeps*, const char*, int)’
48 | extern void deps_add_target (class mkdeps *, const char *, int);
| ^~~~~~~~~~~~~~
../.././gcc/java/jcf-depend.cc:37:7: note: class type ‘deps’ is incomplete
37 | class deps *dependencies;
| ^~~~
../.././gcc/java/jcf-depend.cc: In function ‘void
jcf_dependency_add_target(const char*)’:
../.././gcc/java/jcf-depend.cc:83:22: error: cannot convert ‘deps*’ to
‘mkdeps*’
83 | deps_add_target (dependencies, name, 1);
| ^~~~~~~~~~~~
| |
| deps*
../.././gcc/../libcpp/include/mkdeps.h:48:30: note: initializing argument
1 of ‘void deps_add_target(mkdeps*, const char*, int)’
48 | extern void deps_add_target (class mkdeps *, const char *, int);
| ^~~~~~~~~~~~~~
../.././gcc/java/jcf-depend.cc:37:7: note: class type ‘deps’ is incomplete
37 | class deps *dependencies;
| ^~~~
../.././gcc/java/jcf-depend.cc: In function ‘void jcf_dependency_init(int)’:
../.././gcc/java/jcf-depend.cc:119:28: error: cannot convert ‘mkdeps*’ to
‘deps*’ in assignment
119 | dependencies = deps_init ();
| ~~~~~~~~~~^~
| |
| mkdeps*
In file included from ../.././gcc/../libcpp/include/mkdeps.h:26:
../.././gcc/../libcpp/include/cpplib.h:1043:14: note: class type ‘mkdeps’
is incomplete
1043 | extern class mkdeps *cpp_get_deps (cpp_reader *) ATTRIBUTE_PURE;
| ^~~~~~
../.././gcc/java/jcf-depend.cc: In function ‘void jcf_dependency_write()’:
../.././gcc/java/jcf-depend.cc:138:47: error: expected primary-expression
before ‘.’ token
138 | CPP_OPTION (dependencies, deps.phony_targets) 72);
| ^
../.././gcc/java/jcf-depend.cc:138:17: error: ‘CPP_OPTION’ was not declared
in this scope
138 | CPP_OPTION (dependencies, deps.phony_targets) 72);
| ^~~~~~~~~~
../.././gcc/java/jcf-depend.cc:140:17: error: cannot convert ‘deps*’ to
‘const cpp_reader*’
140 | deps_write (dependencies, dep_out, 72);
| ^~~~~~~~~~~~
| |
| deps*
../.././gcc/../libcpp/include/mkdeps.h:69:25: note: initializing argument
1 of ‘void deps_write(const cpp_reader*, FILE*, unsigned int)’
69 | extern void deps_write (const cpp_reader *, FILE *, unsigned int);
| ^~~~~~~~~~~~~~~~~~
../.././gcc/java/jcf-depend.cc:37:7: note: class type ‘deps’ is incomplete
37 | class deps *dependencies;
| ^~~~
make[3]: *** [Makefile:1143: java/jcf-depend.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from ../.././gcc/java/jvspec.cc:29:
../.././gcc/gcc.h:61:3: error: ‘option_proposer’ does not name a type
61 | option_proposer m_option_proposer;
| ^~~~~~~~~~~~~~~
make[3]: *** [Makefile:1143: java/jvspec.o] Error 1
../.././gcc/java/expr.cc: In function ‘void expand_java_return(tree)’:
../.././gcc/java/expr.cc:1303:15: error: no match for ‘operator<’ (operand
types are ‘poly_uint16’ {aka ‘poly_int<1, short unsigned int>’} and
‘poly_uint16’ {aka ‘poly_int<1, short unsigned int>’})
1302 | && (GET_MODE_SIZE (TYPE_MODE (TREE_TYPE (res)))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| poly_int<[...],[...]>
1303 | < GET_MODE_SIZE (TYPE_MODE (type))))
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| poly_int<[...],[...]>
In file included from ../.././gcc/coretypes.h:460,
from ../.././gcc/java/expr.cc:28:
../.././gcc/wide-int.h:3250:26: note: candidate: ‘template<class T1, class
T2> typename wi::binary_traits<T1, T2>::signed_predicate_result
operator<(const T1&, const T2&)’
3250 | SIGNED_BINARY_PREDICATE (operator <, lts_p)
| ^~~~~~~~
../.././gcc/wide-int.h:3245:5: note: in definition of macro
‘SIGNED_BINARY_PREDICATE’
3245 | OP (const T1 &x, const T2 &y) \
| ^~
../.././gcc/wide-int.h:3250:26: note: template argument
deduction/substitution failed:
3250 | SIGNED_BINARY_PREDICATE (operator <, lts_p)
| ^~~~~~~~
../.././gcc/wide-int.h:3245:5: note: in definition of macro
‘SIGNED_BINARY_PREDICATE’
3245 | OP (const T1 &x, const T2 &y) \
| ^~
../.././gcc/wide-int.h: In substitution of ‘template<class T1, class T2>
typename wi::binary_traits<T1, T2>::signed_predicate_result operator<(const
T1&, const T2&) [with T1 = poly_int<1, short unsigned int>; T2 =
poly_int<1, short unsigned int>]’:
../.././gcc/java/expr.cc:1303:41: required from here
../.././gcc/wide-int.h:3250:26: error: incomplete type
‘wi::int_traits<poly_int<1, short unsigned int> >’ used in nested name
specifier
3250 | SIGNED_BINARY_PREDICATE (operator <, lts_p)
| ^~~~~~~~
../.././gcc/wide-int.h:3245:5: note: in definition of macro
‘SIGNED_BINARY_PREDICATE’
3245 | OP (const T1 &x, const T2 &y) \
| ^~
../.././gcc/java/jcf-parse.cc: In function ‘void jcf_parse(JCF*)’:
../.././gcc/java/jcf-parse.cc:1429:66: error: unquoted whitespace character
‘\x0a’ in format [-Werror=format-diag]
1429 | fatal_error (input_location, "error in constant pool entry
%d\n", code);
| ^~
../.././gcc/java/builtins.cc: In function ‘tree_node*
compareAndSwapLong_builtin(tree, tree)’:
../.././gcc/java/builtins.cc:352:56: error: no match for ‘operator<=’
(operand types are ‘poly_uint16’ {aka ‘poly_int<1, short unsigned int>’}
and ‘int’)
352 | && GET_MODE_SIZE (mode) <=
UNITS_PER_WORD)))
| ~~~~~~~~~~~~~~~~~~~~ ^~
| |
| poly_uint16 {aka
poly_int<1, short unsigned int>}
In file included from ../.././gcc/coretypes.h:460,
from ../.././gcc/java/builtins.cc:31:
../.././gcc/wide-int.h:3251:26: note: candidate: ‘template<class T1, class
T2> typename wi::binary_traits<T1, T2>::signed_predicate_result
operator<=(const T1&, const T2&)’
3251 | SIGNED_BINARY_PREDICATE (operator <=, les_p)
| ^~~~~~~~
../.././gcc/wide-int.h:3245:5: note: in definition of macro
‘SIGNED_BINARY_PREDICATE’
3245 | OP (const T1 &x, const T2 &y) \
| ^~
../.././gcc/wide-int.h:3251:26: note: template argument
deduction/substitution failed:
3251 | SIGNED_BINARY_PREDICATE (operator <=, les_p)
| ^~~~~~~~
../.././gcc/wide-int.h:3245:5: note: in definition of macro
‘SIGNED_BINARY_PREDICATE’
3245 | OP (const T1 &x, const T2 &y) \
| ^~
../.././gcc/wide-int.h: In substitution of ‘template<class T1, class T2>
typename wi::binary_traits<T1, T2>::signed_predicate_result
operator<=(const T1&, const T2&) [with T1 = poly_int<1, short unsigned
int>; T2 = int]’:
../.././gcc/java/builtins.cc:352:38: required from here
../.././gcc/wide-int.h:3251:26: error: incomplete type
‘wi::int_traits<poly_int<1, short unsigned int> >’ used in nested name
specifier
3251 | SIGNED_BINARY_PREDICATE (operator <=, les_p)
| ^~~~~~~~
../.././gcc/wide-int.h:3245:5: note: in definition of macro
‘SIGNED_BINARY_PREDICATE’
3245 | OP (const T1 &x, const T2 &y) \
| ^~
In file included from ../.././gcc/java/builtins.cc:34:
../.././gcc/java/builtins.cc: In function ‘void
define_builtin(built_in_function, const char*, tree, const char*, int)’:
../.././gcc/tree.h:3334:5: error: lvalue required as left operand of
assignment
3334 | ((built_in_class) FUNCTION_DECL_CHECK
(NODE)->function_decl.built_in_class)
|
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../.././gcc/java/builtins.cc:476:3: note: in expansion of macro
‘DECL_BUILT_IN_CLASS’
476 | DECL_BUILT_IN_CLASS (decl) = BUILT_IN_NORMAL;
| ^~~~~~~~~~~~~~~~~~~
../.././gcc/java/builtins.cc:477:22: error: lvalue required as left operand
of assignment
477 | DECL_FUNCTION_CODE (decl) = val;
| ~~~~~~~~~~~~~~~~~~~^~~~~~
../.././gcc/java/lang.cc:69:31: error: ‘handle_nonnull_attribute’ was not
declared in this scope
69 | handle_nonnull_attribute, NULL },
| ^~~~~~~~~~~~~~~~~~~~~~~~
../.././gcc/java/lang.cc:125:34: error: invalid conversion from ‘bool
(*)(size_t, const char*, int, int, location_t, const cl_option_handlers*)’
{aka ‘bool (*)(long unsigned int, const char*, int, int, unsigned int,
const cl_option_handlers*)’} to ‘bool (*)(size_t, const char*, long int,
int, location_t, const cl_option_handlers*)’ {aka ‘bool (*)(long unsigned
int, const char*, long int, int, unsigned int, const cl_option_handlers*)’}
[-fpermissive]
125 | #define LANG_HOOKS_HANDLE_OPTION java_handle_option
| ^~~~~~~~~~~~~~~~~~
| |
| bool (*)(size_t, const char*, int,
int, location_t, const cl_option_handlers*) {aka bool (*)(long unsigned
int, const char*, int, int, unsigned int, const cl_option_handlers*)}
../.././gcc/langhooks-def.h:344:3: note: in expansion of macro
‘LANG_HOOKS_HANDLE_OPTION’
344 | LANG_HOOKS_HANDLE_OPTION, \
| ^~~~~~~~~~~~~~~~~~~~~~~~
../.././gcc/java/lang.cc:166:32: note: in expansion of macro
‘LANG_HOOKS_INITIALIZER’
166 | struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
| ^~~~~~~~~~~~~~~~~~~~~~
../.././gcc/java/lang.cc: In function ‘bool java_handle_option(size_t,
const char*, int, int, location_t, const cl_option_handlers*)’:
../.././gcc/java/lang.cc:264:43: error: could not convert
‘g->gcc::context::get_dumps()->gcc::dump_manager::dump_switch_p(arg)’ from
‘void’ to ‘bool’
264 | if (!g->get_dumps ()->dump_switch_p (arg))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
| |
| void
../.././gcc/java/lang.cc:264:43: error: in argument to unary !
make[3]: *** [Makefile:1143: java/builtins.o] Error 1
make[3]: *** [Makefile:1143: java/lang.o] Error 1
make[3]: *** [Makefile:1143: java/expr.o] Error 1
cc1plus: all warnings being treated as errors
make[3]: *** [Makefile:1143: java/jcf-parse.o] Error 1
make[3]: Leaving directory '/home/zopolis4/gcj/host-x86_64-pc-linux-gnu/gcc'
make[2]: *** [Makefile:5045: all-stage2-gcc] Error 2
make[2]: Leaving directory '/home/zopolis4/gcj'
make[1]: *** [Makefile:27575: stage2-bubble] Error 2
make[1]: Leaving directory '/home/zopolis4/gcj'
make: *** [Makefile:1076: all] Error 2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-01 21:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-01 21:00 Various errors encountered while compiling gcj Zopolis0
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).