Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Compile errors on new revision
« previous next »
  • Print
Pages: [1]

Author Topic: Compile errors on new revision  (Read 3382 times)

Offline mirai

  • Member
  • *
  • Posts: 5
Compile errors on new revision
« 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)
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Compile errors on new revision
« Reply #1 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.
Logged

Offline mirai

  • Member
  • *
  • Posts: 5
Re: Compile errors on new revision
« Reply #2 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)
Logged

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: Compile errors on new revision
« Reply #3 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).
Logged

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: Compile errors on new revision
« Reply #4 on: August 12, 2007, 03:57:02 PM »
Just to confirm: yes, the build servers always start clean and (re-)run configure.
Logged

Offline mirai

  • Member
  • *
  • Posts: 5
Re: Compile errors on new revision
« Reply #5 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.
« Last Edit: August 13, 2007, 02:52:21 AM by zinmirai »
Logged

Offline kubiix

  • Member
  • *
  • Posts: 2
Re: Compile errors on new revision
« Reply #6 on: October 20, 2007, 08:24:11 AM »
I got the same problem  :(
Logged
iPod Photo 60 GB

Always use my own builds

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Compile errors on new revision
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.091 seconds with 15 queries.