compiler error with gcc 4.9 - General Discussion and Assistance - CHDK Forum  

compiler error with gcc 4.9

  • 2 Replies
  • 2697 Views
*

Offline rudi

  • ***
  • 129
  • A590IS_101B, SX260HS_100B
compiler error with gcc 4.9
« on: 09 / January / 2015, 16:50:43 »
Advertisements
I have tested some copilers for chdk-de buildserver.

gcc 4.8.3 and gcc 4.8.4 works fine, but gcc 4.9.2 (also launchpad gcc-arm-none-eabi-4.9, see attachment) breaks on buildig curves.flt.
Have anyone an idea?

srsa_4c DIGIC 6 trunk was build successfully with all tested compilers on linux 64bit.

rudi

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: compiler error with gcc 4.9
« Reply #1 on: 09 / January / 2015, 19:28:32 »
I have tested some copilers for chdk-de buildserver.

gcc 4.8.3 and gcc 4.8.4 works fine, but gcc 4.9.2 (also launchpad gcc-arm-none-eabi-4.9, see attachment) breaks on buildig curves.flt.
Have anyone an idea?

The compiler is creating an extra .rodata segment (.rodata.cst2) which the elf2flt program is not expecting.

I'll see how easy it will be to fix, in the meantime don't use 4.9.2.

Edit: I've updated the linker script so it should now work for all compiler versions (revision 3902).

Phil.
« Last Edit: 09 / January / 2015, 23:42:42 by philmoz »
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

*

Offline rudi

  • ***
  • 129
  • A590IS_101B, SX260HS_100B
Re: compiler error with gcc 4.9
« Reply #2 on: 18 / January / 2015, 12:51:20 »
Hi Phil, thanks a lot!

rudi

 

Related Topics