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.

[参考译文] TM4C129ENCPDT:在 TI RTOS 项目中从 Arm 迁移到 GCC 获取 gmakes***错误1.

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1182773/tm4c129encpdt-migration-from-arm-to-gcc-in-ti-rtos-project-getting-gmake-error-1

器件型号:TM4C129ENCPDT

大家好,

我最近已将在 ARM 编译器上编译的旧的基于 TI RTOS 的项目迁移到 GCC 编译器,我正面临 gmaked***错误1,

我使用 gcc 编译器构建了 wolfsl 和 TI RTOS,从旧的 Arm 代码复制了静态库,我在构建项目时不成功,如果有人知道从 ARM 迁移到 GCC 编译器,请提供帮助。

提前感谢

此致  

Chiranth Murthy

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

    您好 Chiranth、

    您能否发布更多详细信息、如特定编译错误的屏幕截图?

    我相信我们没有针对 ARM 到 GCC 编译器的迁移指南。

    此致、

    Ralph Jacobi

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

    您好、Ralph、

    以下是  我遇到的错误  

    #error No or unrecognized network configuration specified
    fatal error: _lock.h: No such file or directory
    fatal error: fatfs/ff.h: No such file or directory
    gmake: *** [main.o] Error 1
    gmake: *** [modules/awsIot/mqtt.o] Error 1
    gmake: *** [modules/awsIot/platform/tirtos/network_sl.o] Error 1
    gmake: *** [modules/awsIot/src/aws_iot_jobs_interface.o] Error 1
    gmake: *** [modules/awsIot/src/aws_iot_mqtt_client_common_internal.o] Error 1
    gmake: *** [modules/awsIot/src/aws_iot_mqtt_client_connect.o] Error 1
    gmake: *** [modules/awsIot/src/aws_iot_mqtt_client_publish.o] Error 1
    gmake: *** [modules/awsIot/src/aws_iot_mqtt_client_subscribe.o] Error 1
    gmake: *** [modules/awsIot/src/aws_iot_mqtt_client_unsubscribe.o] Error 1
    gmake: *** [modules/awsIot/src/aws_iot_mqtt_client_yield.o] Error 1
    gmake: *** [modules/awsIot/src/aws_iot_mqtt_client.o] Error 1
    gmake: *** [modules/awsIot/src/aws_iot_shadow_actions.o] Error 1
    gmake: *** [modules/awsIot/src/aws_iot_shadow_records.o] Error 1
    gmake: *** [modules/awsIot/src/aws_iot_shadow.o] Error 1
    gmake: *** [modules/ cmdReceiveTask/cmdReceiver.o] Error 1
    gmake: *** [modules/httpTask/https.o] Error 1
    gmake: *** [modules/httpTask/httpsProcessor.o] Error 1
    gmake: *** [modules/obdTask/carComm.o] Error 1
    gmake: *** [modules/obdTask/obdInit.o] Error 1
    gmake: *** [modules/pmoCmds/dataRequestPmoCmd.o] Error 1
    gmake: *** [modules/pmoCmds/pmoCommands.o] Error 1
    gmake: *** [modules/serverTask/bleServer.o] Error 1
    gmake: *** [modules/utils/exit.o] Error 1
    gmake: *** [modules/utils/globalFunctions.o] Error 1
    gmake: *** [modules/utils/MX25FatFS.o] Error 1
    gmake: *** [modules/utils/test.o] Error 1
    gmake: *** [modules/utils/utility.o] Error 1
    gmake: Target 'all' not remade because of errors.
    recipe for target 'main.o' failed
    recipe for target 'modules/awsIot/mqtt.o' failed
    recipe for target 'modules/awsIot/platform/tirtos/network_sl.o' failed
    recipe for target 'modules/awsIot/src/aws_iot_jobs_interface.o' failed
    recipe for target 'modules/awsIot/src/aws_iot_mqtt_client_common_internal.o' failed
    recipe for target 'modules/awsIot/src/aws_iot_mqtt_client_connect.o' failed
    recipe for target 'modules/awsIot/src/aws_iot_mqtt_client_publish.o' failed
    recipe for target 'modules/awsIot/src/aws_iot_mqtt_client_subscribe.o' failed
    recipe for target 'modules/awsIot/src/aws_iot_mqtt_client_unsubscribe.o' failed
    recipe for target 'modules/awsIot/src/aws_iot_mqtt_client_yield.o' failed
    recipe for target 'modules/awsIot/src/aws_iot_mqtt_client.o' failed
    recipe for target 'modules/awsIot/src/aws_iot_shadow_actions.o' failed
    recipe for target 'modules/awsIot/src/aws_iot_shadow_records.o' failed
    recipe for target 'modules/awsIot/src/aws_iot_shadow.o' failed
    recipe for target 'modules/ cmdReceiveTask/cmdReceiver.o' failed
    recipe for target 'modules/httpTask/https.o' failed
    recipe for target 'modules/httpTask/httpsProcessor.o' failed
    recipe for target 'modules/obdTask/carComm.o' failed
    recipe for target 'modules/obdTask/obdInit.o' failed
    recipe for target 'modules/pmoCmds/dataRequestPmoCmd.o' failed
    recipe for target 'modules/pmoCmds/pmoCommands.o' failed
    recipe for target 'modules/serverTask/bleServer.o' failed
    recipe for target 'modules/utils/exit.o' failed
    recipe for target 'modules/utils/globalFunctions.o' failed
    recipe for target 'modules/utils/MX25FatFS.o' failed
    recipe for target 'modules/utils/test.o' failed
    recipe for target 'modules/utils/utility.o' failed
    storage size of 'tv' isn't known

    此致

    线性调频脉冲

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

    您好 Chiranth、

    根据我可以告诉它的外观、文件和/或库未正确链接、因为问题似乎是由编译器未看到某些文件引起的。 但是、我不是 GCC 专家。 您可能还需要查找错误1的含义、但我首先要解决未找到这些文件的_lock.h 和 fatfs/ff.h 错误。

    此致、

    Ralph Jacobi

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

    您好,Ralph,

    我已恢复错误仍然存在这些错误、

    redefinition of 'g_sesSleepSecs'
    redefinition of 'g_defaultUrlPrefix'
    redefinition of 'g_defaultSw'
    redefinition of 'g_defaultHw'
    redefinition of 'g_defaultHostName'
    redefinition of 'g_defaultHistShortInterval'
    redefinition of 'g_defaultHistShipInterval'
    redefinition of 'g_defaultHistPosInterval'
    redefinition of 'g_defaultHistLongInterval'
    redefinition of 'g_commsType'
    redefinition of 'g_comms'
    redefinition of 'g_cmdSleepSecs'
    recipe for target 'modules/utils/utility.o' failed
    recipe for target 'modules/utils/globalFunctions.o' failed
    recipe for target 'modules/obdTask/carComm.o' failed
    recipe for target 'modules/main.o' failed
    recipe for target 'modules/httpTask/httpsProcessor.o' failed
    recipe for target 'modules/awsIot/src/aws_iot_shadow_records.o' failed
    recipe for target 'modules/awsIot/src/aws_iot_mqtt_client_connect.o' failed
    recipe for target 'modules/awsIot/src/aws_iot_mqtt_client_common_internal.o' failed
    recipe for target 'modules/awsIot/src/aws_iot_jobs_interface.o' failed
    recipe for target 'modules/awsIot/platform/tirtos/network_sl.o' failed
    recipe for target 'modules/awsIot/mqtt.o' failed
    macro names must be identifiers
    incompatible types when initializing type 'IoT_Error_t' using type 'char *'
    gmake: Target 'all' not remade because of errors.
    gmake: *** [modules/utils/utility.o] Error 1
    gmake: *** [modules/utils/globalFunctions.o] Error 1
    gmake: *** [modules/obdTask/carComm.o] Error 1
    gmake: *** [modules/main.o] Error 1
    gmake: *** [modules/httpTask/httpsProcessor.o] Error 1
    gmake: *** [modules/awsIot/src/aws_iot_shadow_records.o] Error 1
    gmake: *** [modules/awsIot/src/aws_iot_mqtt_client_connect.o] Error 1
    gmake: *** [modules/awsIot/src/aws_iot_mqtt_client_common_internal.o] Error 1
    gmake: *** [modules/awsIot/src/aws_iot_jobs_interface.o] Error 1
    gmake: *** [modules/awsIot/platform/tirtos/network_sl.o] Error 1
    gmake: *** [modules/awsIot/mqtt.o] Error 1
    expected declaration specifiers or '...' before '(' token
    expected declaration specifiers or '...' before '(' token
    conflicting types for 'SetDLData'
    conflicting types for 'pmoInit'
    conflicting types for 'getGpsLatLongMark2'

    您能不能向我推荐我遗漏的内容?

    提前感谢

    Chiranth

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

    您好 Chiranth、

    我不熟悉列出的定义、因此我怀疑它们是您的项目所独有的本地文件。 根据错误、我想您现在包含了多个具有相同定义的文件。 但是、由于这些与 TivaWare 无关、我没有更好的指导。

    此致、

    Ralph Jacobi