Package Details: rl78-elf-gcc-stage1 5.2.0-1

Git Clone URL: https://aur.archlinux.org/rl78-elf-gcc-stage1.git (read-only, click to copy)
Package Base: rl78-elf-gcc-stage1
Description: The GNU Compiler Collection. Stage 1 for toolchain building (rl78-elf)
Upstream URL: http://gcc.gnu.org
Licenses: GPL, LGPL
Submitter: luk4s
Maintainer: luk4s
Last Packager: luk4s
Votes: 0
Popularity: 0.000000
First Submitted: 2016-01-07 17:22
Last Updated: 2016-01-07 17:23

Latest Comments

kuzulis commented on 2020-05-17 17:06

This issue was due to missing 32-bit version of zlib library: https://www.archlinux.org/packages/multilib/x86_64/lib32-zlib/

But, after installing I got a lot of other gcc errors (I use host GCC v10x):

In file included from ../../gcc/real.h:25,
                 from ../../gcc/rtl.h:26,
                 from ../../gcc/genpreds.c:27:
../../gcc/wide-int.h:370:10: error: too many template-parameter-lists
  370 |   struct binary_traits <T1, T2, FLEXIBLE_PRECISION, FLEXIBLE_PRECISION>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/wide-int.h:377:10: error: too many template-parameter-lists
  377 |   struct binary_traits <T1, T2, FLEXIBLE_PRECISION, VAR_PRECISION>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/wide-int.h:384:10: error: too many template-parameter-lists
  384 |   struct binary_traits <T1, T2, FLEXIBLE_PRECISION, CONST_PRECISION>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/wide-int.h:394:10: error: too many template-parameter-lists
  394 |   struct binary_traits <T1, T2, VAR_PRECISION, FLEXIBLE_PRECISION>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/wide-int.h:401:10: error: too many template-parameter-lists
  401 |   struct binary_traits <T1, T2, CONST_PRECISION, FLEXIBLE_PRECISION>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/wide-int.h:411:10: error: too many template-parameter-lists
  411 |   struct binary_traits <T1, T2, CONST_PRECISION, CONST_PRECISION>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/wide-int.h:422:10: error: too many template-parameter-lists
  422 |   struct binary_traits <T1, T2, VAR_PRECISION, VAR_PRECISION>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/wide-int.h:886:10: error: too many template-parameter-lists
  886 |   struct int_traits < generic_wide_int <storage> >
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/wide-int.h:898:51: error: invalid use of incomplete type ‘struct wi::int_traits<generic_wide_int<T> >’
  898 | get_precision (const generic_wide_int <storage> &x)
      |                                                   ^
../../gcc/wide-int.h:349:32: note: declaration of ‘struct wi::int_traits<generic_wide_int<T> >’
  349 |   template <typename T> struct int_traits;
      |                                ^~~~~~~~~~
../../gcc/wide-int.h:907:40: error: invalid use of incomplete type ‘struct wi::int_traits<generic_wide_int<T> >’
  907 |     const generic_wide_int <storage> &x)
      |                                        ^
../../gcc/wide-int.h:349:32: note: declaration of ‘struct wi::int_traits<generic_wide_int<T> >’
  349 |   template <typename T> struct int_traits;
      |                                ^~~~~~~~~~
../../gcc/wide-int.h:965:10: error: too many template-parameter-lists
  965 |   struct int_traits <wide_int_ref_storage <SE> >
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/wide-int.h: In instantiation of ‘struct wi::unary_traits<generic_wide_int<wide_int_storage> >’:
../../gcc/wide-int.h:685:3:   required from ‘class generic_wide_int<wide_int_storage>’
../../gcc/wide-int.h:1080:14:   required from here
../../gcc/wide-int.h:362:10: error: incomplete type ‘wi::int_traits<generic_wide_int<wide_int_storage> >’ used in nested name specifier
  362 |   struct unary_traits : public binary_traits <T, T> {};
      |          ^~~~~~~~~~~~
../../gcc/wide-int.h: In instantiation of ‘class generic_wide_int<wide_int_storage>’:
../../gcc/wide-int.h:1080:14:   required from here
../../gcc/wide-int.h:685:19: error: no type named ‘result_type’ in ‘struct wi::unary_traits<generic_wide_int<wide_int_storage> >’
  685 |   UNARY_OPERATOR (operator ~, bit_not)
      |                   ^~~~~~~~
