Wednesday, July 24, 2013

 

Element ACTA build linker error: "corrupted double-linked list"

Q: I've tried to build a distribution for an ATCA chassis which uses openHPI. At the end stage of the build, when linking occurs the following linker error occurs:

 

*** Linking elemNtfLogger
*** glibc detected *** /usr/bin/ld: corrupted double-linked list: 0x00000000021464e0 ***
======= Backtrace: =========
/lib64/libc.so.6[0x33b0a760e6]
/lib64/libc.so.6[0x33b0a7656d]
/lib64/libc.so.6[0x33b0a79385]
/lib64/libc.so.6(__libc_malloc+0x71)[0x33b0a7a911]
/usr/lib64/libbfd-2.20.51.0.2-5.36.el6.so(objalloc_create+0x1d)[0x33b0eaf72d]
/usr/lib64/libbfd-2.20.51.0.2-5.36.el6.so(_bfd_new_bfd+0x2d)[0x33b0e3447d]
/usr/lib64/libbfd-2.20.51.0.2-5.36.el6.so(bfd_fopen+0x2e)[0x33b0e347ee]
/usr/bin/ld[0x41c7f1]
/usr/bin/ld[0x41ccf6]
/usr/bin/ld[0x41ce71] 



A: This is a known issue that occurs very infrequently, and only with certain GCC toolchains, e.g. it was seen with Red Hat gcc 4.4.7, and MV CGE 5 gcc 4.2.0 for PPC. The non-obvious root cause is that building with --cref causes issues for some GNU linkers. To work around this issue, in ELEMENT_ROOT/build/targets/ppc.mk (or whichever target applies), add the following:

     export CREF_WORKAROUND=yes

This will prevent Element from using the "--cref" switch when linking the executables.

Labels: , ,


This page is powered by Blogger. Isn't yours?

free web hit counter
free invisible web counter