Toolchain problem

  • I am using PicoMOD7A. I would like to informe you that when I configure buildroot with picomod7a_min_defconfig and I compile it using fs-toolchain-4.7.2-armv6-vfp it doesn't work, the ubifs fimage generated doesn't work and the PicoMOD7A doesn't start.


    But if I compile it using fs-toolchain-4.6.3-armv6-vfp, everything work correctly.


    Has anybody had the same problem? Is there any solution for this issue?

  • gcc-4.7.2 makes a difference between hardware floating point and software floating point. Therefore it uses /lib/ld-linux-armhf.so.3 as linkloader and not /lib/ld-linux.so.3 anymore. However this seems not be used consistently across all libraries and applications, so most binaries will still try to access /lib/ld-linux.so.3. We have solved this by creating a symbolic link from /lib/ld-linux.so.3 to /lib/ld-linux-armhf.so.3. This is not strictly correct, but it has worked in all our cases yet.


    You can do this by adding the following lines in the buildroot directory common/final_script_min and common/final_script_std:


    Code
    1. # Newer toolchains create ld-linux-armhf.so.3, but we also need ld-linux.so.3
    2. if [ -L "${TARGET}/lib/ld-linux-armhf.so.3" ] && [ ! -e "${TARGET}/lib/ld-linux.so.3" ];
    3. then
    4. ld=`readlink ${TARGET}/lib/ld-linux-armhf.so.3`
    5. ln -s "${ld}" ${TARGET}/lib/ld-linux.so.3
    6. fi


    Your F&S Support Team

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.