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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Trying to compile for first time -- PATH problems
« previous next »
  • Print
Pages: [1]

Author Topic: Trying to compile for first time -- PATH problems  (Read 2198 times)

Offline Slugacannaduff

  • Member
  • *
  • Posts: 7
Trying to compile for first time -- PATH problems
« on: February 16, 2010, 11:23:32 AM »
I am hoping to get into RB development... and currently FRUSTRATED!

Just trying to compile for the first time, using the current SVN code.  I wanted to make sure I could do that before doing any actual coding myself.   So far its a big fail!

OK, starting from the top:

 - I'm on a win xp machine (media center edition)

 - I setup cygwin.  Seemed to go OK, although I did have to use that - noverify command line.  After adding that, the second setup with adding rockbox packages ran.  The cygwin environment seems to run OK.

 - Following the instructions on Simple Guide to Compiling (and later, How to Compile Rockbox), I can select my target (ipod video = 22), then I select 'N' for build type.

 - HERES THE ERROR: At this point I get  [WARNING] The compiler you need to use (arm-elf-gcc) is not in your PATH!

 - It does however say 'Completed makefile'

 - Then I 'make' and get   make: gcc: command not found  Error 127



Now I have to say...  this stuff is all brand new to me, and I don't have a clue what the heck I am typing.  But I've figured stuff out before and usually can get up and running.

But so far I've tried quite a few things with no success:

 - Followed these instructions to modify PATH in the file cygwin/etc/profile
 
 Edit using nano or vi (not Notepad or Wordpad in Windows) /etc/profile and add ":/opt/sh/bin:/opt/m68k/bin:/opt/arm/bin" (without the quotation marks) to the end of the line that says:

     PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin...
so that it reads:
     PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/opt/sh/bin:/opt/m68k/bin:/opt/arm/bin:$PATH


 - It might be worth mentioning that the original line there did not include the 'X11R6' part.  I tried the line both with and without that.

 - Then I tried this one within cygwin:  export PATH=/usr/local/arm-elf/bin:$PATH

 - Then I tried re-installing the rockbox packages, since the cygwin instructions say the installation script is supposed to get this right.

 - I also tried (at various times) moving my ROCKBOX folder around - should this be a sub-folder of CYGWIN?  Does this matter?

 - FINALLY, if I tell cygwin WHICH ARM-ELF-GCC, I get this response:  /opt/arm/bin/arm-elf-gcc


[/heavy sigh]

I have some ideas that I think will be cool... would really like to try writing code...

Help please?




 




Logged

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: Trying to compile for first time -- PATH problems
« Reply #1 on: February 16, 2010, 11:26:05 AM »
Did you re-run configure?
Logged

Offline Slugacannaduff

  • Member
  • *
  • Posts: 7
Re: Trying to compile for first time -- PATH problems
« Reply #2 on: February 16, 2010, 11:34:31 AM »
No.

