vram_functions.o: in function `rtc_init_language_struct': nvram_functions.c:(.text+0x4a28): undefined reference to `__ctype_ptr__'

huangapple go评论59阅读模式
英文:

vram_functions.o: in function `rtc_init_language_struct': nvram_functions.c:(.text+0x4a28): undefined reference to `__ctype_ptr__'

问题

I am working with arm-none-eabi-gcc on Ubuntu 20.04 version.
我的工作环境是在Ubuntu 20.04版本上使用arm-none-eabi-gcc。

My code repo already contains arm tools, but those are 2012 tools.
我的代码仓库已经包含了arm工具,但是这些是2012年的工具。

When I did make(the file which contains compile commands), I got the arm-none-eabi-gcc not found error.
当我运行make(包含编译命令的文件)时,出现了arm-none-eabi-gcc找不到的错误。

Resolved this error by downloading the latest arm tools and replacing tool files.
通过下载最新版本的arm工具并替换工具文件来解决了这个错误。

Later got an undefined reference for the '__exit' error, which I resolved by checking the post at https://stackoverflow.com/questions/19419782/exit-c-text0x18-undefined-reference-to-exit-when-using-arm-none-eabi-gcc
后来出现了'__exit'错误的未定义引用,我通过查看https://stackoverflow.com/questions/19419782/exit-c-text0x18-undefined-reference-to-exit-when-using-arm-none-eabi-gcc上的帖子解决了这个问题。

Currently am facing a new error
目前我遇到了一个新的错误

tools/arm-2012.09/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: ../Debug/obj/nvram_functions.o: in function 'rtc_init_language_struct':
tools/arm-2012.09/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: ../Debug/obj/nvram_functions.o: 在函数 'rtc_init_language_struct' 中:
nvram_functions.c:(.text+0x4a28): undefined reference to 'ctype_ptr'
nvram_functions.c:(.text+0x4a28): 对 'ctype_ptr' 的未定义引用
collect2: error: ld returned 1 exit status
collect2: 错误: ld 返回 1 退出状态
make[1]: *** [makefile:299: elf] Error 1

Please help me resolve this issue. Unable to find a solution in other posts
请帮助我解决这个问题。在其他帖子中找不到解决方法。

英文:

I am working with arm-none-eabi-gcc on Ubuntu 20.04 version.
My code repo already contains arm tools, but those are 2012 tools.
When I did make(the file which contains compile commands), I got the arm-none-eabi-gcc not found error.
Resolved this error by downloading the latest arm tools and replacing tool files.
Later got an undefined reference for the '__exit' error, which I resolved by checking the post at https://stackoverflow.com/questions/19419782/exit-c-text0x18-undefined-reference-to-exit-when-using-arm-none-eabi-gcc
Currently am facing a new error

tools/arm-2012.09/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: ../Debug/obj/nvram_functions.o: in function rtc_init_language_struct':
nvram_functions.c:(.text+0x4a28): undefined reference to
ctype_ptr'
collect2: error: ld returned 1 exit status
make[1]: *** [makefile:299: elf] Error 1

Please help me resolve this issue. Unable to find a solution in other posts

答案1

得分: 1

Compilers and their support libraries tend to come in pairs - I wouldn't expect this to work if you just replaced the compiler binary but not the support libraries.

Compiled binaries built with one compiler version, or linked against a specific C library binary, are not guaranteed to be compatible with those compiled with a different version of the same compiler or C library.

英文:

Compilers and their support libraries tend to come in pairs - I wouldn't expect this to work if you just replaced the compiler binary but not the support libraries.

Compiled binaries built with one compiler version, or linked against a specific C library binary, are not guaranteed to be compatible with those compiled with a different version of the same compiler or C library.

huangapple
  • 本文由 发表于 2023年5月25日 20:11:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/76332140.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定