[Bug libstdc++/97798] FTB msp430-elf error: the value of '__gnu_cxx::__numeric_traits_integer<__int20>::__max' is not usable in a constant expression

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Nov 12 00:38:27 GMT 2020


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

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
My attempt to build msp430 fails with:

In file included from
/home/jwakely/gcc/msp430-elf/msp430-elf/include/stdint.h:13,
                 from /home/jwakely/src/gcc/build-16bit/gcc/include/stdint.h:9,
                 from
/home/jwakely/src/gcc/build-16bit/msp430-elf/large/libstdc++-v3/include/bits/align.h:36,
                 from
/home/jwakely/src/gcc/build-16bit/msp430-elf/large/libstdc++-v3/include/memory:72,
                 from
/home/jwakely/src/gcc/gcc/libstdc++-v3/include/precompiled/stdc++.h:82:
/home/jwakely/gcc/msp430-elf/msp430-elf/include/sys/_intsup.h:68:2: error:
#error "Unable to determine type definition of intptr_t"
   68 | #error "Unable to determine type definition of intptr_t"
      |  ^~~~~


Is that related?


More information about the Gcc-bugs mailing list