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
| | |-+  arm-elf-gcc path...
« previous next »
  • Print
Pages: [1]

Author Topic: arm-elf-gcc path...  (Read 2888 times)

Offline Jon_

  • Member
  • *
  • Posts: 220
arm-elf-gcc path...
« on: March 09, 2007, 04:17:59 AM »
hello i would like to know how would i go about editing the path to get rid of the arm error at the beginning of compiling.

Would i have to open the profile file from the etc folder in notepad and edit an area inside?
Logged
Apple iPod Video 5.5th gen, 30gigs
9,400 Songs
19 Videos
637 Pictures  Apple iPod Touch 16GB 1,000 Songs 6 Videos 112 Pictures Jailbroken :D - Installed 103 Applications - Installed 13 Themes - 9 GB Free Space  Rockbox Member Since i don't know...

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: arm-elf-gcc path...
« Reply #1 on: March 09, 2007, 04:36:25 AM »
unless you reveal a bit more of information -- especially what system are you using, cygwin, vmware or something else? answering that question isn't easy.

If you are on cygwin you need to edit /etc/profile with an editor different to notepad. Notepad can't handle the line endings correctly.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: arm-elf-gcc path...
« Reply #2 on: March 09, 2007, 05:03:23 AM »
I still don't recommend changing the path in the /etc/profile file.

This is a core file that's part of the cygwin distribution. Any changes you make to this file will be lost the next time you upgrade cygwin.

It's far preferably to create a .profile file in your home directory, and add the PATH statement in that.
Logged

Read The Manual Please

Offline dandin1

  • Member
  • *
  • Posts: 2
Re: arm-elf-gcc path...
« Reply #3 on: April 02, 2007, 09:16:45 PM »
http://www.rockbox.org/twiki/bin/view/Main/CygwinDevelopment#Step_4_Add_the_cross_compiler_di

Or perhaps you havn't installed the ARM C compiler?  Then you just need to scroll up in that very same link.
Logged

Offline TMBordelon

  • Member
  • *
  • Posts: 1
Re: arm-elf-gcc path...
« Reply #4 on: April 06, 2007, 12:18:13 AM »
I initially had the same after a fresh Cygwin install.  You need to edit your (home directory specified during install)/.bash_profile file.

Add the following line anywhere within:

PATH=/opt/arm/bin:${PATH}

Todd
Logged

Offline Mikerman

  • Artist
  • Member
  • *
  • Posts: 721
Re: arm-elf-gcc path...
« Reply #5 on: April 15, 2007, 01:27:48 AM »
So, in reinstalling a clean build of Cygwin, I got the path error,  as the instructions warned.  Problems ever since.  Help?

I tried modifying the PATH line in the /etc/profile file, as the "Setting up a cygwin Rockbox development environment" instructions recommend.   However, I only have Windows WordPad and NotePad as editors--which then led to multiple Cygwin errors later.  (I assume the errors were due to my having used WordPad.)

I tried the alternate method, of typing in "export PATH=/usr/local/arm-elf/bin:$PATH" (without the quotes) after navigating to the build directory.  Again a no-go.

Then I found this thread, and tried adding the path line "PATH=/opt/arm/bin:${PATH}" (without quotes) to my (home directory specified during install)/.bash_profile file; again, I got multiple Cygwin errors.  However, I had used WordPad again.

I assume/hope the errors I am receiving are WordPad caused.  Can anyone lead me to a simple, compiled and acceptable editor that I simply could download and use (or offer another suggestion--perhaps a way to use WordPad for the editing (please note that I am not saving the files under WordPad as text files, but simply am using the save icon in the WordPad toolbar))?  

Thanks, as always--
« Last Edit: April 15, 2007, 10:49:06 AM by Mikerman »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: arm-elf-gcc path...
« Reply #6 on: April 15, 2007, 01:46:44 AM »
I use textpad.  Anything that allows you to select unix line endings would be fine.

Quote
I tried the alternate method, of typing in "export PATH=/usr/local/arm-elf/bin:$PATH" (without the quotes) after navigating to the build directory.  Again a no-go.

Is your copy of arm-elf-gcc in "/usr/local/arm-elf/bin"?  That should be all you need to do.
Logged

Offline Mikerman

  • Artist
  • Member
  • *
  • Posts: 721
Re: arm-elf-gcc path...
« Reply #7 on: April 15, 2007, 02:02:56 AM »
Thanks and funny but, I don't have a "/usr/local/arm-elf/bin"--there's no arm-elf folder there.

I located Notepad++ to use as an editor on the .bash_profile, but am afraid from a first try that my original use of WordPad bulloxed my .bash_profile file with crud.  Will have to get some sleep and think on in the morning how best to generate a new and clean one--perhaps just starting all over.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: arm-elf-gcc path...
« Reply #8 on: April 15, 2007, 02:24:28 AM »
Quote from: Mikerman on April 15, 2007, 02:02:56 AM
Thanks and funny but, I don't have a "/usr/local/arm-elf/bin"--there's no arm-elf folder there.

You're probably supposed to change the path to whatever folder you put your arm-elf-gcc into.

Quote from: Mikerman on April 15, 2007, 02:02:56 AM
I located Notepad++ to use as an editor on the .bash_profile, but am afraid from a first try that my original use of WordPad bulloxed my .bash_profile file with crud.  Will have to get some sleep and think on in the morning how best to generate a new and clean one--perhaps just starting all over.

Can't you just open it in Windows line return mode (which should look fine since you saved it in that mode) and then save it back out into unix mode?  I've done that before and never had a problem.  Haven't used that editor, but the "open" dialog window probably lets you pick the line ending mode.
Logged

Offline Mikerman

  • Artist
  • Member
  • *
  • Posts: 721
Re: arm-elf-gcc path...
« Reply #9 on: April 15, 2007, 03:36:32 AM »
Notepad++ has worked out just great; recommended to others including based on ease of use (just put the name into a search engine to find).

And many thanks to those above noting the need to personalize the paths--as I wasn't sure what was happening, I was being literal to all the instructions/suggestions--a night's sleep let me see my need to vary things and personalize.
« Last Edit: April 15, 2007, 10:45:22 AM by Mikerman »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  arm-elf-gcc path...
 

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

Page created in 0.107 seconds with 14 queries.