This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux/TMDSEVM572X:生成文件问题

Guru**** 2602845 points
Other Parts Discussed in Thread: MATHLIB

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/650876/linux-tmdsevm572x-make-file-issue

器件型号:TMDSEVM572X
主题中讨论的其他器件:MATHLIB

工具/软件:Linux

在最高层-- ti-processor-sdk-linux-am57xx-evm-04.01.00.06_undedrived --我发布的是不带 args 的 make 命令。 我 已在 rules.make 中导出 TI_RTOS_path=/home/richardbreyer/ti、以创建 IPC 模块。


此错误开箱即用。 正如交付的那样、这个代码不能成功构建包含的模块。

在 makefile 的第759行中、它会进入"failing section ti-IPC-Linux-config":TI-IPC-RTOS-path-check
   @echo =========================================
   @echo    配置 IPC
   @echo =========================================
   sdk_install_path=$(TI_rtos_path_abs);\
   回显$(TI_RTOS_PATH_ABS)\
   echo $(sdk_install_path)\
   源$(TI_PRSDK_PATH)/setupenv.sh;\
   $(ENV_SETUP);\
   CD /home/richardbreyer/ti/ipc_3_46_02_04;\
       配置$${CONFIGING_FLAGS}\
      CC=$${CC}\
      --prefix=/usr \
      platform=$${IPC_platform}\
      kernel_install_DIR=$(LINUXKERNEL_INSTALL_DIR)



这是控制台输出

================================================================
配置 IPC
================================================================
sdk_install_path=/home/richardbreyer/ti;\
回显/home/richardbreyer/ti \
回显/home/richardbreyer/ti \
来源/home/richardbreyer/ti/processor_sdk_rtos_am57xx_4_01_00_06/setupenv.sh;\
/home/richardbreyer/ti-processor-sdk-linux-am57xx-evm-04.01.00.06_uneditied/linux-devkit/environment-setup;\
CD ${IPC_INSTALL_PATH};\
       配置${configure_flags}\
   CC=${CC}\
   --prefix=/usr \
   platform=${IPC_platform}\
   kernel_install_DIR=/home/richardbreyer/ti-processor-sdk-linux-am57xx-evm-04.01.00.06_uneditied/board-support/linux-4.9.41 +gitAUTOINC+e3a80a1c5c-ge3a80a1c5c
/home/richardbreyer/ti echo /home/richardbreyer/ti source /home/richardbreyer/ti/processor_sdk_rtos_am57xx_4_01_00_06/setupenv.sh
正在检查 BSD 兼容的安装... /usr/bin/install -c
正在检查构建环境是否正常... 是的
/home/richardbreyer/ti/ipc_3_46_02_04/linux/build-aux/missing:未知的`-重量轻'选项
请尝试`/home/richardbreyer/ti/ipc_3_46_02_04/linux/build-aux/missing --help'以了解更多信息
配置:警告:"显示"脚本太旧或缺失
正在检查线程安全 mkdir -p... /bin/mkdir -p
正在检查 gawk…… 嘎嘎
正在检查 make 设置是否为$(make)... 是的
正在检查 make 是否支持嵌套变量... 是的
正在检查是否启用 Makefiles 的维护人员特定部分... 否
正在检查构建系统类型... x86_64-未知-Linux
正在检查主机系统类型... x86_64-未知-Linux
正在检查如何打印字符串... printf
正在检查 make 使用的 include 样式... GNU
正在检查 gcc... /home/richardbreyer/ti-processor-sdk-linux-am57xx-evm-04.01.00.06_uneditied/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc
正在检查 C 编译器是否正常工作... 是的
正在检查 C 编译器默认输出文件名... A.输出
正在检查可执行文件的后缀...
正在检查我们是否正在交叉编译... 配置:错误:位于`/home/richardbreyer/ti/ipc_3_46_02_04中:
Configure:错误:无法运行 C 编译的程序。
如果要交叉编译,请使用`--host'。
请参阅`config.log'以了解更多详细信息
Makefile:760:目标"ti-IPC-Linux-config"的配方失败
make:***[ti-ipc-linux-config]错误1.

这是来自 configure 的有问题的代码--第3426行


#提供一些有关编译器的信息。
$AS_ECHO "$AS_ME:${AS_LineNo-$LINENO}:检查 C 编译器版本">&5
设置 X $AC_COMPILEE
ac_compiler=$2
对于-version -v -V -qversion 中的 ac_option;请执行
 {{ac_try="$ac_compiler $ac_option >&5"
实例"(($ac_try"、位于中
 *\"*|*\`*|*\*) ac_try_echo =\$ac_try;
 *) ac_try_echo=$ac_try;;
ESAC
eval ac_try_echo="\"\$as:${as _ LineNo-$LINENO}:$ac_try_echo\"
$AS_ECHO "$AC_TEST_ECHO";}&5
 (Eval "$ac_compiler $ac_option >&5") 2>conftest.err
 AC_STATUS=$?
 如果 test -s conftest.err;那么
   SED '10a\
(笑声) 其余 stderr 输出已删除...
        10q' conftest.err >conftest.er1.
   CAT conftest.er1 >&5
 FI
 rm -f conftest.er1 conftest.err
 $AS_ECHO "$AS_ME:${AS_LineNo-$LINENO}:\$? =$AC_STATUS">&5
 测试$AC_STATUS = 0;}
完成

这是记录的错误

配置:3447:$? = 0
配置:3436:/home/richardbreyer/ti-processor-sdk-linux-am57xx-evm-04.01.00.06_uneditied/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc -V >&5
arm-linux-gnueabihf-gcc:错误:无法识别命令行选项'-V'
arm-linux-gnueabihf-gcc:致命错误:无输入文件
编译已终止。
配置:3447:$? = 1
配置:3436:/home/richardbreyer/ti-processor-sdk-linux-am57xx-evm-04.01.00.06_uneditied/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc -qversion >&5
arm-linux-gnueabihf-gcc:错误:无法识别命令行选项'-qversion';您是指'--version'?
arm-linux-gnueabihf-gcc:致命错误:无输入文件
编译已终止。
配置:3447:$? = 1
配置:3467:检查 C 编译器是否正常工作
配置:3489:/home/richardbreyer/ti-processor-sdk-linux-am57xx-evm-04.01.00.06_uneditied/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc   conftest.c >&5
配置:3493:$? = 0
配置:3541:结果:是
配置:3544:检查 C 编译器默认输出文件名
配置:3546:结果:A.out
配置:3552:检查可执行文件的后缀
配置:3559:/home/richardbreyer/ti-processor-sdk-linux-am57xx-evm-04.01.00.06_uneditied/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc -o conftest   conftest.c >&5
配置:3563:$? = 0
配置:3585:结果:
配置:3607:检查我们是否正在交叉编译
配置:3615:/home/richardbreyer/ti-processor-sdk-linux-am57xx-evm-04.01.00.06_uneditied/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc -o conftest   conftest.c >&5
配置:3619:$? = 0
配置:3626:./conftest
./configure:行3628:./conftest: Cannot execute binary file: Exec format error
配置:3630:$? = 126
配置:3637:错误:在`/home/richardbreyer/ti/ipc_3_46_02_04中:
CONFIGURE:3639:错误:无法运行 C 编译程序。
如果要交叉编译,请使用`--host'。
请参阅`config.log'以了解更多详细信息

