Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: mirai on August 12, 2007, 12:58:23 AM

Title: Compile errors on new revision
Post by: mirai on August 12, 2007, 12:58:23 AM
I recently updated my local svn, and unfortunately I have begun to receive compile errors that were not there in previous versions. The target is Sansa e200. Below is a log of the compile.

Code: [Select]
CC filetypes.c
filetypes.c:87: error: 'LANG_FMR' undeclared here (not in a function)
filetypes.c:87: warning: missing initializer
filetypes.c:87: warning: (near initialization for 'inbuilt_filetypes[33].voicecl
ip')
make[1]: *** [/cygdrive/c/rockbox/trunk/build/apps/filetypes.o] Error 1
make: *** [build] Error 2

I have attempted to remove the line:
Code: [Select]
{ "fmr", FILE_ATTR_FMR, Icon_Preset, LANG_FMR },from filetypes.c, and upon compiling correctly, other files began to give errors, all relating to the LANG variables.

Is anyone else having this problem, and if so, would you happen to know how to solve it?
Thank you for your time and consideration.
(I'll continue to mess around to see if I'm able to fix it and will post updates if a solution is found. It may just be a dumb mistake I'm making though)
Title: Re: Compile errors on new revision
Post by: Llorean on August 12, 2007, 01:28:15 AM
Are you using any patches? As can be seen from the build table, Rockbox on e200 is building fine.
Title: Re: Compile errors on new revision
Post by: mirai on August 12, 2007, 02:19:24 AM
Nope, no patches... I'll try re-downloading /trunk again and see how it goes. Maybe my local copy is corrupt and but it's not being picked up as being modified for some reason. (Time to download the source on dialup -.- haha)
Title: Re: Compile errors on new revision
Post by: pixelma on August 12, 2007, 04:23:21 AM
Did you try "make clean" and to configure again?

That is necessary from time to time after certain changes (and I believe the build servers do that always to be on the safe side).
Title: Re: Compile errors on new revision
Post by: Bagder on August 12, 2007, 03:57:02 PM
Just to confirm: yes, the build servers always start clean and (re-)run configure.
Title: Re: Compile errors on new revision
Post by: mirai on August 13, 2007, 02:47:17 AM
Thanks for the suggestions. I haven't been able to solve the problem yet though. I've run 'make clean' and even 'make veryclean', emptied the build directory, re-ran configure, downloaded the SVN again, among other things.. (I think) I've narrowed down the problem to the compile process not including the correct variables in the lang.h file. It seems to be solved by setting the player feature params to * so that each variable is included into the lang header/source file.
(i.e
Code: [Select]

  id: LANG_CROSSFEED
  desc: in sound settings
  user:
 
    *: none
    swcodec: "Crossfeed"
 
 
    *: none
    swcodec: "Crossfeed"
 

 
    *: none
    swcodec: "Crossfeed"
 


to
Code: [Select]

  id: LANG_CROSSFEED
  desc: in sound settings
  user:
 
    *: "Crossfeed"
 
 
    *: "Crossfeed"
 

 
    *: "Crossfeed"
 



This (I believe) allows it to compile properly. I haven't gotten rid of all of the errors yet (There seem to be an endless number of variables that need changed...)

Unfortunately, the more that I 'fix', make slowly creeps through the build process, spewing more errors:
Code: [Select]
menus/recording_menu.c:76: error: 'LANG_RECORDING_SRC_MIC' undeclared (first use in this function) (Each undeclared identifier is reported only once for each function it appears in.)
menus/recording_menu.c:82: error: 'LANG_FM_RADIO' undeclared (first use in this function)
menus/recording_menu.c:92: error: 'LANG_RECORDING_SOURCE' undeclared (first use in this function)
menus/recording_menu.c:191: error: 'LANG_RECORDING_FREQUENCY' undeclared (first use in this function)
menus/recording_menu.c:265: error: 'LANG_AFMT_AIFF' undeclared (first use in this function)
menus/recording_menu.c:266: error: 'LANG_AFMT_MPA_L3' undeclared (first use in this function)
menus/recording_menu.c:267: error: 'LANG_AFMT_WAVPACK' undeclared (first use in this function)
and so on..

The 'features' that are causing problems so far are:
swcodec
multivolume
rtc
lcd_non-mono
lcd_bitmap

There are probably more beyond these though. I may just force make to continue through errors to generate a list of all of them.

Would anyone happen to know what would cause this problem? Perhaps it has to do with the configure script? I really don't have a clue.
Thanks again for your help.
Title: Re: Compile errors on new revision
Post by: kubiix on October 20, 2007, 08:24:11 AM
I got the same problem  :(