unrecognized command line option -falign-arrays error with CodeSourcery Lite

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MiDo_2166396
Level 1
Level 1
Im setting up the toolchain and compiling sample applications, referencing both the 20732EclipseForAppDev.pdf and 20732AppDevWT2.pdf.

Using CodeSourcery Lite via TC=gcc option, causes compilation error:

"arm-none-eabi-gcc.exe: error: unrecognized command line option -falign-arrays"

make:  ***[brcm/bleprox/obj-A_20732A0-flash-flash/spar_setup.o] Error 1

Ive tried both at command line and within Eclipse IDE along with other projects.

Is this a CodeSourcery Lite version issue (currently using newest version)?

Thanks,

Minh
0 Likes
1 Solution
Anonymous
Not applicable
From other post:

This is a valid option with CodeSourcery G++ Lite version 2011.03-42. So you have two options, use this version of CodeSourcery or edit <adk>/spar/makecm3_gcc.inc and remove the -falign-arrays option from C_SPECIFIC_FLAGS. This will not affect the way the application gets built. The next version of the SDK will have a fix for this issue.

View solution in original post

0 Likes
1 Reply
Anonymous
Not applicable
From other post:

This is a valid option with CodeSourcery G++ Lite version 2011.03-42. So you have two options, use this version of CodeSourcery or edit <adk>/spar/makecm3_gcc.inc and remove the -falign-arrays option from C_SPECIFIC_FLAGS. This will not affect the way the application gets built. The next version of the SDK will have a fix for this issue.
0 Likes