我正在开发一个ARM平台的嵌入式RTOS系统,它使用newlib-3.1。
现在我尝试在 WSL2 中支持 newlib-4.4 系统(Ubuntu-20.04.6 for X86_64)。
ARM的交叉编译器也是自建的,arm-none-xoseabi
.为了构建 newlib4.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
这里提问,如果不能,我应该在哪里发布问题?