When/how/where do I do this?  After making the PATH change in /etc/profile ?  (The instructions on that don't mention this)
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Trying to compile for first time -- PATH problems
« Reply #3 on: February 16, 2010, 11:50:17 AM »
In your build directory just type '../tools/configure' again.  Assuming you've got the path setup correctly it should find the compiler this time.
Logged

Offline Slugacannaduff

  • Member
  • *
  • Posts: 7
Re: Trying to compile for first time -- PATH problems
« Reply #4 on: February 16, 2010, 12:08:49 PM »
Oh, if that's what gevaerts meant by re-running compile, then yes... about 15 times now.  I re-tried that after each of the attempted fixes above.

Assuming you've got the path setup correctly

That's where the problem seems to lie.

When I tell cygwin

   $ which arm-elf-gcc


 I get back

/opt/arm/bin/arm-elf/gcc

Is that correct, or provide a clue as to where the problem is?

Thanks for the help.

 
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: Trying to compile for first time -- PATH problems
« Reply #5 on: February 16, 2010, 12:11:36 PM »
If which can find it then the path is set up fine and configure should be working..
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline Slugacannaduff

  • Member
  • *
  • Posts: 7
Re: Trying to compile for first time -- PATH problems
« Reply #6 on: February 16, 2010, 12:29:01 PM »
 ???

Well it still doesn't work, so maybe the problem is elsewhere?

So, again, after I select build type, I get

[WARNING] The compiler you need to use (arm-elf-gcc) is not in your PATH!

(This even though I do get the response to WHICH as noted in last post)

When I try MAKE anyway, I get

CC tools/rdf2binary
make: gcc: Command not found
make: *** [/cygdrive/c/cygwin/rockbox/tools/rdf2binary] Error 127



Thank you for bearing with me.  Really, I am not a total idiot.   :P




Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Trying to compile for first time -- PATH problems
« Reply #7 on: February 16, 2010, 12:46:31 PM »
Post the make file configure generates.
Logged

Offline Slugacannaduff

  • Member
  • *
  • Posts: 7
Re: Trying to compile for first time -- PATH problems
« Reply #8 on: February 16, 2010, 12:55:22 PM »
This:


## Automatically generated. http://www.rockbox.org/

export ROOTDIR=/cygdrive/c/cygwin/rockbox
export FIRMDIR=$(ROOTDIR)/firmware
export APPSDIR=$(ROOTDIR)/apps
export TOOLSDIR=$(ROOTDIR)/tools
export DOCSDIR=$(ROOTDIR)/docs
export MANUALDIR=${ROOTDIR}/manual
export DEBUG=
export MODELNAME=ipodvideo
export ARCHOSROM=
export FLASHFILE=
export TARGET_ID=15
export TARGET=-DIPOD_VIDEO
export CPU=arm
export MANUFACTURER=ipod
export OBJDIR=/cygdrive/c/cygwin/rockbox/build
export BUILDDIR=/cygdrive/c/cygwin/rockbox/build
export LANGUAGE=english
export VOICELANGUAGE=
export MEMORYSIZE=32
export VERSION:=$(shell $(ROOTDIR)/tools/version.sh $(ROOTDIR))
export BUILDDATE:=$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
export MKFIRMWARE=/cygdrive/c/cygwin/rockbox/tools/scramble -add=ipvd
export BMP2RB_MONO=/cygdrive/c/cygwin/rockbox/tools/bmp2rb -f 0
export BMP2RB_NATIVE=/cygdrive/c/cygwin/rockbox/tools/bmp2rb -f 4
export BMP2RB_REMOTEMONO=
export BMP2RB_REMOTENATIVE=
export BINARY=rockbox.ipod
export APPEXTRA=recorder:gui
export ENABLEDPLUGINS=yes
export SOFTWARECODECS=yes
export EXTRA_DEFINES=
export HOSTCC=gcc
export HOSTAR=/usr/bin/ar
export CC=/opt/arm/bin/arm-elf-gcc
export LD=/opt/arm/bin/arm-elf-ar
export AR=/opt/arm/bin/arm-elf-ar
export AS=/opt/arm/bin/arm-elf-as
export OC=/opt/arm/bin/arm-elf-objcopy
export WINDRES=arm-elf-windres
export DLLTOOL=arm-elf-dlltool
export DLLWRAP=arm-elf-dllwrap
export RANLIB=/opt/arm/bin/arm-elf-ranlib
export PREFIX=
export PROFILE_OPTS=
export SIMVER=
export SIMDIR=$(ROOTDIR)/uisimulator/sdl
export GCCOPTS=-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes -pipe -mcpu=arm7tdmi -mlong-calls -fomit-frame-pointer
export TARGET_INC=-I$(FIRMDIR)/target/arm/ipod/video -I$(FIRMDIR)/target/arm/ipod -I$(FIRMDIR)/target/arm
export LOADADDRESS=
export SHARED_FLAG=
export LDOPTS=
export GCCVER=
export GCCNUM=
export UNAME=CYGWIN_NT-5.1
export MANUALDEV=ipodvideo
export TTS_OPTS=
export TTS_ENGINE=
export ENC_OPTS=
export ENCODER=
export USE_ELF=
export RBDIR=.rockbox

CONFIGURE_OPTIONS=--target=$(MODELNAME) --ram=$(MEMORYSIZE) --rbdir=$(RBDIR) --type=N

include $(TOOLSDIR)/root.make
Logged

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: Trying to compile for first time -- PATH problems
« Reply #9 on: February 16, 2010, 01:02:19 PM »
Did you install the packages specified in http://www.rockbox.org/wiki/CygwinDevelopment#Step_2_1_Package_selection ?
Logged

Offline Slugacannaduff

  • Member
  • *
  • Posts: 7
Re: Trying to compile for first time -- PATH problems
« Reply #10 on: February 16, 2010, 01:12:12 PM »
Yes.

And for the Rockbox-specific packages I selected all.

And I did that a second time, running re-install for devel - arm-elf-gcc, hoping that the install script would fix the (apparent) PATH issue.

(Although it might be worth mentioning again that the very first time I tried to install the rockbox-specific packages, I got an error message [foretold as a possibility in the instructions] that required me to use the -noverify command line statement.  With that in place, it seemed to run OK.)
« Last Edit: February 16, 2010, 01:15:44 PM by Slugacannaduff »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Trying to compile for first time -- PATH problems
 

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

Page created in 0.086 seconds with 15 queries.