Undefined reference to '__init_array_end' and '__init_array_start'
Hello,
I am trying to bitbake the packages from the 'meta-ti' layer. As I am using DMAI in my application, I just bitbake 'ti-dmai' and it will also build all its dependencies. At some package, the build fails at the linking stage. Depending on the versions of these packages, it's always another package that fails to link but always with the same error:
--------------------
... libc_nonshared.a(elf-init.oS): In function '__libc_csu_init':.../elf-init.c:123: undefined reference to '__init_array_end' .../elf-init.c:123: undefined reference to '__init_array_start'
.../ld <file>: hidden symbol '__init_array_end' isn't defined
../ld: final link failed: Nonrepresentable section on output
--------------------
The complete log of this error is attached as 'error.txt'.
Somehow these symbols cannot be resolved during linking. Somethings probably missing.
--> How can I resolve this problem?
Some more information:
The standard versions (see standard.txt) of the TI packages that come with OE can be built successfully, but the performance in my application is bad.
Before that, I used the TI stuff from their DVSDK. Performance was good with that. So I modified the recipes, to get those versions (see dvsdk-4_01.txt) in OE and check performance again. All packages except DMAI built fine, but when it came to building the example applications of DMAI, it failed with the above error. As my application is similar to these examples, it will probably also fail to build.
Recently, there was DVSDK v4.03 released. It was updated to 2.6.37 kernel along with some packages. Tried to get those versions (see dvsdk-4_03.txt) into OE but the error appeared much earlier this time. Something is definetly not right here.
We use OE with Angstrom distribution v2012.05, eglibc 2.12 and Linux kernel 2.6.37. Maybe these don't match together quite well... ?
I hope, someone can help. It'll be much appreciated.
Kind regards,
Andreas
biosutils_1_02_02cgt6x_6_1_14
codec-engine_2_26_01_09
codecs-omap3530_4_00_00_00dmai_2_20_00_14dspbios_5_41_03_17dsplink_1_65_00_02edma3lld_01_11_00_03
framework-components_2_25_03_07linuxutils_2_25_05_11
local-power-manager_1_24_02_09xdais_6_26_00_02xdctools_3_16_03_36
biosutils_1_02_02cgt6x_6_1_14
codec-engine_2_26_02_11
codecs-omap3530_4_02_00_00dmai_2_20_00_15dspbios_5_41_03_17dsplink_1_65_01_05_engedma3lld_01_11_02_05
framework-components_2_26_00_01linuxutils_2_26_02_05
local-power-manager_1_24_03_10_engxdais_6_26_01_03xdctools_3_16_03_36
make -C /home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/kernel M=/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/work/taoboard-angstrom-linux-gnueabi/ti-local-power-manager-1_1_24_03_11-r121e/local_power_manager_linux_1_24_03_11/packages/ti/bios/power/modules/omap3530/lpm ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- clean
make[1]: Entering directory `/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/kernel'
make[1]: Leaving directory `/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/kernel'
rm -f modules.order
rm -f Module.symvers
cat /home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/export/BIN/Linux/OMAP3530/RELEASE/Module.symvers >> Module.symvers
make -C /home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/kernel M=/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/work/taoboard-angstrom-linux-gnueabi/ti-local-power-manager-1_1_24_03_11-r121e/local_power_manager_linux_1_24_03_11/packages/ti/bios/power/modules/omap3530/lpm ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- \
EXTRA_CFLAGS="-DUSE_UDEV -DOS_LINUX -DLINUX_KERNEL -DOS_LINUX -DMAX_DSPS=1 -DMAX_PROCESSORS=2 -DID_GPP=1 -DOMAP3530 -DPROC_COMPONENT -DPOOL_COMPONENT -DNOTIFY_COMPONENT -DMPCS_COMPONENT -DRINGIO_COMPONENT -DMPLIST_COMPONENT -DMSGQ_COMPONENT -DMSGQ_ZCPY_LINK -DCHNL_COMPONENT -DCHNL_ZCPY_LINK -DZCPY_LINK -DKFILE_DEFAULT -DOMAP3530 -DOMAP3530_PHYINTERFACE=SHMEM_INTERFACE -DGPP_SWI_MODE -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/inc -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/inc/usr -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/inc/sys -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/inc/sys/arch -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/inc/sys/arch/OMAP3530 -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/inc/sys/arch/OMAP3530/Linux -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/inc/sys/Linux -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/inc/sys/Linux/2.6.18 -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/gen -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/gen/Linux -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/gen/Linux/2.6.18 -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/osal -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/osal/Linux -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/osal/Linux/2.6.18 -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/pmgr -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/pmgr/Linux -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/pmgr/Linux/2.6.18 -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/api -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/api/Linux -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/api/Linux/2.6.18 -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/ldrv -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/ldrv/Linux -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/ldrv/Linux/2.6.18 -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/ldrv/DRV -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/ldrv/DATA -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/ldrv/MPCS -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/ldrv/MPLIST -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/ldrv/MQT -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/ldrv/IPS -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/ldrv/SMM -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/ldrv/RINGIO -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/src/ldrv/POOLS -I/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/share/ti/ti-dsplink-tree/dsplink/gpp/export/INCLUDE/Linux/OMAP3530/internal" modules
make[1]: Entering directory `/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/kernel'
CC [M] /home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/work/taoboard-angstrom-linux-gnueabi/ti-local-power-manager-1_1_24_03_11-r121e/local_power_manager_linux_1_24_03_11/packages/ti/bios/power/modules/omap3530/lpm/lpm_driver.o CC [M] /home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/work/taoboard-angstrom-linux-gnueabi/ti-local-power-manager-1_1_24_03_11-r121e/local_power_manager_linux_1_24_03_11/packages/ti/bios/power/modules/omap3530/lpm/lpm_omap.o CC [M] /home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/work/taoboard-angstrom-linux-gnueabi/ti-local-power-manager-1_1_24_03_11-r121e/local_power_manager_linux_1_24_03_11/packages/ti/bios/power/modules/omap3530/lpm/tal_dsplink_gpp.o LD [M] /home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/work/taoboard-angstrom-linux-gnueabi/ti-local-power-manager-1_1_24_03_11-r121e/local_power_manager_linux_1_24_03_11/packages/ti/bios/power/modules/omap3530/lpm/lpm_omap3530.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/woERROR: Function failed: do_compile (see /home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/work/taoboard-angstrom-linux-gnueabi/ti-local-power-manager-1_1_24_03_11-r121e/temp/log.do_compile.4513 for further information)rk/taoboard-angstrom-linux-gnueabi/ti-local-power-manager-1_1_24_03_11-r121e/local_power_manager_linux_1_24_03_11/packages/ti/bios/power/modules/omap3530/lpm/lpm_omap3530.mod.o
LD [M] /home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/work/taoboard-angstrom-linux-gnueabi/ti-local-power-manager-1_1_24_03_11-r121e/local_power_manager_linux_1_24_03_11/packages/ti/bios/power/modules/omap3530/lpm/lpm_omap3530.ko
make[1]: Leaving directory `/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/kernel'
making all: Wed Nov 28 15:29:54 CET 2012 ...
======== .interfaces [./packages/ti/bios/power/utils] ========
making package.mak (because of package.bld) ...
generating interfaces for package ti.bios.power.utils (because package/package.xdc.inc is older than package.xdc) ...
.interfaces files complete: Wed Nov 28 15:29:58 CET 2012.
======== .libraries [./packages/ti/bios/power/utils] ========
.libraries files complete: Wed Nov 28 15:29:58 CET 2012.
======== .dlls [./packages/ti/bios/power/utils] ========
configuring bin/ti_platforms_evm3530/linux/debug/lpmON.xv5T from package/cfg/bin/ti_platforms_evm3530/linux/debug/lpmON_pv5T.cfg ...
clv5T package/cfg/bin/ti_platforms_evm3530/linux/debug/lpmON_pv5T.c ...
configuring bin/ti_platforms_evm3530/linux/release/lpmON.xv5T from package/cfg/bin/ti_platforms_evm3530/linux/release/lpmON_pv5T.cfg ...
clv5T package/cfg/bin/ti_platforms_evm3530/linux/release/lpmON_pv5T.c ...
configuring bin/ti_platforms_evm3530/linux/debug/lpmOFF.xv5T from package/cfg/bin/ti_platforms_evm3530/linux/debug/lpmOFF_pv5T.cfg ...
clv5T package/cfg/bin/ti_platforms_evm3530/linux/debug/lpmOFF_pv5T.c ...
configuring bin/ti_platforms_evm3530/linux/release/lpmOFF.xv5T from package/cfg/bin/ti_platforms_evm3530/linux/release/lpmOFF_pv5T.cfg ...
clv5T package/cfg/bin/ti_platforms_evm3530/linux/release/lpmOFF_pv5T.c ...
.dlls files complete: Wed Nov 28 15:30:14 CET 2012.
======== .executables [./packages/ti/bios/power/utils] ========
clv5T src/onoff/lpmON.c ...
lnkv5T bin/ti_platforms_evm3530/linux/debug/lpmON.xv5T ...
/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/taoboard/usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init':/home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/work/armv7a-angstrom-linux-gnueabi/eglibc-2.12-r28/eglibc-2_12/libc/csu/elf-init.c:123: undefined reference to `__init_array_end' /home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/work/armv7a-angstrom-linux-gnueabi/eglibc-2.12-r28/eglibc-2_12/libc/csu/elf-init.c:123: undefined reference to `__init_array_start' /home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/i686-linux/usr/libexec/armv7a-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.5.4/ld: bin/ti_platforms_evm3530/linux/debug/lpmON.xv5T: hidden symbol `__init_array_end' isn't defined /home/andreas/tmp/entwicklungsumgebung-test/build/tmp-angstrom_v2012_05-eglibc/sysroots/i686-linux/usr/libexec/armv7a-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.5.4/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[1]: *** [bin/ti_platforms_evm3530/linux/debug/lpmON.xv5T] Error 1
gmake: *** [packages/ti/bios/power/utils,.executables] Error 2
ti-biosutils_1.02.02.bb
ti-cgt6x_7.2.7.bb
ti-codec-engine_2.26.01.09.bb
ti-codecs-omap3530_4.00.00.00.bb
ti-dmai_svn.bb
ti-dspbios_5.41.11.38.bb
ti-dsplink_1.65.00.03.bb
ti-edma3lld_01.11.01.04.bb
ti-framework-components_2.26.00.01.bb
ti-linuxutils_2.26.01.02.bb
ti-local-power-manager_1.24.02.09.bb
ti-xdais_6.26.01.03.bb
ti-xdctools_3.23.00.32.bb