https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86615

TCH <tch at protonmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tch at protonmail dot com

--- Comment #3 from TCH <tch at protonmail dot com> ---
This bug can be fixed by changing '#define rlim_t long' to 'typedef unsigned
long long rlim_t;' or 'typedef ulonglong_t rlim_t;', if you include the header
'ulonglong_t' is defined in.
Changing it to '#define rlim_t unsigned long long' will not work, it will just
throw a different error ("multiple definitions") and 'typedef'-ing it to
anything else than 'unsigned long long' (or 'ulonglong_t') will throw an error
that it is different than the previous declaration somewhere, what defined it
as 'ulonglong_t'.

So, by changing the line

$as_echo "#define rlim_t long" >>confdefs.h

in 'gcc-6.X.0/gcc/configure' to

$as_echo "typedef unsigned long long rlim_t;" >>confdefs.h

this error is a goner.

A patch which fixes this and the other errors i ran into when compiling GCC
6.5.0 with GCC 5.5.0 on Solaris 10 SPARC is available under the bugticket
#120905: [https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120905]

Reply via email to