../../gcc/wide-int.h:671:38: note: in definition of macro ‘UNARY_OPERATOR’
  671 |   WI_UNARY_RESULT (generic_wide_int) OP () const { return wi::F (*this); }
      |                                      ^~
../../gcc/wide-int.h:686:19: error: no type named ‘result_type’ in ‘struct wi::unary_traits<generic_wide_int<wide_int_storage> >’
  686 |   UNARY_OPERATOR (operator -, neg)
      |                   ^~~~~~~~
../../gcc/wide-int.h:671:38: note: in definition of macro ‘UNARY_OPERATOR’
  671 |   WI_UNARY_RESULT (generic_wide_int) OP () const { return wi::F (*this); }
      |                                      ^~
../../gcc/wide-int.h:689:20: error: incomplete type ‘wi::int_traits<generic_wide_int<wide_int_storage> >’ used in nested name specifier
  689 |   BINARY_OPERATOR (operator &, bit_and)
      |                    ^~~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:690:20: error: incomplete type ‘wi::int_traits<generic_wide_int<wide_int_storage> >’ used in nested name specifier
  690 |   BINARY_OPERATOR (and_not, bit_and_not)
      |                    ^~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:691:20: error: incomplete type ‘wi::int_traits<generic_wide_int<wide_int_storage> >’ used in nested name specifier
  691 |   BINARY_OPERATOR (operator |, bit_or)
      |                    ^~~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:692:20: error: incomplete type ‘wi::int_traits<generic_wide_int<wide_int_storage> >’ used in nested name specifier
  692 |   BINARY_OPERATOR (or_not, bit_or_not)
      |                    ^~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:693:20: error: incomplete type ‘wi::int_traits<generic_wide_int<wide_int_storage> >’ used in nested name specifier
  693 |   BINARY_OPERATOR (operator ^, bit_xor)
      |                    ^~~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:694:20: error: incomplete type ‘wi::int_traits<generic_wide_int<wide_int_storage> >’ used in nested name specifier
  694 |   BINARY_OPERATOR (operator +, add)
      |                    ^~~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:695:20: error: incomplete type ‘wi::int_traits<generic_wide_int<wide_int_storage> >’ used in nested name specifier
  695 |   BINARY_OPERATOR (operator -, sub)
      |                    ^~~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:696:20: error: incomplete type ‘wi::int_traits<generic_wide_int<wide_int_storage> >’ used in nested name specifier
  696 |   BINARY_OPERATOR (operator *, mul)
      |                    ^~~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h: In instantiation of ‘struct wi::unary_traits<generic_wide_int<wide_int_ref_storage<false> > >’:
../../gcc/wide-int.h:685:3:   required from ‘class generic_wide_int<wide_int_ref_storage<false> >’
../../gcc/wide-int.h:1083:60:   required from here
../../gcc/wide-int.h:362:10: error: incomplete type ‘wi::int_traits<generic_wide_int<wide_int_ref_storage<false> > >’ used in nested name specifier
  362 |   struct unary_traits : public binary_traits <T, T> {};
      |          ^~~~~~~~~~~~
../../gcc/wide-int.h: In instantiation of ‘class generic_wide_int<wide_int_ref_storage<false> >’:
../../gcc/wide-int.h:1083:60:   required from here
../../gcc/wide-int.h:685:19: error: no type named ‘result_type’ in ‘struct wi::unary_traits<generic_wide_int<wide_int_ref_storage<false> > >’
  685 |   UNARY_OPERATOR (operator ~, bit_not)
      |                   ^~~~~~~~
../../gcc/wide-int.h:671:38: note: in definition of macro ‘UNARY_OPERATOR’
  671 |   WI_UNARY_RESULT (generic_wide_int) OP () const { return wi::F (*this); }
      |                                      ^~
../../gcc/wide-int.h:686:19: error: no type named ‘result_type’ in ‘struct wi::unary_traits<generic_wide_int<wide_int_ref_storage<false> > >’
  686 |   UNARY_OPERATOR (operator -, neg)
      |                   ^~~~~~~~
