Yocto 编译错误ERROR: Task (/home/book/Yocto_imx-4.9.88/Yocto/sources/poky/meta/recipes-devtools/binutils/binutils_2.29.1.bb:do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 2538 tasks of which 2536 didn't need to be rerun and 1 failed.


| libgold.a(output.o): In function `long long gold::Output_section::add_input_section<64, false>(gold::Layout*, gold::Sized_relobj_file<64, false>*, unsigned int, char const*, elfcpp::Shdr<64, false> const&, unsigned int, bool)':

| /usr/src/debug/binutils/2.29.1-r0/git/gold/output.cc:2501: undefined reference to `.LC55'

| libgold.a(output.o):/usr/src/debug/binutils/2.29.1-r0/git/gold/output.cc:2501: more undefined references to `.LC55' follow

| collect2: error: ld returned 1 exit status

| Makefile:810: recipe for target 'ld-new' failed

| make[4]: *** [ld-new] Error 1

| make[4]: Leaving directory '/home/book/Yocto_imx-4.9.88/Yocto/build-linux-fb/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/binutils/2.29.1-r0/git/build.arm-poky-linux-gnueabi.arm-poky-linux-gnueabi/gold'

| Makefile:941: recipe for target 'all-recursive' failed

| make[3]: *** [all-recursive] Error 1

| make[3]: Leaving directory '/home/book/Yocto_imx-4.9.88/Yocto/build-linux-fb/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/binutils/2.29.1-r0/git/build.arm-poky-linux-gnueabi.arm-poky-linux-gnueabi/gold'

| Makefile:692: recipe for target 'all' failed

| make[2]: *** [all] Error 2

| make[2]: Leaving directory '/home/book/Yocto_imx-4.9.88/Yocto/build-linux-fb/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/binutils/2.29.1-r0/git/build.arm-poky-linux-gnueabi.arm-poky-linux-gnueabi/gold'

| Makefile:6044: recipe for target 'all-gold' failed

| make[1]: *** [all-gold] Error 2

| make[1]: Leaving directory '/home/book/Yocto_imx-4.9.88/Yocto/build-linux-fb/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/binutils/2.29.1-r0/git/build.arm-poky-linux-gnueabi.arm-poky-linux-gnueabi'

| Makefile:849: recipe for target 'all' failed

| make: *** [all] Error 2

| ERROR: oe_runmake failed

| WARNING: exit code 1 from a shell command.

| ERROR: Function failed: do_compile (log file is located at /home/book/Yocto_imx-4.9.88/Yocto/build-linux-fb/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/binutils/2.29.1-r0/temp/log.do_compile.84014)

ERROR: Task (/home/book/Yocto_imx-4.9.88/Yocto/sources/poky/meta/recipes-devtools/binutils/binutils_2.29.1.bb:do_compile) failed with exit code '1'

NOTE: Tasks Summary: Attempted 2538 tasks of which 2536 didn't need to be rerun and 1 failed.


Summary: 1 task failed:

  /home/book/Yocto_imx-4.9.88/Yocto/sources/poky/meta/recipes-devtools/binutils/binutils_2.29.1.bb:do_compile

Summary: There was 1 WARNING message shown.

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

book@100ask:~/Yocto_imx-4.9.88/Yocto/build-linux-fb$


请先 登录 后评论

1 个回答

韦东山 - 百问网技术总监
擅长:嵌入式开发

我还没深入研究yocto,我们的文档是走通了。

这类问题要贴出第一个错误,第一个错误是这个吗?

/usr/src/debug/binutils/2.29.1-r0/git/gold/output.cc:2501: undefined reference to `.LC55'


是的话,就执行:grep "\.LC55"  * -nr

看看它所在的文件为何没被编译

请先 登录 后评论
  • 2 关注
  • 0 收藏,3211 浏览
  • golden1777 提出于 2020-03-27 15:33

相似问题