On Tue, 8 Nov 2022 at 11:22, Florian Weimer via Libstdc++
<libstd...@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

Reply via email to