Compile error

Posted on
  • I get this, when I compile:

    
    /home/poul/Programmer/gcc-arm-none-eabi-­5_3-2016q1/bin/../lib/gcc/arm-none-eabi/­5.3.1/../../../../arm-none-eabi/bin/ld: section .init loaded at [0005bcc0,0005bcc3] overlaps section .data loaded at [0005bcc0,0005c237]
    collect2: error: ld returned 1 exit status
    make: *** [espruino_1v85.63_pico_1r3.elf] Fejl 1
    
    

    In makefile l have this:

    
    PICO_1V3=1
    RELEASE=1
    SINGLETHREAD=1
      export CCPREFIX?=/home/poul/Programmer/gcc-arm-­none-eabi-5_3-2016q1/bin/arm-none-eabi-
    
    

    What have done wrong?

    I am running on Linux Mint 17.3 64 bit.

  • I'm not really sure. It seems that happens if sections overlap, but it's slightly confusing that .init contains only 4 bytes.

    Have you changed the code at all?

    I'd maybe look at using an earlier compiler like 4.9 - I haven't used 5.3 (the release was only 3 days ago), and that could potentially be an issue.

  • No, I have not changed the code, I will first compile the code as is, before I make any changes.

    It was the compiler.

    gcc-arm-none-eabi-4_9-2015q3, works
    gcc-arm-none-eabi-5_2-2015q4, does not work
    gcc-arm-none-eabi-5_3-2016q1, does not work

    Thank you very much

  • Thanks for the update!

    It's a bit frustrating really - it seems like every single time the compiler is updated, the build needs tweaking to make it work again.

  • I've now tweaked the build so it works on GCC 5.3

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Compile error

Posted by Avatar for Frida @Frida

Actions