Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: Thecoolgman on August 13, 2009, 08:39:17 PM

Title: [FIXED]Can't Compile on 5G SVN due to alarm_menu.c?
Post by: Thecoolgman on August 13, 2009, 08:39:17 PM
I've started using SVN for compiling since the current build is gone And I have this issue when compiling: (http://filesmelt.com/downloader/alarm_menu_error.png) And no I do not have an patches that affect the alarm menu.
Title: Re: Can't Compile on 5G SVN due to alarm_menu.c?
Post by: saratoga on August 13, 2009, 08:54:02 PM
Do you have any patches at all? 

Title: Re: Can't Compile on 5G SVN due to alarm_menu.c?
Post by: Thecoolgman on August 13, 2009, 09:07:22 PM
I have done a clean build and got the same thing. I don't know what's going on.
Title: Re: Can't Compile on 5G SVN due to alarm_menu.c?
Post by: Blue Dude on August 13, 2009, 11:44:52 PM
It looks like it might be a problem with english.lang, and it just happens to show up in the alarm menu.

Start completely from scratch:
svn up
cd build
make reconf
make clean
make

A change in a language file can sometimes compile funky, but make clean should take care of it.  If you've applied any patch that affects a language file, it might fail again.  If all this fails, check out a completely new working copy to another directory and build from that.
Title: Re: Can't Compile on 5G SVN due to alarm_menu.c?
Post by: Thecoolgman on August 14, 2009, 02:00:04 AM
No that did not work. Ugh, my head hurts.
Title: Re: Can't Compile on 5G SVN due to alarm_menu.c?
Post by: linuxstb on August 14, 2009, 04:00:28 AM
How did you checkout the source from SVN?  Did you use the command-line "svn" from within cygwin, or a GUI SVN program, such as tortoisesvn?

apps/alarm_menu.c is suspiciously early in the alphabet, which makes me think it's the first file using language strings that fails.  One problem could be that you've checked out the source code using Windows-style line endings (i.e. CR and LF), whereas your cygwin install is configured to use Unix-style line endings (i.e. just LF).  This can cause strange things to happen.
Title: Re: Can't Compile on 5G SVN due to alarm_menu.c?
Post by: Thecoolgman on August 14, 2009, 04:03:40 AM
I used Tortoise SVN and used this tutorial in the wiki: http://www.rockbox.org/twiki/bin/view/Main/UsingCygwinAndTortoiseSVN
Title: Re: Can't Compile on 5G SVN due to alarm_menu.c?
Post by: linuxstb on August 14, 2009, 04:33:57 AM
I used Tortoise SVN and used this tutorial in the wiki: http://www.rockbox.org/twiki/bin/view/Main/UsingCygwinAndTortoiseSVN

So your cygwin is definitely configured to use DOS (CR+LF) line endings?

I'm not sure how you can check, but maybe just typing "echo > a.txt" will tell you.  If the resulting a.txt file is 1 byte in size, then you're still using Unix line-endings, if it's two bytes, then it's correctly configured with CR+LF.
Title: Re: Can't Compile on 5G SVN due to alarm_menu.c?
Post by: gevaerts on August 14, 2009, 05:14:57 AM
Please verify that your build directory is entirely empty before you run configure
Title: Re: Can't Compile on 5G SVN due to alarm_menu.c?
Post by: Thecoolgman on August 14, 2009, 05:44:28 AM
Quote
So your cygwin is definitely configured to use DOS (CR+LF) line endings?

I'm not sure how you can check, but maybe just typing "echo > a.txt" will tell you.  If the resulting a.txt file is 1 byte in size, then you're still using Unix line-endings, if it's two bytes, then it's correctly configured with CR+LF.

I think I found the problem. It came out 1 KB like you said. Should I just Delete my Cygwin Folder and instal again using CR+LF?