1

我正在尝试在 Ubuntu 14.04 上编译 RTEMS。

尝试运行“make”时出现以下错误:

make all in tools/build make[1]: 进入目录/home/user/development/rtems/b-sis/tools/build' make all-am make[2]: Entering directory/home/user/development/rtems/b-sis/tools/build' make[2]: 离开目录/home/user/development/rtems/b-sis/tools/build' make[1]: Leaving directory/home/user/development/rtems/b-sis/ tools/build' make all in tools/cpu make[1]: 进入目录/home/user/development/rtems/b-sis/tools/cpu' Making all in generic make[2]: Entering directory/home/user/development/rtems/b-sis/tools/cpu/generic' make[2]: 无事可做all'. make[2]: Leaving directory/home/user /development/rtems/b-sis/tools/cpu/generic'make[2]:进入目录/home/user/development/rtems/b-sis/tools/cpu' make[2]: Nothing to be done forall-am'。make[2]: 离开目录/home/user/development/rtems/b-sis/tools/cpu' make[1]: Leaving directory/home/user/development/rtems/b-sis/tools/cpu' 全部在testsuites/tools make[1]: 进入目录/home/user/development/rtems/b-sis/testsuites/tools' Making all in generic make[2]: Entering directory/home/user/development/rtems/b-sis/ testsuites/tools/generic'make[2]:all'. make[2]: Leaving directory/home/user/development/rtems/b-sis/testsuites/tools/generic'make[2]:进入目录/home/user/development/rtems/b-sis/testsuites/tools' make[2]: Nothing to be done for全是'。make[2]: 离开目录/home/user/development/rtems/b-sis/testsuites/tools' make[1]: Leaving directory/home/user/development/rtems/b-sis/testsuites/tools' 全部在 sparc-rtems4.11/c make[1]: 进入目录/home/user/development/rtems/b-sis/sparc-rtems4.11/c' Making all in . make[2]: Entering directory/home/user/development/rtems/ b-sis/sparc-rtems4.11/c' make[2]: Nothing to be done for all-am'. make[2]: Leaving directory/home/user/development/rtems/b-sis/sparc-rtems4.11/c' make all in sis make[2 ]:进入目录/home/user/development/rtems/b-sis/sparc-rtems4.11/c/sis' make[2]: *** No rule to make targetall'。停止。make[2]: 离开目录/home/user/development/rtems/b-sis/sparc-rtems4.11/c/sis' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/user/development/rtems/b-sis/sparc-rtems4.11/c' make: *** [all-recursive] 错误 1

这是我遵循的步骤列表:

  1. 要安装工具,我使用 RSB 并运行此处列出的所有命令: https ://devel.rtems.org/wiki/Developer/Tools/RSB

  2. 然后我遵循了这个命令列表: https ://devel.rtems.org/wiki/TBR/UserManual/Quick_Start

在此列表中,我尝试更改 PATH 变量 = /development/rtems/4.11/bin=$PATH

除此之外,这一切都是由我按照此处列出的命令完成的。我也做了 ./bootstrap -p 。

4

2 回答 2

3

您需要工具链工具。在编译 rtem 之前遵循源代码构建器教程。

1º 克隆工具

git clone git://git.rtems.org/rtems-source-builder.git

2º检查环境

${PATH-rtems-source-builder}/source-builder/sb-check

你必须得到:

RTEMS Source Builder - Check, 4.11 (6b0d76cc9b43 modified)
Environment is ok

如果没有,你需要更多的依赖。

3º 检查您想要的目标拱门:

cd ${PATH-rtems-source-builder}/rtems
../source-builder/sb-set-builder --list-bsets
${PATH-rtems-source-builder}/source-builder/sb-set-builder --log=l-sparc.txt --prefix=$HOME/development/rtems/4.11  4.11/rtems-sparc

您需要留在 ${PATH-rtems-source-builder}/rtems 路径中,否则列表将不完整!

4º 配置

EXECUTABLE=$HOME/Repositories/git/rtems
TARGET=sparc-rtems4.11
PREFIX=${HOME}/opt/rtems
${EXECUTABLE}/configure --target=${TARGET} --enable-rtemsbsp=sis --enable-tests=samples --prefix=${PREFIX} 

5º 执行自举

$HOME/Repositories/git/rtems/bootstrap

6º转到您的构建路径并编译和安装

make
make install

请记住,您的环境变量中需要有效的工具链路径。

例如:

export PATH=$HOME/development/rtems/4.11/bin:$PATH

如果您不想每次重新启动时都这样做,请将其添加到 ~/.bashrc 文件中。并使用 commando source 更新当前终端环境。

source ~/.bashrc
于 2016-03-23T12:08:02.183 回答
0

问题是它找不到二进制文件。这可能是因为您没有将它们添加到 PATH 环境变量中。你可以这样做(使用正确的路径到你的设置的 bin 目录)

export PATH=$HOME/development/rtems/compiler/4.12/bin:$PATH
于 2016-03-29T15:27:18.997 回答