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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Cygwin is spitting error messages - some help please
« previous next »
  • Print
Pages: [1]

Author Topic: Cygwin is spitting error messages - some help please  (Read 3165 times)

Offline nofish

  • Member
  • *
  • Posts: 24
Cygwin is spitting error messages - some help please
« on: September 23, 2012, 04:34:42 PM »
I'm quite new to developing/compiling, please be gentle...

I tried following the steps found here:
http://www.rockbox.org/wiki/SimpleGuideToCompiling

I got stuck here with Cygwin giving me errors:
(see attached img)

Anyone has a hint what am I doing wrong ?


* cygwin_errors_1.png (40.15 kB, 941x559 - viewed 189 times.)
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Cygwin is spitting error messages - some help please
« Reply #1 on: September 23, 2012, 05:12:45 PM »
You don't have the right GCC installed. Run tools/Rockboxdev.sh then select cold fire.

Edit:  Also, the reason we don't recommend using cygwin is that it is very slow.  The dev guide suggests using our preconfigured virtualbox image, since on modern hardware VB is very fast and tends to be no more difficult (or even easier) to use then cygwin.  Something to consider unless you are very familiar with the cygwin environment. 
« Last Edit: September 23, 2012, 05:25:00 PM by saratoga »
Logged

Offline nofish

  • Member
  • *
  • Posts: 24
Re: Cygwin is spitting error messages - some help please
« Reply #2 on: September 24, 2012, 07:50:27 AM »
Thanks for your reply.

Done what you said.
So the next steps would be building a cross compiler I guess (if I want to use Cygwin) ?
http://www.rockbox.org/wiki/CrossCompiler

I think that's over my head for now and I'll switch to the virtualbox image.

btw, I know that the virtualbox is recommended over Cygwin, it's just a exercise I'm doing to get familiar with it as I'll be doing a course where we'll be using Cygwin for some stuff.

« Last Edit: September 24, 2012, 08:43:53 AM by nofish »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Cygwin is spitting error messages - some help please
« Reply #3 on: September 24, 2012, 11:58:29 AM »
Rockboxdev.sh builds the crosscompiler.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Cygwin is spitting error messages - some help please
« Reply #4 on: September 24, 2012, 03:07:13 PM »
Quote from: nofish on September 23, 2012, 04:34:42 PM
I got stuck here with Cygwin giving me errors:

The screenshot you attached shows a big fat warning "Your cross-compiler 3.4.6 is not the recommended version 4.5.2! This may cause your build to fail since it may be a version that isn't functional or known to not be the best choice." Is there anything unclear about this so we can improve the message? After all your build did fail and the warning told you this might happen :)
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline nofish

  • Member
  • *
  • Posts: 24
Re: Cygwin is spitting error messages - some help please
« Reply #5 on: September 26, 2012, 06:39:12 AM »
You're right, I've noticed the big, fat warning message of course.

Sorry for ignoring it in my posts, got a bit overwhelmed as this is all new to me. ..
The actual question for me is 'what would I do to fix it'.

If I run 'Rockboxdev.sh' as said above, does this automatically update to the recommended version or are there further steps necessary ?
 
« Last Edit: September 26, 2012, 06:41:25 AM by nofish »
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Cygwin is spitting error messages - some help please
« Reply #6 on: September 26, 2012, 07:45:55 AM »
rockboxdev.sh downloads and installs the correct version. Apart from selecting the toolchain to be installed there is no furter action required. Beware that building the compiler can take several hours on Cygwin. If you have an antivirus program running it is a good idea to disable it to speed up the process.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Cygwin is spitting error messages - some help please
« Reply #7 on: September 26, 2012, 10:59:44 AM »
Quote from: nofish on September 26, 2012, 06:39:12 AM
If I run 'Rockboxdev.sh' as said above, does this automatically update to the recommended version or are there further steps necessary ?

Generally yes.  I'm not sure on cygwin though what will happen to the old compiler.  After installing, you might want to run 'which m68k-elf-gcc' to make sure that the one the command prompt sees is the one you just installed (e.g. is in the location rockboxdev.sh installed to) and not the old one. 
Logged

Offline nofish

  • Member
  • *
  • Posts: 24
Re: Cygwin is spitting error messages - some help please
« Reply #8 on: September 27, 2012, 01:40:03 PM »
still not there yet, but getting closer I hope...

I've run rockboxdev.sh as advised and it completed building the compiler after several hours.

I'm getting the same error message as before though. (see screenshots) What else am I mssing ? Is cygwin still seeing the old compiler ?

PS: I know that I could simply use the Virtualbox image instead, but I'd really like to go through this Cygwin building procedure succesfully once for learning purposes so any help is very appreciated. :)






* build_fail1.png (39.7 kB, 670x765 - viewed 171 times.)

* build_fail2.png (47.05 kB, 864x700 - viewed 170 times.)
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Cygwin is spitting error messages - some help please
« Reply #9 on: September 27, 2012, 04:19:12 PM »
Did you install the compiler to /opt? rockboxdev.sh defaults to /usr/local, so I assume your installation has the old compiler in /opt. A simple solution would be to make sure the new compiler comes first in the search path. I.e. do something like

export PATH=/usr/local/bin:$PATH

(assuming you used the default installation path for the compiler)
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Cygwin is spitting error messages - some help please
« Reply #10 on: September 27, 2012, 11:43:32 PM »
Quote from: nofish on September 27, 2012, 01:40:03 PM
PS: I know that I could simply use the Virtualbox image instead, but I'd really like to go through this Cygwin building procedure succesfully once for learning purposes so any help is very appreciated. :)

The installation is exactly the same in virtualbox, just much much faster since virtualbox isn't slow like cygwin.  
Logged

Offline nofish

  • Member
  • *
  • Posts: 24
Re: Cygwin is spitting error messages - some help please
« Reply #11 on: September 28, 2012, 08:44:05 AM »
Quote from: bluebrother on September 27, 2012, 04:19:12 PM
Did you install the compiler to /opt? rockboxdev.sh defaults to /usr/local, so I assume your installation has the old compiler in /opt. A simple solution would be to make sure the new compiler comes first in the search path. I.e. do something like

export PATH=/usr/local/bin:$PATH

(assuming you used the default installation path for the compiler)

Success !
That did it, it's now building without errors. :)
Phew, thank you both a lot for your patient help.

PS:
After this experience, I'd be willing to help help updating the relevant Wiki pages if this is planned.
For example
http://www.rockbox.org/wiki/SimpleGuideToCompiling
it took me a bit to find out that the link about SVN is no longer valid etc.


* build_success.png (33.74 kB, 562x610 - viewed 171 times.)
« Last Edit: September 28, 2012, 09:09:56 AM by nofish »
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Cygwin is spitting error messages - some help please
« Reply #12 on: September 28, 2012, 01:28:48 PM »
Quote from: nofish on September 28, 2012, 08:44:05 AM
After this experience, I'd be willing to help help updating the relevant Wiki pages if this is planned.

Such things aren't planned -- people willing to work in it do the work, and if nobody wants to do the work for something nobody does the work :) If you're willing to update the wiki: great! Get yourself a wiki account and fix the pages that are wrong / out of date. I'd suggest to also join on IRC to be able discussing things :)
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Cygwin is spitting error messages - some help please
 

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

Page created in 0.076 seconds with 14 queries.