This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#12794 - new EQ code does not compile for the Nokia N8x0
Attached to Project:
Rockbox
Opened by Thomas Jarosch (thomasjfox) - Thursday, 27 December 2012, 21:31 GMT+2
Last edited by Michael Sevakis (MikeS) - Friday, 28 December 2012, 20:21 GMT+2
Opened by Thomas Jarosch (thomasjfox) - Thursday, 27 December 2012, 21:31 GMT+2
Last edited by Michael Sevakis (MikeS) - Friday, 28 December 2012, 20:21 GMT+2
|
DetailsHi,
the Nokia N8x0 is stuck with a rather old gcc version. This piece of code fails to compile: /home/maemo/MyProjects/rockbox/lib/rbcodec/dsp/eq.c: In function `dsp_set_eq_coefs': /home/maemo/MyProjects/rockbox/lib/rbcodec/dsp/eq.c:79: error: initializer element is not constant /home/maemo/MyProjects/rockbox/lib/rbcodec/dsp/eq.c:79: error: (near initialization for `coef_gen[1]') /home/maemo/MyProjects/rockbox/lib/rbcodec/dsp/eq.c:79: error: initializer element is not constant /home/maemo/MyProjects/rockbox/lib/rbcodec/dsp/eq.c:79: error: (near initialization for `coef_gen[2]') /home/maemo/MyProjects/rockbox/lib/rbcodec/dsp/eq.c:79: error: initializer element is not constant /home/maemo/MyProjects/rockbox/lib/rbcodec/dsp/eq.c:79: error: (near initialization for `coef_gen[3]') gcc version: sbox-arm-linux-gcc (GCC) 3.4.4 (release) (CodeSourcery ARM 2005q3-2) If I understand the code correctly, it's only called during EQ init / EQ changes and could be re-written with if() statements. Is that correct? Thomas |
This task depends upon
Closed by Michael Sevakis (MikeS)
Friday, 28 December 2012, 20:21 GMT+2
Reason for closing: Fixed
Additional comments about closing: 362ade3
Friday, 28 December 2012, 20:21 GMT+2
Reason for closing: Fixed
Additional comments about closing: 362ade3
I moved it outside the function and tried with and without the "static" keyword. Same error message.
This old gcc version seems to have trouble with the "x ... y" syntax + the pointer to a function.
This compiles fine:
"[1 ... EQ_NUM_BANDS-2] = NULL,"
Could we init this stuff once with an _init() function and remove the "x ... y" syntax?