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?

Parents
  • 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

Reply
  • 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

Children
No data