newlib build在目录中失败:arm-none-eabi / libgloss / arm

时间:2017-11-20 14:15:03

标签: newlib

在构建一组ARM工具的过程中。我之前已经多次使用过这些步骤。我在" newlib-2.5.0.20170922"中尝试过相同的configure / make。和" newlib-2.5.0.20170922"目录。仍然得到错误。我也尝试过我的步骤作为超级用户。没变。在过去的建筑中,Newlib一直是个问题。有人可以帮忙吗?

tar -xf newlib-2.5.0.20170922.tar.gz

cd newlib-2.5.0.20170922.armbuild

../newlib-2.5.0.20170922/configure --target=arm-none-eabi --prefix=/usr/local --enable-interwork --enable-multilib --with-gnu-as --with-gnu-ld --disable-nls --disable-werror
make

构建会持续很长时间,直到出现以下错误。我只检查了两个目录" cpu_init"和" semihv2m"。

$ pwd
/usr/local/src/newlib/newlib-2.5.0.20170922.armbuild/arm-none-eabi/libgloss
$ ls
config.log        librdimon.a        rdimon-ftruncate.o  redboot-syscalls.o
config.status     librdpmon.a        rdimon-_kill.o      semihv2m
cpu-init          linux-crt0.o       rdimon-libcfunc.o   syscalls.o
_exit.o           linux-syscalls0.o  rdimon-syscalls.o   trap.o
ftruncate.o       linux-syscalls1.o  rdimon-trap.o       truncate.o
_kill.o           Makefile           rdimon-truncate.o
libcfunc.o        rdimon-crt0.o      rdpmon-crt0.o
libgloss-linux.a  rdimon-_exit.o     redboot-crt0.o

$ ls -l cpu-init
total 8
-rw-rw-r-- 1 ron ron 3718 Nov 20 06:05 Makefile
-rw-rw-r-- 1 ron ron  536 Nov 20 06:05 rdimon-aem.o

$ ls -l semihv2m
config.log  config.status  Makefile
$ ls -l semihv2m
total 40
-rw-rw-r-- 1 ron ron   393 Nov 20 06:05 config.log
-rwxrwxr-x 1 ron ron 32936 Nov 20 06:05 config.status
-rw-rw-r-- 1 ron ron     0 Nov 20 06:05 Makefile

$ cat semihv2m/config.log
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.68.  Invocation command line was

CONFIG_FILES    = 
CONFIG_HEADERS  = 
CONFIG_LINKS    = 
CONFIG_COMMANDS = 
$ config.status

config.status:805: error: cannot find input file: `cpu-init/Makefile.in'

输出结束:

config.status: error: cannot find input file: `cpu-init/Makefile.in'
sed: can't read Makefile: No such file or directory
make[6]: Entering directory '/usr/local/src/newlib/newlib-  2.5.0.20170922.armbuild/arm-none-eabi/libgloss/arm/semihv2m'
make[6]: *** No rule to make target 'all'.  Stop.
make[6]: Leaving directory '/usr/local/src/newlib/newlib-2.5.0.20170922.armbuild/arm-none-eabi/libgloss/arm/semihv2m'
make[5]: *** [../../../../newlib-2.5.0.20170922/libgloss/arm/../multi-build.in:6: multi-do] Error 1
make[5]: Leaving directory '/usr/local/src/newlib/newlib-2.5.0.20170922.armbuild/arm-none-eabi/libgloss/arm'
make[4]: *** [Makefile:214: all-multi] Error 2
make[4]: Leaving directory '/usr/local/src/newlib/newlib-2.5.0.20170922.armbuild/arm-none-eabi/libgloss/arm'
make[3]: *** [Makefile:144: all] Error 2
make[3]: Leaving directory '/usr/local/src/newlib/newlib-2.5.0.20170922.armbuild/arm-none-eabi/libgloss/arm'
make[2]: *** [Makefile:132: stmp-bsp] Error 2
make[2]: Leaving directory '/usr/local/src/newlib/newlib-2.5.0.20170922.armbuild/arm-none-eabi/libgloss'
make[1]: *** [Makefile:9528: all-target-libgloss] Error 2
make[1]: Leaving directory '/usr/local/src/newlib/newlib-2.5.0.20170922.armbuild'
make: *** [Makefile:879: all] Error 2

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题。

似乎已在git repository的最新版本中解决。

相关问题