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:

Rockbox Ports are now being developed for various digital audio players!

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

Author Topic: arm-elf-gcc  (Read 14048 times)

Offline mschneider

  • Member
  • *
  • Posts: 235
arm-elf-gcc
« on: May 23, 2007, 06:08:25 PM »
When i try to compile my normal build i am presented with WARNING: arm-elf-gcc is not in your path. When i try to compile i get a bunch of "Dr. Watson" errors. Are these linked to that or am i doing something wrong? or should i just continue?

I have re-installed and added the compiler to the path.
« Last Edit: May 23, 2007, 06:21:31 PM by mschneider »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: arm-elf-gcc
« Reply #1 on: May 23, 2007, 07:11:01 PM »
If you added it to your path, type "which arm-elf-gcc" to make sure its actually in the path variable correctly.

Also, dr.watson errors usually mean a windows program crashed I think.  So you're having cygwin crash on you when you try and make?  that doesn't sound right at all.
Logged

Offline mschneider

  • Member
  • *
  • Posts: 235
Re: arm-elf-gcc
« Reply #2 on: May 23, 2007, 09:49:50 PM »
No cygwin doesnt crash. And i actually get a zip file (make zip). Everything seems to be working...
Logged

Offline tdtooke

  • Member
  • *
  • Posts: 151
Re: arm-elf-gcc
« Reply #3 on: May 26, 2007, 11:51:25 PM »
On the wiki simple guide to compiling it explains how to put it in your path.  Basically you can either modify your bash profile or edit your path in your environment variables to add that.
Logged

Offline Mikerman

  • Artist
  • Member
  • *
  • Posts: 721
Re: arm-elf-gcc
« Reply #4 on: May 27, 2007, 12:37:44 PM »
This worked for me in an equivalent circumstance, where the m68k file could not be found:

Edit the .bash_profile file in your home directory (cygwin\home\[your name]\.bash_profile), to include the path line at top,

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

Use Notepad++ or a similar code editor to edit the file (seemingly NOT Windows WordPad or NotePad, which add in line endings).  Notepad++ is freely available (for free) on the web.

Presumably, here for you, you would add the path line to the .bash_profile file,

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

As it was explained in a thread here, the path line change can be added into a different file, as noted in the Rockbox Cygwin install instructions, but that file would get overwritten with a new Cygwin version install; the solution here, recommended in the forums, is said to avoid that issue.

I hope this helps.
Logged

Offline mschneider

  • Member
  • *
  • Posts: 235
Re: arm-elf-gcc
« Reply #5 on: May 29, 2007, 12:00:06 PM »
well i've added it to my path using "export PATH=/opt/arm/bin:$PATH" and presumably this adds it. but when i try to compile a normal build i get this message over and over (about five or ten times):

C:\cygwin\opt\arm\bin\arm-elf-gcc.exe (2076): *** system shared memory version m
ismatch detected - 0x2D1E009C/0x75BE0081.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.

and afterwards i get the normal "WARNING: the compiler you must use is not in your path..."
Logged

Offline elborak

  • Member
  • *
  • Posts: 177
Re: arm-elf-gcc
« Reply #6 on: May 29, 2007, 12:08:44 PM »
So have you searched to see if you have multiple cygwin1.dll files in your path?
Logged

Offline mschneider

  • Member
  • *
  • Posts: 235
Re: arm-elf-gcc
« Reply #7 on: May 29, 2007, 12:15:38 PM »
Yes i have the current  located in C:/cygwin/bin. it is in my path as :/bin:
I've done a search and the only other cygwin.dll's are in a couple video converters i have. (those are not in my path)
Logged

Offline elborak

  • Member
  • *
  • Posts: 177
Re: arm-elf-gcc
« Reply #8 on: May 29, 2007, 12:25:16 PM »
Either you have a bad cygwin install or you have another version of cygwin1.dll that's being picked up. Did you reboot as the message recommended?
Logged

Offline mschneider

  • Member
  • *
  • Posts: 235
Re: arm-elf-gcc
« Reply #9 on: May 29, 2007, 12:32:40 PM »
yes, nothing changed.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: arm-elf-gcc
« Reply #10 on: May 29, 2007, 01:11:09 PM »
Edit your cygwin PATH to remove all paths beginning with C:.
Logged

Offline mschneider

  • Member
  • *
  • Posts: 235
Re: arm-elf-gcc
« Reply #11 on: May 29, 2007, 07:38:35 PM »
should i edit with nano? if so, how? I'm not very familiar with using that and all the wiki says about it is to use it.
Logged

Offline Mikerman

  • Artist
  • Member
  • *
  • Posts: 721
Re: arm-elf-gcc
« Reply #12 on: May 29, 2007, 09:03:58 PM »
I use Notepad++ (obtained on the web) and find it entirely easy to use.
Logged

Offline mschneider

  • Member
  • *
  • Posts: 235
Re: arm-elf-gcc
« Reply #13 on: May 30, 2007, 01:06:37 PM »
How exactly do i edit my PATH though. Do i open a file?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: arm-elf-gcc
« Reply #14 on: May 30, 2007, 01:28:00 PM »
http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler

I just do 'echo $PATH' and 'export PATH=/home/linus/sh1/bin:$PATH' steps, though in this case you won't want to export the $PATH variable, just parts of it you get from echo $PATH.

There might be an easier way.
Logged

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

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

Page created in 0.092 seconds with 14 queries.