../../gcc/wide-int.h:671:38: note: in definition of macro ‘UNARY_OPERATOR’
  671 |   WI_UNARY_RESULT (generic_wide_int) OP () const { return wi::F (*this); }
      |                                      ^~
../../gcc/wide-int.h:689:20: error: incomplete type ‘wi::int_traits<generic_wide_int<wide_int_ref_storage<false> > >’ used in nested name specifier
  689 |   BINARY_OPERATOR (operator &, bit_and)
      |                    ^~~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:690:20: error: incomplete type ‘wi::int_traits<generic_wide_int<wide_int_ref_storage<false> > >’ used in nested name specifier
  690 |   BINARY_OPERATOR (and_not, bit_and_not)
      |                    ^~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:691:20: error: incomplete type ‘wi::int_traits<generic_wide_int<wide_int_ref_storage<false> > >’ used in nested name specifier
  691 |   BINARY_OPERATOR (operator |, bit_or)
      |                    ^~~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:692:20: error: incomplete type ‘wi::int_traits<generic_wide_int<wide_int_ref_storage<false> > >’ used in nested name specifier
  692 |   BINARY_OPERATOR (or_not, bit_or_not)
      |                    ^~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:693:20: error: incomplete type ‘wi::int_traits<generic_wide_int<wide_int_ref_storage<false> > >’ used in nested name specifier
  693 |   BINARY_OPERATOR (operator ^, bit_xor)
      |                    ^~~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:694:20: error: incomplete type ‘wi::int_traits<generic_wide_int<wide_int_ref_storage<false> > >’ used in nested name specifier
  694 |   BINARY_OPERATOR (operator +, add)
      |                    ^~~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:695:20: error: incomplete type ‘wi::int_traits<generic_wide_int<wide_int_ref_storage<false> > >’ used in nested name specifier
  695 |   BINARY_OPERATOR (operator -, sub)
      |                    ^~~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:696:20: error: incomplete type ‘wi::int_traits<generic_wide_int<wide_int_ref_storage<false> > >’ used in nested name specifier
  696 |   BINARY_OPERATOR (operator *, mul)
      |                    ^~~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:1152:10: error: too many template-parameter-lists
 1152 |   struct int_traits < fixed_wide_int_storage <N> >
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/wide-int.h:1244:42: error: invalid use of incomplete type ‘struct wi::int_traits<fixed_wide_int_storage<N> >’
 1244 | get_binary_result (const T1 &, const T2 &)
      |                                          ^
../../gcc/wide-int.h:349:32: note: declaration of ‘struct wi::int_traits<fixed_wide_int_storage<N> >’
  349 |   template <typename T> struct int_traits;
      |                                ^~~~~~~~~~
../../gcc/wide-int.h: In instantiation of ‘struct wi::unary_traits<generic_wide_int<trailing_wide_int_storage> >’:
../../gcc/wide-int.h:685:3:   required from ‘class generic_wide_int<trailing_wide_int_storage>’
../../gcc/wide-int.h:1378:56:   required from here
../../gcc/wide-int.h:362:10: error: incomplete type ‘wi::int_traits<generic_wide_int<trailing_wide_int_storage> >’ used in nested name specifier
  362 |   struct unary_traits : public binary_traits <T, T> {};
      |          ^~~~~~~~~~~~
../../gcc/wide-int.h: In instantiation of ‘class generic_wide_int<trailing_wide_int_storage>’:
../../gcc/wide-int.h:1378:56:   required from here
../../gcc/wide-int.h:685:19: error: no type named ‘result_type’ in ‘struct wi::unary_traits<generic_wide_int<trailing_wide_int_storage> >’
  685 |   UNARY_OPERATOR (operator ~, bit_not)
      |                   ^~~~~~~~
../../gcc/wide-int.h:671:38: note: in definition of macro ‘UNARY_OPERATOR’
  671 |   WI_UNARY_RESULT (generic_wide_int) OP () const { return wi::F (*this); }
      |                                      ^~
../../gcc/wide-int.h:686:19: error: no type named ‘result_type’ in ‘struct wi::unary_traits<generic_wide_int<trailing_wide_int_storage> >’
  686 |   UNARY_OPERATOR (operator -, neg)
      |                   ^~~~~~~~
