Yocto Bitbake libgold.a failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Yocto Bitbake libgold.a failed

1,713 Views
xiaochuan
Contributor I

Hi

build yocto image but failed when compileng libgold

i ran this command:

bitbake fsl-image-auto

error log:

Build Configuration:
BB_VERSION           = "1.48.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "aarch64-fsl-linux"
MACHINE              = "s32g274ardb2"
DISTRO               = "fsl-auto"
DISTRO_VERSION       = "33.0"
TUNE_FEATURES        = "aarch64 armv8a crc cortexa53 crypto"
TARGET_FPU           = ""
meta                 
meta-poky            
meta-yocto-bsp       = "HEAD:6a751048e50c00261d99c2d8d69534f7a8da38a9"
meta-oe              
meta-multimedia      
meta-python          = "HEAD:f3f7a5f1a4713f145107bb043e0d14cb3a51c62f"
meta-python2         = "HEAD:3fae17aece0e6d82f56965fe501bf7080c671df8"
meta-networking      
meta-gnome           
meta-filesystems     
meta-webserver       
meta-perl            
meta-xfce            = "HEAD:f3f7a5f1a4713f145107bb043e0d14cb3a51c62f"
meta-virtualization  = "HEAD:fa093228c02c4a42da1f9abb77c4c57d70d5a212"
meta-optee           = "HEAD:fb96032b38e3064290ab0891238c92d47a45f151"
meta-security        = "HEAD:3daf99fd138b0eebe864bbe1b9c71241d97c4512"
meta-freescale       = "HEAD:41d4f625c6db7a778f0f9a735c2cb48e023bc49b"
meta-alb             = "HEAD:0b34c281628625665829d1969d86bc179a8c6d96"
/home/hxc/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/binutils/2.35.1-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux/../../libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/10.2.0/ld: /usr/src/debug/binutils/2.35.1-r0/git/build.aarch64-fsl-linux.aarch64-fsl-linux/gold/../../gold/output.h:756: undefined reference to `vtable for gold::Output_section_data'
| /home/hxc/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/binutils/2.35.1-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux/../../libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/10.2.0/ld: /usr/src/debug/binutils/2.35.1-r0/git/build.aarch64-fsl-linux.aarch64-fsl-linux/gold/../../gold/output.h:756: undefined reference to `gold::Output_data::~Output_data()'
| /home/hxc/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/binutils/2.35.1-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux/../../libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/10.2.0/ld: /usr/src/debug/binutils/2.35.1-r0/git/build.aarch64-fsl-linux.aarch64-fsl-linux/gold/../../gold/output.h:756: undefined reference to `vtable for gold::Output_section_data'
| /home/hxc/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/binutils/2.35.1-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux/../../libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/10.2.0/ld: /usr/src/debug/binutils/2.35.1-r0/git/build.aarch64-fsl-linux.aarch64-fsl-linux/gold/../../gold/output.h:756: undefined reference to `vtable for gold::Output_section_data'
| /home/hxc/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/binutils/2.35.1-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux/../../libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/10.2.0/ld: /usr/src/debug/binutils/2.35.1-r0/git/build.aarch64-fsl-linux.aarch64-fsl-linux/gold/../../gold/output.h:756: undefined reference to `gold::Output_data::~Output_data()'
| /home/hxc/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/binutils/2.35.1-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux/../../libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/10.2.0/ld: libgold.a(merge.o):(.data.rel.ro._ZTIN4gold17Output_merge_baseE[_ZTIN4gold17Output_merge_baseE]+0x10): undefined reference to `typeinfo for gold::Output_section_data'
| /home/hxc/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/binutils/2.35.1-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux/../../libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/10.2.0/ld: libgold.a(merge.o):(.data.rel.ro._ZTVN4gold17Output_merge_baseE[_ZTVN4gold17Output_merge_baseE]+0x68): undefined reference to `gold::Output_section_data::do_out_shndx() const'
| /home/hxc/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/binutils/2.35.1-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux/../../libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/10.2.0/ld: libgold.a(merge.o):(.data.rel.ro._ZTVN4gold17Output_merge_dataE[_ZTVN4gold17Output_merge_dataE]+0x68): undefined reference to `gold::Output_section_data::do_out_shndx() const'
| /home/hxc/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/binutils/2.35.1-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux/../../libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/10.2.0/ld: libgold.a(merge.o):(.data.rel.ro._ZTVN4gold19Output_merge_stringIcEE[_ZTVN4gold19Output_merge_stringIcEE]+0x68): undefined reference to `gold::Output_section_data::do_out_shndx() const'
| /home/hxc/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/binutils/2.35.1-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux/../../libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/10.2.0/ld: libgold.a(merge.o):(.data.rel.ro._ZTVN4gold19Output_merge_stringItEE[_ZTVN4gold19Output_merge_stringItEE]+0x68): undefined reference to `gold::Output_section_data::do_out_shndx() const'
| /home/hxc/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/binutils/2.35.1-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux/../../libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/10.2.0/ld: libgold.a(merge.o):(.data.rel.ro._ZTVN4gold19Output_merge_stringIjEE[_ZTVN4gold19Output_merge_stringIjEE]+0x68): undefined reference to `gold::Output_section_data::do_out_shndx() const'
| collect2: error: ld returned 1 exit status
| make[4]: *** [Makefile:1020: ld-new] Error 1
| collect2: error: ld returned 1 exit status
| make[4]: *** [Makefile:1016: incremental-dump] Error 1
| make[4]: Leaving directory '/home/hxc/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/binutils/2.35.1-r0/git/build.aarch64-fsl-linux.aarch64-fsl-linux/gold'
| make[3]: *** [Makefile:1156: all-recursive] Error 1
| make[3]: Leaving directory '/home/hxc/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/binutils/2.35.1-r0/git/build.aarch64-fsl-linux.aarch64-fsl-linux/gold'
| make[2]: *** [Makefile:896: all] Error 2
| make[2]: Leaving directory '/home/hxc/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/binutils/2.35.1-r0/git/build.aarch64-fsl-linux.aarch64-fsl-linux/gold'
| make[1]: *** [Makefile:6120: all-gold] Error 2
| make[1]: Leaving directory '/home/hxc/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/binutils/2.35.1-r0/git/build.aarch64-fsl-linux.aarch64-fsl-linux'
| make: *** [Makefile:854: all] Error 2
| WARNING: exit code 1 from a shell command.
| 
ERROR: Task (/home/hxc/fsl-auto-yocto-bsp/sources/poky/meta/recipes-devtools/binutils/binutils_2.35.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5163 tasks of which 5092 didn't need to be rerun and 1 failed.

 

0 Kudos
Reply
2 Replies

1,688 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

 

Looks like you missed a package in your host:

https://docs.yoctoproject.org/2.4.2/yocto-project-qs/yocto-project-qs.html

 

Regards

 

0 Kudos
Reply

385 Views
reyamendola
Contributor I

Hello,

My apologies for digging up this old message. I am running into a very similar error ("undefined reference to `gold::Output_data::allocated_sizes_are_fixed'"), but on yocto-zeus (3.0). Could you or someone from NXP support let me know which package it is you're referring to?

0 Kudos
Reply