msp430-elf cross-compiler: libstdc++ supported?
Jonathan Wakely
jwakely@redhat.com
Tue Nov 8 12:37:37 GMT 2022
On Tue, 8 Nov 2022 at 11:22, Florian Weimer via Libstdc++
<libstdc++@gcc.gnu.org> wrote:
>
> I'm trying to validate a change to gcc/config/msp430/msp430.cc.
> The cross-compiler builds as far as I can tell, but I hit a snag while
> configuring libstdc++:
>
> checking for shl_load... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
> make[1]: *** [Makefile:12334: configure-target-libstdc++-v3] Error 1
> make[1]: Leaving directory '/root/msp/build-gcc'
>
> Is this expected? Is libstdc++ even supported for this target?
Yes. What's your configure command? You probably need at least --with-newlib.
I think my last successful msp430 build was using:
.../gcc/configure --target=msp430-elf --prefix=$HOME/gcc/msp430-elf
--disable-libcc1 --disable-libgomp --disable-libitm --disable-libssp
--disable-libvtv --disable-nls --with-system-zlib
target_alias=msp430-elf --disable-libstdcxx-pch
--disable-full-memory-range --with-newlib --enable-libstdcxx
--enable-languages=c,c++
With the cross binutils already installed to $PREFIX/gcc/msp430-elf
More information about the Gcc
mailing list