Rockbox Development > Starting Development and Compiling

Cygwin Make Error

(1/2) > >>

MattSr:
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: ---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
--- End code ---

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: ---/bin/sh: arm-elf-eabi-gcc: command not found
--- End code ---
and the last few lines saying this:

--- Code: ---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
--- End code ---

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

So I go through installing it:

--- Code: ---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
--- End code ---

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: ---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
--- End code ---

Does this mean that there is an issue downloading it from the server? Or is it something on my end?

saratoga:
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

bluebrother:

--- Quote from: MattSr on June 07, 2011, 05:38:26 PM ---Matt@Matt-Laptop /cygdrive/d/SlikSvn/bin/Rockbox/Build
$ ../tools/configure

--- End quote ---

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.

MattSr:
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

bluebrother:

--- 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.

--- End quote ---

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.

Navigation

[0] Message Index

[#] Next page

Go to full version