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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  [SOLVED] Error compiling Rockbox in Cygwin
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] Error compiling Rockbox in Cygwin  (Read 2200 times)

Offline rberna

  • Member
  • *
  • Posts: 3
[SOLVED] Error compiling Rockbox in Cygwin
« 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
« Last Edit: January 07, 2009, 06:19:25 PM by rberna »
Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: Error compiling Rockbox in Cygwin
« Reply #1 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?
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Error compiling Rockbox in Cygwin
« Reply #2 on: January 07, 2009, 11:10:41 AM »
posting the exact error message might also help, my crystal ball is on winter vacation ...
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline rberna

  • Member
  • *
  • Posts: 3
Re: Error compiling Rockbox in Cygwin
« Reply #3 on: January 07, 2009, 04:18:45 PM »
Quote from: 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?

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.
« Last Edit: January 07, 2009, 04:37:54 PM by rberna »
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Error compiling Rockbox in Cygwin
« Reply #4 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.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline rberna

  • Member
  • *
  • Posts: 3
Re: Error compiling Rockbox in Cygwin
« Reply #5 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.
« Last Edit: January 07, 2009, 06:18:59 PM by rberna »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  [SOLVED] Error compiling Rockbox in Cygwin
 

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

Page created in 0.074 seconds with 14 queries.