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 Make Error
« previous next »
  • Print
Pages: [1]

Author Topic: Cygwin Make Error  (Read 11008 times)

Offline MattSr

  • Member
  • *
  • Posts: 3
Cygwin Make Error
« on: June 07, 2011, 05:38:26 PM »
Alright... so basically I spent a few hours going through the guide for compiling rockbox so I could add in a patch to the source.

I downloaded the Cygwin Development Environment and went through and downloaded all the listed packages that I supposedly need.

So I open Cygwin, cd to my Rockbox source directory and then configure and get this:

Code: [Select]
Matt@Matt-Laptop /cygdrive/d/SlikSvn/bin/Rockbox/Build
$ ../tools/configure
Using temporary directory /tmp
Enter target platform:
 ==Archos==               ==iriver==             ==Apple iPod==
  0) Player/Studio        10) H120/H140          20) Color/Photo
  1) Recorder             11) H320/H340          21) Nano 1G
  2) FM Recorder          12) iHP-100/110/115    22) Video
  3) Recorder v2          13) iFP-790            23) 3G
  4) Ondio SP             14) H10 20Gb           24) 4G Grayscale
  5) Ondio FM             15) H10 5/6Gb          25) Mini 1G
  6) AV300                                       26) Mini 2G
                          ==Toshiba==            27) 1G, 2G
 ==Cowon/iAudio==         40) Gigabeat F/X       28) Nano 2G
 30) X5/X5V/X5L           41) Gigabeat S         29) Classic/6G
 31) M5/M5L
 32) 7                    ==Olympus=             ==SanDisk==
 33) D2                   70) M:Robe 500         50) Sansa e200
 34) M3/M3L               71) M:Robe 100         51) Sansa e200R
                                                 52) Sansa c200
 ==Creative==             ==Philips==            53) Sansa m200
 90) Zen Vision:M 30GB    100) GoGear SA9200     54) Sansa c100
 91) Zen Vision:M 60GB    101) GoGear HDD1630/   55) Sansa Clip
 92) Zen Vision                HDD1830           56) Sansa e200v2
                          102) GoGear HDD6330    57) Sansa m200v4
 ==Onda==                                        58) Sansa Fuze
 120) VX747               ==Meizu==              59) Sansa c200v2
 121) VX767               110) M6SL              60) Sansa Clipv2
 122) VX747+              111) M6SP              61) Sansa View
 123) VX777               112) M3                62) Sansa Clip+
                                                 63) Sansa Fuze v2
 ==Samsung==              ==Tatung==             64) Sansa Fuze+
 140) YH-820              150) Elio TPJ-1022
 141) YH-920                                     ==Logik==
 142) YH-925              ==Packard Bell==       80) DAX 1GB MP3/DAB
 143) YP-S3               160) Vibe 500
                                                 ==Lyre project==
==Application==           ==MPIO==               130) Lyre proto 1
 200) SDL                 170) HD200             131) Mini2440
 201) Android             171) HD300
 202) Nokia N8xx
 203) Nokia N900          ==ROCKCHIP==
 204) Pandora             180) rk27xx generic

28
Platform set to ipodnano2g
Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, (C)heckWPS, (D)atabase to
ol, (M)anual: (Defaults to N)
n
Normal build selected
Using source code root directory: /cygdrive/d/SlikSvn/bin/Rockbox
../tools/configure: line 3388: arm-elf-eabi-gcc: command not found
[WARNING] The compiler you must use (arm-elf-eabi-gcc) is not in your path!
[WARNING] this may cause your build to fail since we cannot do the
[WARNING] checks we want now.
Using arm-elf-eabi-ld 2.20.1.20100303
Created Makefile

At first I didn't notice the warning messages and went ahead and just "made" it and got a crap ton of lines of this:
Code: [Select]
/bin/sh: arm-elf-eabi-gcc: command not found
and the last few lines saying this:
Code: [Select]
CC firmware/common/config.c
make: arm-elf-eabi-gcc: Command not found
make: *** [/cygdrive/d/SlikSvn/bin/Rockbox/Build/firmware/common/config.o] Error
 127

I hunted around through the guide some more and realized I needed the latest compiler.

