This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Build error  with DS500-BN-00001-r5p0-13rel0

Note: This was originally posted on 10th July 2013 at http://forums.arm.com

Hi,
   I have a fedora pc and DS-5 version " DS500-BN-00001-r5p0-13rel0.tgz " installed in it. But While i tried to build the application error  occurs as shown below

/usr/local/DS-5/sw/gcc/bin/../lib/gcc/arm-linux-gnueabihf/4.7.1/../../../../arm-linux-gnueabihf/bin/ld: error: sample-app uses VFP register arguments, CMakeFiles/sample-app.dir/sample-app.c.o does not
/usr/local/DS-5/sw/gcc/bin/../lib/gcc/arm-linux-gnueabihf/4.7.1/../../../../arm-linux-gnueabihf/bin/ld: failed to merge target specific data of file CMakeFiles/sample-app.dir/[size=2]sample-[/size][size=2]app.c.o[/size]
[size=2]
[/size]
[size=2]I use these options while building application..  [/size][size=2]"[/size][size=2] -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -funsafe-math-optimizations -ftree-vectorize [/size][size=2]-fPIC -fsigned-char "[/size]
[size=2]
[/size]
[size=2]Anyone have idea about this..[/size]
  • Note: This was originally posted on 10th July 2013 at http://forums.arm.com

    Not a GCC expert, but it looks like its the ABI your using.

    In your build command you setting the floating point ABI as soft (pass floating point arguments in integer registers).  But the error message from the linker suggests that what you're linking against is built for hard float (pass floating point arguments in VFP registers).  You can't mix objects with different ABIs (at least not if you want them to work).
  • Note: This was originally posted on 10th July 2013 at http://forums.arm.com

    Hi,

        Thanks for reply..  I changd my compile opitions as below , Now the code builds sucessfully. But in my hardware ( Panda board )  the application is not running.
    -march=armv7-a  -mfpu=vfp -mfloat-abi=hard -funsafe-math-optimizations -ftree-vectorize -mcpu=cortex-a8

    Other details
    ------------------

    Buld machine : Fedora 14, DS5 release 13

    Running Hardware : panda board with  linux
  • Note: This was originally posted on 10th July 2013 at http://forums.arm.com

    What distribution is your Pandaboard running?  (Maybe 'cat /etc/lsb-release')

    You need it to have an 'hf' ABI root filesystem to run apps built with -mfloat-abi=hard

    If it has 'hf' ABI it should have /lib/ld-linux-armhf.so.3 and /lib/arm-linux-gnueabihf/

    If it has softfp ABI it should have /lib/ld-linux.so.3

    By the way:
    - the latest version of DS-5 is v5.15
    - Panda uses Cortex-A9 not Cortex-A8.  (Building for Cortex-A8 shouldn't cause a failure, but might be sub-optimal.)
  • Note: This was originally posted on 11th July 2013 at http://forums.arm.com

    thanks Scott,

        We were using old version of angstrom linux in panda board, that may be the cause of this error. Actually my target to port application in Cortex A8 platform thats why i choose cpu cortex-a8.
  • Note: This was originally posted on 11th July 2013 at http://forums.arm.com

    The Linaro Ubuntu image for Pandaboard might be an alternative:  http://releases.lina...06/ubuntu/panda