AnsweredAssumed Answered

How to include Toolchain in rootfs and Configure Eclipse to compile Aplication code for LS1012a

Question asked by Minal Nemade on Jun 20, 2018
Latest reply on Jun 24, 2018 by Yiping Wang

I am using LS1012a FRDM Board.

 

1 How to configure Eclipse to compile application code for target board(LS1012a FRDM, ARM64)
2 want to include tool chain in rootfs file system. So I follwed following steps

 

    a. Edit fsl-image-core.bb
    b. Add packagegroup-core-buildessential in the IMAGE_INSTALL
        IMAGE_INSTALL_append = " \
            packagegroup-fsl-tools-core \
            packagegroup-fsl-benchmark-core \
            packagegroup-fsl-networking-core \
            packagegroup-core-buildessential \
        "
    c. bitbake fsl-image-core.bb
    d. bitbake error as follows

 

| make[2]: *** [all] Error 2
| make[2]: Leaving directory `/home/nntechsol/source/yacto/QorIQ-SDK-V2.0-20160527-yocto/build_ls1012afrdm/tmp/work/aarch64-fsl-linux/binutils/linaro-2.25-r2015.01/binutils-linaro-2.25.0-2015.01-2/build.aarch64-fsl-linux.aarch64-fsl-linux/gold'
| make[1]: *** [all-gold] Error 2
| make[1]: Leaving directory `/home/nntechsol/source/yacto/QorIQ-SDK-V2.0-20160527-yocto/build_ls1012afrdm/tmp/work/aarch64-fsl-linux/binutils/linaro-2.25-r2015.01/binutils-linaro-2.25.0-2015.01-2/build.aarch64-fsl-linux.aarch64-fsl-linux'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /home/nntechsol/source/yacto/QorIQ-SDK-V2.0-20160527-yocto/build_ls1012afrdm/tmp/work/aarch64-fsl-linux/binutils/linaro-2.25-r2015.01/temp/log.do_compile.2949)
ERROR: Task 1715 (/home/nntechsol/source/yacto/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/binutils/binutils_linaro-2.25.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3594 tasks of which 3586 didn't need to be rerun and 2 failed.
Waiting for 0 running tasks to finish:

 

Summary: 2 tasks failed:
  /home/nntechsol/source/yacto/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/gcc/gcc_linaro-4.9.bb, do_compile
  /home/nntechsol/source/yacto/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/binutils/binutils_linaro-2.25.bb, do_compile

 

 

 

 

 

-linaro-2.25.0-2015.01-2/gold/script-sections.cc:4027: undefined reference to `gold::Layout::get_allocated_sections(std::vector<gold::Output_section*, std::allocator<gold::Output_section*> >*) const'
| libgold.a(script-sections.o): In function `gold::Phdrs_element::create_segment(gold::Layout*)':
| /home/nntechsol/source/yacto/QorIQ-SDK-V2.0-20160527-yocto/build_ls1012afrdm/tmp/work/aarch64-fsl-linux/binutils/linaro-2.25-r2015.01/binutils-linaro-2.25.0-2015.01-2/gold/script-sections.cc:3015: undefined reference to `gold::Layout::make_output_segment(unsigned int, unsigned int)'
| libgold.a(script-sections.o): In function `gold::Script_sections::attach_sections_using_phdrs_clause(gold::Layout*)':
| /home/nntechsol/source/yacto/QorIQ-SDK-V2.0-20160527-yocto/build_ls1012afrdm/tmp/work/aarch64-fsl-linux/binutils/linaro-2.25-r2015.01/binutils-linaro-2.25.0-2015.01-2/gold/script-sections.cc:4104: undefined reference to `gold::Layout::section_flags_to_segment(unsigned long)'
| libgold.a(script-sections.o): In function `gold::Script_sections::create_segments(gold::Layout*, unsigned long)':
| /home/nntechsol/source/yacto/QorIQ-SDK-V2.0-20160527-yocto/build_ls1012afrdm/tmp/work/aarch64-fsl-linux/binutils/linaro-2.25-r2015.01/binutils-linaro-2.25.0-2015.01-2/gold/script-sections.cc:3777: undefined reference to `gold::Layout::get_allocated_sections(std::vector<gold::Output_section*, std::allocator<gold::Output_section*> >*) const'
| /home/nntechsol/source/yacto/QorIQ-SDK-V2.0-20160527-yocto/build_ls1012afrdm/tmp/work/aarch64-fsl-linux/binutils/linaro-2.25-r2015.01/binutils-linaro-2.25.0-2015.01-2/gold/script-sections.cc:3841: undefined reference to `gold::Layout::section_flags_to_segment(unsigned long)'
| /home/nntechsol/source/yacto/QorIQ-SDK-V2.0-20160527-yocto/build_ls1012afrdm/tmp/work/aarch64-fsl-linux/binutils/linaro-2.25-r2015.01/binutils-linaro-2.25.0-2015.01-2/gold/script-sections.cc:3846: undefined reference to `gold::Layout::make_output_segment(unsigned int, unsigned int)'
| /home/nntechsol/source/yacto/QorIQ-SDK-V2.0-20160527-yocto/build_ls1012afrdm/tmp/work/aarch64-fsl-linux/binutils/linaro-2.25-r2015.01/binutils-linaro-2.25.0-2015.01-2/gold/script-sections.cc:3918: undefined reference to `gold::Layout::make_output_segment(unsigned int, unsigned int)'
| collect2: error: ld returned 1 exit status
| collect2: error: ld returned 1 exit status
| make[4]: *** [ld-new] Error 1
| make[4]: *** Waiting for unfinished jobs....
| make[4]: *** [incremental-dump] Error 1
| make[4]: Leaving directory `/home/nntechsol/source/yacto/QorIQ-SDK-V2.0-20160527-yocto/build_ls1012afrdm/tmp/work/aarch64-fsl-linux/binutils/linaro-2.25-r2015.01/binutils-linaro-2.25.0-2015.01-2/build.aarch64-fsl-linux.aarch64-fsl-linux/gold'
| make[3]: *** [all-recursive] Error 1
| make[3]: Leaving directory `/home/nntechsol/source/yacto/QorIQ-SDK-V2.0-20160527-yocto/build_ls1012afrdm/tmp/work/aarch64-fsl-linux/binutils/linaro-2.25-r2015.01/binutils-linaro-2.25.0-2015.01-2/build.aarch64-fsl-linux.aarch64-fsl-linux/gold'
| make[2]: *** [all] Error 2
| make[2]: Leaving directory `/home/nntechsol/source/yacto/QorIQ-SDK-V2.0-20160527-yocto/build_ls1012afrdm/tmp/work/aarch64-fsl-linux/binutils/linaro-2.25-r2015.01/binutils-linaro-2.25.0-2015.01-2/build.aarch64-fsl-linux.aarch64-fsl-linux/gold'
| make[1]: *** [all-gold] Error 2
| make[1]: Leaving directory `/home/nntechsol/source/yacto/QorIQ-SDK-V2.0-20160527-yocto/build_ls1012afrdm/tmp/work/aarch64-fsl-linux/binutils/linaro-2.25-r2015.01/binutils-linaro-2.25.0-2015.01-2/build.aarch64-fsl-linux.aarch64-fsl-linux'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /home/nntechsol/source/yacto/QorIQ-SDK-V2.0-20160527-yocto/build_ls1012afrdm/tmp/work/aarch64-fsl-linux/binutils/linaro-2.25-r2015.01/temp/log.do_compile.4467)
ERROR: Task 1663 (/home/nntechsol/source/yacto/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/binutils/binutils_linaro-2.25.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3594 tasks of which 3586 didn't need to be rerun and 2 failed.
Waiting for 0 running tasks to finish:

 

So Please suggest the proper method to include toolchain in rootfs.

Outcomes