我正在尝试在Ubuntu 14.04上编译RTEMS。
我在尝试运行时遇到以下错误' make':
全部使用工具/构建
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'
全部使用工具/ 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 for
all-am'。
make [2]:离开目录/home/user/development/rtems/b-sis/tools/cpu'
make[1]: Leaving directory
/ home / user / development / rtems / b-sis / tools / cpu'
全部使用testuites / 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
all-am'。
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]:all-am'.
make[2]: Leaving directory
/ home / user / development / rtems / b-sis / sparc-rtems4.11 / c'没有做任何事情。
全力以赴
make [2]:输入目录/home/user/development/rtems/b-sis/sparc-rtems4.11/c/sis'
make[2]: *** No rule to make target
all'。停止。
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
这是我遵循的步骤列表:
要安装toold,我使用RSB并运行此处列出的所有命令: https://devel.rtems.org/wiki/Developer/Tools/RSB
然后我按照这个命令列表: https://devel.rtems.org/wiki/TBR/UserManual/Quick_Start
在此列表中,我尝试更改PATH变量= /development/rtems/4.11/bin=$PATH
其他这一切都是由我按照此处列出的命令完成的。我也做过./bootstrap -p。
答案 0 :(得分:3)
您需要工具链工具。在编译rtems之前,请遵循source builder tutorial。
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º执行boostrap
$HOME/Repositories/git/rtems/bootstrap
6º转到构建路径并编译&安装
make
make install
请记住,您需要环境变量中的有效工具链路径。
例如:
export PATH=$HOME/development/rtems/4.11/bin:$PATH
如果您不想在每次重新启动时都这样做,请将其添加到〜/ .bashrc文件中。并使用commando源来更新当前的终端环境。
source ~/.bashrc
答案 1 :(得分:0)
问题是它找不到二进制文件。 这可能是因为您尚未将它们添加到PATH环境变量中。 您可以使用(使用设置的bin目录的正确路径)
export PATH=$HOME/development/rtems/compiler/4.12/bin:$PATH