[Bug bootstrap/106720] gcc does not compile with XCode 13.4.1 / clang 13.1.6

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 23 09:59:40 GMT 2022


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libgcc                      |bootstrap
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
While compiling which file?
Is SIZEOF_INT and SIZEOF_LONG correctly defined in libcpp/config.h ?
Perhaps CHAR_BIT isn't defined?
Usually libcpp/ sources include "system.h" before including "cpplib.h" and
system.h has:
#if HAVE_LIMITS_H
# include <limits.h>
#endif
and so CHAR_BIT should be defined unless limits.h isn't present.

The cpplib.h part is:
#if CHAR_BIT * SIZEOF_INT >= 32
# define CPPCHAR_SIGNED_T int
#elif CHAR_BIT * SIZEOF_LONG >= 32
# define CPPCHAR_SIGNED_T long
#else
# error "Cannot find a least-32-bit signed integer type"
#endif


More information about the Gcc-bugs mailing list