So I go through installing it:
Code: [Select]
Matt@Matt-Laptop /cygdrive/d
$ SlikSvn/bin/Rockbox/tools/rockboxdev.sh
Download directory : /tmp/rbdev-dl (set RBDEV_DOWNLOAD to change)
Install prefix     : /usr/local  (set RBDEV_PREFIX to change)
Build dir          : /tmp/rbdev-build (set RBDEV_BUILD to change)
Make options       :  (set MAKEFLAGS to change)

Select target arch:
s   - sh       (Archos models)
m   - m68k     (iriver h1x0/h3x0, iaudio m3/m5/x5 and mpio hd200)
e   - arm-eabi (ipods, iriver H10, Sansa, D2, Gigabeat, etc)
a   - arm      (older ARM toolchain, deprecated)
i   - mips     (Jz4740 and ATJ-based players)
separate multiple targets with spaces
(Example: "s m a" will build sh, m68k and arm)

e

After its done, I go through the first part and try to make my build again but it gave me the same error...

I took a look over in usr/local/bin/ and saw a bunch of arm-elf-eabi-*.exe files in addition to SDL.dll and sdl-config although I didn't see a arm-elf-eabi-gcc.exe file. Should I be?

In case it matters, here are all the packages that I went through and manually added to Cygwin

Archive - zip
Archive - unzip
Devel - binutils
Devel - gcc
Devel - gcc-g++
Devel - gcc-mingw-core
Devel - gdb
Devel - libiconv
Devel - make
Devel - mingw-runtime
Devel - patchutils
Devel - subversion
Editors - nano
Interpreters - perl
Net - Curl
Text - tetex-base
Text - tetex-extra
X11 - libfreetype-devel
X11 - libfreetype6

Devel - sdl
Devel - sh-elf-binutils
Devel - sh-elf-gcc

Edit:

I decided to run rockboxdev.sh again and I noticed the last few lines saying this:

Code: [Select]
gcc: fork: Resource temporarily unavailable
make[2]: *** [getruntime.o] Error 1
make[2]: Leaving directory `/tmp/rbdev-build/build-binutils/libiberty'
make[1]: *** [all-libiberty] Error 2
make[1]: Leaving directory `/tmp/rbdev-build/build-binutils'
make: *** [all] Error 2

Does this mean that there is an issue downloading it from the server? Or is it something on my end?
« Last Edit: June 07, 2011, 06:13:51 PM by MattSr »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Cygwin Make Error
« Reply #1 on: June 07, 2011, 06:04:26 PM »
Sounds like its not the compiler wasn't add to the path:

http://www.rockbox.org/wiki/CygwinDevelopment#Step_4:_Add_the_cross_45compiler_directory_to_your_path
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Cygwin Make Error
« Reply #2 on: June 07, 2011, 07:00:04 PM »
Quote from: MattSr on June 07, 2011, 05:38:26 PM
Matt@Matt-Laptop /cygdrive/d/SlikSvn/bin/Rockbox/Build
$ ../tools/configure

You really shouldn't put a checkout in the install folder of a program. And you shouldn't use a Windows svn client from Cygwin.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline MattSr

  • Member
  • *
  • Posts: 3
Re: Cygwin Make Error
« Reply #3 on: June 08, 2011, 03:14:59 AM »
I'm still pretty new to this. What do you mean by a "checkout," and what's wrong with the svn client from Cygwin? The client worked fine for me and it was what was used in the guide so it seemed fine to me.

I'm reinstalling Cygwin cuz i did something stupid >.< so once it's done I'll work on adding the cross-compiler directory
« Last Edit: June 08, 2011, 03:17:43 AM by MattSr »
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Cygwin Make Error
« Reply #4 on: June 08, 2011, 04:45:11 AM »
Quote from: MattSr on June 08, 2011, 03:14:59 AM
I'm still pretty new to this. What do you mean by a "checkout," and what's wrong with the svn client from Cygwin? The client worked fine for me and it was what was used in the guide so it seemed fine to me.

The Cygwin svn client and a Windows svn client (your previous post indicate that you are using SlikSVN which is a Windows client and not a Cygwin client). There is a notable difference between svn running natively on Windows and a Cygwin svn client when handling line endings and this can cause major problems. So do not work inside of a svn client installation folder and to not use a native Windows svn client.

