WSL2 Linux x86_64では、ARM用のnewlib4.4を構築できません。

WSL2 Linux x86_64では、ARM用のnewlib4.4を構築できません。

newlib-3.1を使用するARMプラットフォーム用の組み込みRTOSシステムを開発中です。
WSL2でnewlib-4.4システム(X86_64用Ubuntu-20.04.6)をサポートしようとしています。

ARMのクロスコンパイラも独自に構築され、arm-none-xoseabinewlib4.4を構築するために次のコマンドを使用して設定および構築します。

../newlib-4.4.0.20231231/configure --target=arm-none-xoseabi --prefix=/home/test/develop/newlib44/build --enable-threads=posix --enable-newlib-multithread --enable-tls --with-multilib-list=aprofile,mprofile

make -j12
checking for arm-none-xoseabi-gcc... arm-none-xoseabi-cc -B/home/test/develop/newlib44/newlib_arm/arm-none-xoseabi/newlib/ -isystem /home/test/develop/newlib44/newlib_arm/arm-none-xoseabi/newlib/targ-include -isystem /home/test/develop/newlib44/newlib-4.4.0.20231231/newlib/libc/include -B/home/test/develop/newlib44/newlib_arm/arm-none-xoseabi/libgloss/arm -L/home/test/develop/newlib44/newlib_arm/arm-none-xoseabi/libgloss/libnosys -L/home/test/develop/newlib44/newlib-4.4.0.20231231/libgloss/arm
checking whether we are cross compiling... yes
checking for suffix of object files... configure: error: in `/home/test/develop/newlib44/newlib_arm/arm-none-xoseabi/newlib':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details
make[1]: *** [Makefile:8448: configure-target-newlib] Error 1
make[1]: Leaving directory '/home/test/develop/newlib44/newlib_arm'
make: *** [Makefile:879: all] Error 2

ここに質問してもいいかわかりませんがnewlib、質問をどこに投稿しなければなりませんか?

ベストアンサー1

おすすめ記事