../../gcc/wide-int.h:671:38: note: in definition of macro ‘UNARY_OPERATOR’
  671 |   WI_UNARY_RESULT (generic_wide_int) OP () const { return wi::F (*this); }
      |                                      ^~
../../gcc/wide-int.h:689:20: error: incomplete type ‘wi::int_traits<generic_wide_int<trailing_wide_int_storage> >’ used in nested name specifier
  689 |   BINARY_OPERATOR (operator &, bit_and)
      |                    ^~~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:690:20: error: incomplete type ‘wi::int_traits<generic_wide_int<trailing_wide_int_storage> >’ used in nested name specifier
  690 |   BINARY_OPERATOR (and_not, bit_and_not)
      |                    ^~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:691:20: error: incomplete type ‘wi::int_traits<generic_wide_int<trailing_wide_int_storage> >’ used in nested name specifier
  691 |   BINARY_OPERATOR (operator |, bit_or)
      |                    ^~~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:692:20: error: incomplete type ‘wi::int_traits<generic_wide_int<trailing_wide_int_storage> >’ used in nested name specifier
  692 |   BINARY_OPERATOR (or_not, bit_or_not)
      |                    ^~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:693:20: error: incomplete type ‘wi::int_traits<generic_wide_int<trailing_wide_int_storage> >’ used in nested name specifier
  693 |   BINARY_OPERATOR (operator ^, bit_xor)
      |                    ^~~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:694:20: error: incomplete type ‘wi::int_traits<generic_wide_int<trailing_wide_int_storage> >’ used in nested name specifier
  694 |   BINARY_OPERATOR (operator +, add)
      |                    ^~~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:695:20: error: incomplete type ‘wi::int_traits<generic_wide_int<trailing_wide_int_storage> >’ used in nested name specifier
  695 |   BINARY_OPERATOR (operator -, sub)
      |                    ^~~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
../../gcc/wide-int.h:696:20: error: incomplete type ‘wi::int_traits<generic_wide_int<trailing_wide_int_storage> >’ used in nested name specifier
  696 |   BINARY_OPERATOR (operator *, mul)
      |                    ^~~~~~~~
../../gcc/wide-int.h:676:5: note: in definition of macro ‘BINARY_OPERATOR’
  676 |     OP (const T &c) const { return wi::F (*this, c); }
      |     ^~
In file included from ../../gcc/rtl.h:27,
                 from ../../gcc/genpreds.c:27:
../../gcc/vec.h: In instantiation of ‘bool vec<T, va_heap, vl_ptr>::reserve(unsigned int, bool) [with T = std::pair<unsigned int, const char*>]’:
../../gcc/vec.h:1537:3:   required from ‘T* vec<T, va_heap, vl_ptr>::safe_push(const T&) [with T = std::pair<unsigned int, const char*>]’
../../gcc/genpreds.c:1383:68:   required from here
../../gcc/vec.h:1431:14: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘struct std::pair<unsigned int, const char*>’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
 1431 |       memcpy (m_vec->address (), oldvec->address (), sizeof (T) * oldsize);
      |       ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/10.1.0/bits/stl_algobase.h:64,
                 from /usr/include/c++/10.1.0/bits/char_traits.h:39,
                 from /usr/include/c++/10.1.0/string:40,
                 from ../../gcc/system.h:201,
                 from ../../gcc/genpreds.c:24:
/usr/include/c++/10.1.0/bits/stl_pair.h:211:12: note: ‘struct std::pair<unsigned int, const char*>’ declared here
  211 |     struct pair
      |            ^~~~
make[1]: *** [Makefile:2429: build/genpreds.o] Error 1
make[1]: Leaving directory '/home/denis/Downloads/rl78-elf-gcc-stage1/src/gcc-5.2.0/gcc-build/gcc'
make: *** [Makefile:4098: all-gcc] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

kuzulis commented on 2020-05-17 16:45

Compilation failed with GCC v10x.. :

checking how to run the C preprocessor... /lib/cpp
configure: error: in `/home/denis/Downloads/rl78-elf-gcc-stage1/src/gcc-5.2.0/gcc-build/32/zlib':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make: *** [Makefile:8642: configure-zlib] Error 1
==> ERROR: A failure occurred in build().
    Aborting...