Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: rberna on January 06, 2009, 08:30:15 PM

Title: [SOLVED] Error compiling Rockbox in Cygwin
Post by: rberna on January 06, 2009, 08:30:15 PM
Hello to everybody,

I have a nasty problem while trying to compile Rockbox under Cygwin (Win XP SP3).

While compiling the file alarm_menu.c, I got many undefs (LANG_ALARM_MOD_TIME, LANG_ALARM_MOD_ERROR, LANG_ALARM_MOD_DISABLE, etc.)


I followed the cross-compiling instructions fully (at least so it seems to me).

- compiler is arm-elf-gcc 4.0.3, downloaded by Cygwin's setup.exe -X from rockbox site

- tried both the source tree downloaded by SVN (download ok), and the source tree manually unzipped from the source file

- I prepared the build directory (called build), then I typed ../tools/configure. I selected number 21 for iPod Nano, N for Normal build. Configure went perfectly (so it seems), Makefile was created.

- I typed make.. Makefile generated dependencies (correctly? more than 2Mbytes!), started to compile some module (lang.c ok, apps/action.c ok, ....). Alarm_menu.c gave the undefs as said  ??? ???

I tested other configuration too, such as Sandisk E200, but without luck.

As additional info, I normally use Cygwin to compile (successfully) for Palm Os using the arm-palmos-gcc.

Could you kindly help?

My knowledge in cross-compiling is average.

Thank you in advance,

Romano
Title: Re: Error compiling Rockbox in Cygwin
Post by: nls on January 07, 2009, 07:35:28 AM
Did you try multiple different target configurations in the same build dir? Might be worth trying a "make clean" if you did.
This is using unmodified source?
Title: Re: Error compiling Rockbox in Cygwin
Post by: bluebrother on January 07, 2009, 11:10:41 AM
posting the exact error message might also help, my crystal ball is on winter vacation ...
Title: Re: Error compiling Rockbox in Cygwin
Post by: rberna on January 07, 2009, 04:18:45 PM
Did you try multiple different target configurations in the same build dir? Might be worth trying a "make clean" if you did.
This is using unmodified source?

Tried make clean, took quite a lot of time (old good Athlon XP 2500+ with 1.5Gb RAM), --> no luck

Tried target 21 (ipod Nano 1G) and target 50, Normal Build, similar error. I will post the exact error below.

Tried target 21, Bootloader Build --> Ok

Tried target 21, Advanced+Profile Build --> no luck (same error in alarm_menu.c)

Unmodified source.

Tnx for your time.


For bluebrother:

this is the output of:
Code: [Select]
$ make &> make-log.txt
Code: [Select]
Generating dependencies
PP features.txt
CC lang.c
CC apps/action.c
BMP2RB rockboxlogo.176x54x16.bmp
CC build/apps/bitmaps/native/rockboxlogo.176x54x16.c
BMP2RB usblogo.128x37x16.bmp
CC build/apps/bitmaps/native/usblogo.128x37x16.c
BMP2RB default_icons.6x8x16.bmp
CC build/apps/bitmaps/native/default_icons.6x8x16.c
CONVBDF fonts/08-Schumacher-Clean.bdf
CC apps/alarm_menu.c
/cygdrive/c/work/rockbox/apps/alarm_menu.c: In function 'alarm_screen':
/cygdrive/c/work/rockbox/apps/alarm_menu.c:104: error: 'LANG_ALARM_MOD_TIME' undeclared (first use in this function)
/cygdrive/c/work/rockbox/apps/alarm_menu.c:104: error: (Each undeclared identifier is reported only once
/cygdrive/c/work/rockbox/apps/alarm_menu.c:104: error: for each function it appears in.)
/cygdrive/c/work/rockbox/apps/alarm_menu.c:127: error: 'LANG_ALARM_MOD_TIME_TO_GO' undeclared (first use in this function)
/cygdrive/c/work/rockbox/apps/alarm_menu.c:136: error: 'LANG_ALARM_MOD_ERROR' undeclared (first use in this function)
/cygdrive/c/work/rockbox/apps/alarm_menu.c:191: error: 'LANG_ALARM_MOD_DISABLE' undeclared (first use in this function)
make: *** [/cygdrive/c/work/rockbox/build/apps/alarm_menu.o] Error 1

May be some issue with Base package in Cygwin?

Tnx.
Title: Re: Error compiling Rockbox in Cygwin
Post by: bluebrother on January 07, 2009, 05:01:37 PM
did you ran make clean between the various builds selected? Bootloader and Rockbox have to be considered different builds.
Title: Re: Error compiling Rockbox in Cygwin
Post by: rberna on January 07, 2009, 05:18:45 PM
Actually I tried in this order, all from inside "build" directory

make clean
../tools/configure (select 21, N)
make   (--> error)

make clean
../tools/configure (select 21, B)
make (--> ok)

I tried to use a different name for build directory (named "foo"), but the result is the same.
 :-[

Update:
Running Cygwin setup.exe, I noted that the translation CRLF was set as DOS and not as Unix (RECOMMENDED). Could this be the problem? In the meanwhile I am doing a clean reinstall of Cygwin...

PROBLEM SOLVED, it was really the CRLF setting. ::) Sorry for being so idiot. Tnx to everyone for the help.