显然、它使用所有可想象的选项来发现版本、然后显示为空白。

此错误开箱即用。 正如交付的那样、这个代码不能成功构建包含的模块

是否有权变措施。

以下是元素版本

环境配置:
   limit_SoC               :am571x am572x
   limit_boards             :evmAM572x idkAM571x idkAM572x
   pdk_install_path         :/home/richardbreyer/ti/pdk_am57xx_1_0_8/packages
   C6X_GEN_INSTALL_PATH     :/home/richardbreyer/ti/ti-cgt-c6000_8.1.3
   toolchain_path_gcc       :/home/richardbreyer/ti/gcc-arm-none-eabi-4_9-2015q3
   toolchain_path_a15       :/home/richardbreyer/ti/gcc-arm-none-eabi-4_9-2015q3
   toolchain_path_A8        :/home/richardbreyer/ti/gcc-arm-none-eabi-4_9-2015q3
   toolchain_path_A9        :/home/richardbreyer/ti/gcc-arm-none-eabi-4_9-2015q3
   toolchain_path_M4        :/home/richardbreyer/ti/ti-cgt-arm_16.9.3.LTS
   toolchain_path_arm9      :/home/richardbreyer/ti/ti-cgt-arm_16.9.3.LTS
   toolchain_path_EVE       :/home/richardbreyer/ti/arp32_1.0.8
   CL_PRU_INSTALL_PATH      :/home/richardbreyer/ti/ti-cgt-pru_2.1.5
   FPULIB_PATH              :/home/richardbreyer/ti/gcc-arm-none-eabi-4_9-2015q3/lib/gcc/arm-none-eabi/4.9.3/fpu
   cross_tool_PRFX          :arm-none-eabi-
   XDC_INSTALL_PATH         :/home/richardbreyer/ti/xdctools_3_32_01_22_core
   BIOS_install_path        :/home/richardbreyer/ti/bios_6_46_05_55
   IPC_INSTALL_PATH         :/home/richardbreyer/ti/ipc_3_46_02_04
   EDMA3LLD_BIOS6_INSTALLDIR:/home/richardbreyer/ti/edma3_lld_2_12_05_29
   NDK_INSTALL_PATH         :/home/richardbreyer/ti/ndk_2_25_01_11
   IMGLIB_INSTALL_PATH      :/home/richardbreyer/ti/imglib_c66x_3_1_1_0
   DSPLIB_INSTALL_PATH      :/home/richardbreyer/ti/dsplib_c66x_3_4_0_0
   MATHLIB_INSTALL_PATH     :/home/richardbreyer/ti/mathlib_c66x_3_1_1_0
   UIA_INSTALL_PATH         :/home/richardbreyer/ti/uia_2_00_06_52
IPC_platform:DRA7XX
IPC_ALT_platform:
   PROC_SDK_INSTALL_PATH    :/home/richardbreyer/ti/processor_sdk_rtos_am57xx_4_01_00_06

已配置处理器 SDK 构建环境

这减缓了原本非常成功的发展周期。 请快速响应。