https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119953
Bug ID: 119953
Summary: Compiling libstdc++ on MSP430 fails
Product: gcc
Version: 15.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: marian.buschsieweke at posteo dot net
Target Milestone: ---
Compiling g++ for msp430-elf using:
$ ./configure \
--target=msp430-elf \
--prefix=/usr \
--with-sysroot=/usr/$target \
--with-native-system-header-dir=/include \
--with-headers=/usr/$target/include \
--with-python-dir=share/gcc-msp430-elf \
--libexecdir=/usr/lib \
--enable-languages=c++ \
--enable-lto \
--enable-plugins \
--enable-gnu-indirect-function \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-libssp \
--disable-libstdcxx-pch \
--disable-nls \
--disable-shared \
--disable-threads \
--disable-werror \
--with-gmp \
--with-gnu-as \
--with-gnu-ld \
--with-host-libstdcxx='-static-libgcc
-Wl,-Bstatic,-lstdc++,-Bdynamic -lm' \
--with-isl \
--with-libelf \
--with-mpc \
--with-mpfr \
--with-newlib \
--with-system-zlib
fails while building libstdc++ with:
/home/maribu/Repos/software/aports/master/community/g++-cross-embedded/src/gcc-15.1.0/libstdc++-v3/src/c++17/fs_path.cc:
In function 'std::size_t std::filesystem::__cxx11::hash_value(const path&)':
/home/maribu/Repos/software/aports/master/community/g++-cross-embedded/src/gcc-15.1.0/libstdc++-v3/src/c++17/fs_path.cc:1995:1:
error: insn does not satisfy its constraints:
1995 | }
| ^
(insn 38 85 86 3 (set (reg:SI 14 R14)
(plus:SI (reg:SI 14 R14)
(reg:SI 13 R13 [orig:51 _6 ] [51])))
"/home/maribu/Repos/software/aports/master/community/g++-cross-embedded/src/gcc-15.1.0/libstdc++-v3/src/c++17/fs_path.cc":1992:14
22 {addsi3}
(nil))
during RTL pass: postreload
/home/maribu/Repos/software/aports/master/community/g++-cross-embedded/src/gcc-15.1.0/libstdc++-v3/src/c++17/fs_path.cc:1995:1:
internal compiler error: in extract_constrain_insn, at recog.cc:2783
0x7f0420f33495 libc_start_main_stage2
src/env/__libc_start_main.c:95
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Preprocessed source stored into /tmp/ccEoppeo.out file, please attach
this to your bugreport.
The preprocessed file is added as attachment.