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]
export CREF_WORKAROUND=yes
*** 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: ATCA, Element, Element ChassisMgmt install
Monday, September 13, 2010
Fedora build error - missing libltdl-devel
Q: Compiling Element 3.2.1 for an ATCA chassis on an FC9 system and got this build error:
checking for lt_dlopen in -lltdl... noconfigure: error: !************************************************************
- libltdl not found!
- this is required for plugin loading
- Try installing the libltdl-devel package
************************************************************
make[3]: *** [all] Error 1make[3]: Leaving directory /home/jmir/Element/Releases/3.2.1/element_3.2.1/3party/openHPI
A: The real package is called libtool-ltdl-devel. (Must have changed names somewhere along the way.) "yum install" on this package and all will be well.
checking for lt_dlopen in -lltdl... noconfigure: error: !************************************************************
- libltdl not found!
- this is required for plugin loading
- Try installing the libltdl-devel package
************************************************************
make[3]: *** [all] Error 1make[3]: Leaving directory /home/jmir/Element/Releases/3.2.1/element_3.2.1/3party/openHPI
I can build 3.2.0 and earlier without any problems. I also looked for the libltdl-devel package on yum but can't find it or anything similar.
A: The real package is called libtool-ltdl-devel. (Must have changed names somewhere along the way.) "yum install" on this package and all will be well.
free invisible web counter

