https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115739
Bug ID: 115739
Summary: Building cross-compiler to sparc-wrs-vxworks fails
since r15-1594-g55947b32c38a40
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: jamborm at gcc dot gnu.org
CC: linkw at gcc dot gnu.org
Target Milestone: ---
Host: x86_64-linux-gnu
Target: sparc-wrs-vxworks
Starting with r15-1594-g55947b32c38a40 (Kewen Lin: Replace
{FLOAT,{,LONG_}DOUBLE}_TYPE_SIZE with new hook mode_for_floating_type),
building a cross compiler from x86_64-linux to sparc-wrs-vxworks fails
with error:
/home/mjambor/gcc/mine/src/gcc/config/sparc/sparc.cc:13986:12: error:
‘SPARC_LONG_DOUBLE_TYPE_SIZE’ was not declared in this scope
13986 | return SPARC_LONG_DOUBLE_TYPE_SIZE == 128 ? TFmode : DFmode;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
To test yourself, configure GCC with:
../src/configure --prefix=/home/mjambor/gcc/mine/inst
--enable-languages=c,c++ --enable-checking=yes --disable-bootstrap
--disable-libsanitizer --disable-multilib --disable-libcilkrts
--target=sparc-wrs-vxworks
and then make the compiler proper with:
make -j64 all-host CXXFLAGS="-O0 -g" CFLAGS="-O0 -g"