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

--- Comment #2 from Torbjorn SVENSSON <azoff at gcc dot gnu.org> ---
(In reply to Richard Earnshaw from comment #1)
> How was the compiler configured and what's the full command line used when
> building the test?

The toolchain was built using the scripts here:
https://github.com/STMicroelectronics/gnu-tools-for-stm32/blob/13.3.rel1/build-toolchain.sh#L417

The resulting configure invocation is:
/build/gnu-tools-for-stm32_13.3.rel1.20240926-1715/src/gcc/configure \
  --target=arm-none-eabi \
  --prefix=/build/gnu-tools-for-stm32_13.3.rel1.20240926-1715/install-native \
 
--libexecdir=/build/gnu-tools-for-stm32_13.3.rel1.20240926-1715/install-native/lib
\
 
--infodir=/build/gnu-tools-for-stm32_13.3.rel1.20240926-1715/install-native/share/doc/gcc-arm-none-eabi/info
\
 
--mandir=/build/gnu-tools-for-stm32_13.3.rel1.20240926-1715/install-native/share/doc/gcc-arm-none-eabi/man
\
 
--htmldir=/build/gnu-tools-for-stm32_13.3.rel1.20240926-1715/install-native/share/doc/gcc-arm-none-eabi/html
\
 
--pdfdir=/build/gnu-tools-for-stm32_13.3.rel1.20240926-1715/install-native/share/doc/gcc-arm-none-eabi/pdf
\
  --enable-checking=release \
  --enable-languages=c,c++ \
  --enable-plugins \
  --disable-decimal-float \
  --disable-libffi \
  --disable-libgomp \
  --disable-libmudflap \
  --disable-libquadmath \
  --disable-libssp \
  --disable-libstdcxx-pch \
  --disable-nls \
  --disable-shared \
  --disable-threads \
  --disable-tls \
  --with-gnu-as \
  --with-gnu-ld \
  --with-newlib \
  --with-headers=yes \
  --with-python-dir=share/gcc-arm-none-eabi \
 
--with-sysroot=/build/gnu-tools-for-stm32_13.3.rel1.20240926-1715/install-native/arm-none-eabi
\
  --with-zstd=no \
  --build=x86_64-linux-gnu \
  --host=x86_64-linux-gnu \
 
--with-gmp=/build/gnu-tools-for-stm32_13.3.rel1.20240926-1715/build-native/host-libs/usr
\
 
--with-mpfr=/build/gnu-tools-for-stm32_13.3.rel1.20240926-1715/build-native/host-libs/usr
\
 
--with-mpc=/build/gnu-tools-for-stm32_13.3.rel1.20240926-1715/build-native/host-libs/usr
\
 
--with-isl=/build/gnu-tools-for-stm32_13.3.rel1.20240926-1715/build-native/host-libs/usr
\
  '--with-host-libstdcxx=-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' \
  '--with-pkgversion=GNU Tools for STM32 13.3.rel1.20240926-1715' \
  --with-multilib-list=rmprofile,aprofile

The test was built with several additional flags, but I've reduced it down to
these flags that still reproduce the issue:

arm-none-eabi-g++ g++.dg/cpp23/ext-floating13.C \
  -mthumb -mcpu=cortex-m55 -mfloat-abi=hard -mfpu=auto \
  -std=gnu++23 \
  -Wl,--start-group -lc -lm -Wl,--end-group --specs=rdimon.specs -o /dev/null
.../ld: /tmp/ccAtbb7c.o:(.rodata+0x0): undefined reference to `typeinfo for
_Float16'
collect2: error: ld returned 1 exit status

Reply via email to