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

Errors using library

Hi,




I have a library "library.a" and I am trying to use it with GNU compiler. As a base I take 'measure' project from examles which is compiling ok without library, but when I am trying to compile project with "library.a" I get a lot of errors like this:





assembling Startup.s...
compiling Measure.c...
linking...
/cygdrive/c/Cygnus/Arm-Tools/Bin/../lib/gcc-lib/arm-thumb-elf/3.3.1/../../../../arm-thumb-elf/bin/ld: ERROR: /cygdrive/c/Cygnus/Arm-Tools/Bin/../lib/gcc-lib/arm-thumb-elf/3.3.1/../../../../arm-thumb-elf/lib/libc.a(__uClibc_main.o) is compiled for EABI version 0, whereas .\Obj\Measure.elf is compiled for version 2
File format not recognized: failed to merge target specific data of file /cygdrive/c/Cygnus/Arm-Tools/Bin/../lib/gcc-lib/arm-thumb-elf/3.3.1/../../../../arm-thumb-elf/lib/libc.a(__uClibc_main.o)
/cygdrive/c/Cygnus/Arm-Tools/Bin/../lib/gcc-lib/arm-thumb-elf/3.3.1/../../../../arm-thumb-elf/bin/ld: ERROR: /cygdrive/c/Cygnus/Arm-Tools/Bin/../lib/gcc-lib/arm-thumb-elf/3.3.1/../../../../arm-thumb-elf/lib/libc.a(strcpy.o) is compiled for EABI version 0, whereas .\Obj\Measure.elf is compiled for version 2
File format not recognized: failed to merge target specific data of file /cygdrive/c/Cygnus/Arm-Tools/Bin/../lib/gcc-lib/arm-thumb-elf/3.3.1/../../../../arm-thumb-elf/lib/libc.a(strcpy.o)
/cygdrive/c/Cygnus/Arm-Tools/Bin/../lib/gcc-lib/arm-thumb-elf/3.3.1/../../../../arm-thumb-elf/bin/ld:  ERROR: /cygdrive/c/Cygnus/Arm-Tools/Bin/../lib/gcc-lib/arm-thumb-elf/3.3.1/../../../../arm-thumb-elf/lib/libc.a(sigrestorer.o) is compiled for EABI version 0, whereas .\Obj\Measure.elf is compiled for version 2
File format not recognized: failed to merge target specific data of file /cygdrive/c/Cygnus/Arm-Tools/Bin/../lib/gcc-lib/arm-thumb-elf/3.3.1/../../../../arm-thumb-elf/lib/libc.a(sigrestorer.o)
/cygdrive/c/Cygnus/Arm-Tools/Bin/../lib/gcc-lib/arm-thumb-elf/3.3.1/../../../../arm-thumb-elf/bin/ld: ERROR: /cygdrive/c/Cygnus/Arm-Tools/Bin/../lib/gcc-lib/arm-thumb-elf/3.3.1/crtend.o is compiled for EABI version 0, whereas .\Obj\Measure.elf is compiled for version 2
File format not recognized: failed to merge target specific data of file /cygdrive/c/Cygnus/Arm-Tools/Bin/../lib/gcc-lib/arm-thumb-elf/3.3.1/crtend.o
/cygdrive/c/Cygnus/Arm-Tools/Bin/../lib/gcc-lib/arm-thumb-elf/3.3.1/../../../../arm-thumb-elf/bin/ld: ERROR: /cygdrive/c/Cygnus/Arm-Tools/Bin/../lib/gcc-lib/arm-thumb-elf/3.3.1/crtn.o is compiled for EABI version 0, whereas .\Obj\Measure.elf is compiled for version 2
File format not recognized: failed to merge target specific data of file /cygdrive/c/Cygnus/Arm-Tools/Bin/../lib/gcc-lib/arm-thumb-elf/3.3.1/crtn.o
/cygdrive/c/Cygnus/Arm-Tools/Bin/../lib/gcc-lib/arm-thumb-elf/3.3.1/../../../../arm-thumb-elf/bin/ld: region DATA is full (.\Obj\Measure.elf section .bss)
/cygdrive/c/Cygnus/Arm-Tools/Bin/../lib/gcc-lib/arm-thumb-elf/3.3.1/../../../../arm-thumb-elf/bin/ld: region DATA is full



Does it mean that my "library.a" is intended for another version of GCC?

  • "Does it mean that my 'library.a' is intended for another version of GCC?"

    Well, that's what the message says, doesn't it?!

    Where did you get this library?
    What suggested it would work with this particular version of this particular GNU compiler?

  • May by You know where I can get the proper/anover compiler?

  • Maybe You know where I can get the proper/anover compiler?

  • The library was created using Metrowerks CodeWarrior for ARM Developer Suite v1.2. But I don't have this IDE, I have Keil instead. I would be very thankfull if someone could tell me wich version of GCC is used there. :)
    Thanks anyway.

  • Use the RealView Compliation Tools (part of the new MDK-ARM). The RealView Linker should be able to link with this existing library.

    Reinhard

  • No, it is not :(

    PROJEKTAS.axf: Error: L6242E: Cannot link object bmApiRfmd.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object ccApi.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object ccMain.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object emLsb.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object emScale.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object emTrig.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object mxGlobal.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object mxReceive.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object mxTransmit.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object mxUart.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object bmMainRfmd.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object maNvMemory.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object maPropagatePos.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object rpApi.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object acMain.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object ccGlobal.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object ccInit.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object ccUtil.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object dcMain.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object gtMain.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object mdGlobal.obj as its attributes are incompatible with the image attributes.
    PROJEKTAS.axf: Error: L6242E: Cannot link object mdMain.obj as its attributes are incompatible with the image attributes.
    
    Target not created
    
    One error for each .obj in library