Also, show the command you used to add the compiler to your PATH variable.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline MattSr

  • Member
  • *
  • Posts: 3
Re: Cygwin Make Error
« Reply #5 on: June 08, 2011, 05:50:38 AM »
Ill get back to you on that, I was running rockboxdev.sh when in the middle of one of it's downloads, my internet randomly cut out. I re-ran it and discovered that it doesn't re-download corruped files. So I had to do a little searching, delete the corrupted file, and now I'm running it a 3rd time... seems to take about 30 minutes to an hour each time :P

Edit:

Wow... maybe I did something wrong the other times, rockboxdev.sh has been going for at least 3 hours now...

Edit 2:

Alright, so it finally finished and I got this:

Code: [Select]
Matt@Matt-Laptop /cygdrive/d/SlikSvn/bin/Rockbox/Build
$ ../tools/configure
Using temporary directory /tmp
Enter target platform:
 ==Archos==               ==iriver==             ==Apple iPod==
  0) Player/Studio        10) H120/H140          20) Color/Photo
  1) Recorder             11) H320/H340          21) Nano 1G
  2) FM Recorder          12) iHP-100/110/115    22) Video
  3) Recorder v2          13) iFP-790            23) 3G
  4) Ondio SP             14) H10 20Gb           24) 4G Grayscale
  5) Ondio FM             15) H10 5/6Gb          25) Mini 1G
  6) AV300                                       26) Mini 2G
                          ==Toshiba==            27) 1G, 2G
 ==Cowon/iAudio==         40) Gigabeat F/X       28) Nano 2G
 30) X5/X5V/X5L           41) Gigabeat S         29) Classic/6G
 31) M5/M5L
 32) 7                    ==Olympus=             ==SanDisk==
 33) D2                   70) M:Robe 500         50) Sansa e200
 34) M3/M3L               71) M:Robe 100         51) Sansa e200R
                                                 52) Sansa c200
 ==Creative==             ==Philips==            53) Sansa m200
 90) Zen Vision:M 30GB    100) GoGear SA9200     54) Sansa c100
 91) Zen Vision:M 60GB    101) GoGear HDD1630/   55) Sansa Clip
 92) Zen Vision                HDD1830           56) Sansa e200v2
                          102) GoGear HDD6330    57) Sansa m200v4
 ==Onda==                                        58) Sansa Fuze
 120) VX747               ==Meizu==              59) Sansa c200v2
 121) VX767               110) M6SL              60) Sansa Clipv2
 122) VX747+              111) M6SP              61) Sansa View
 123) VX777               112) M3                62) Sansa Clip+
                                                 63) Sansa Fuze v2
 ==Samsung==              ==Tatung==             64) Sansa Fuze+
 140) YH-820              150) Elio TPJ-1022
 141) YH-920                                     ==Logik==
 142) YH-925              ==Packard Bell==       80) DAX 1GB MP3/DAB
 143) YP-S3               160) Vibe 500
                                                 ==Lyre project==
==Application==           ==MPIO==               130) Lyre proto 1
 200) SDL                 170) HD200             131) Mini2440
 201) Android             171) HD300
 202) Nokia N8xx
 203) Nokia N900          ==ROCKCHIP==
 204) Pandora             180) rk27xx generic

28
Platform set to ipodnano2g
Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, (C)heckWPS, (D)atabase to
ol, (M)anual: (Defaults to N)
n
Normal build selected
Using source code root directory: /cygdrive/d/SlikSvn/bin/Rockbox
Using arm-elf-eabi-gcc 4.4.4 (404)
Using arm-elf-eabi-ld 2.20.1.20100303
Created Makefile

Looked like everything was good to go and it was going to build properly now but then this came up:

-Deleted-

Sorry, what I had earlier was there because I didn't restart Cygwin. I compiled the unpatched source and everything worked perfectly. Thanks guys, everything works now.
« Last Edit: June 08, 2011, 02:04:59 PM by MattSr »
Logged

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

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

Page created in 0.076 seconds with 14 queries.