Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: mschneider on May 23, 2007, 06:08:25 PM

Title: arm-elf-gcc
Post by: mschneider 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.
Title: Re: arm-elf-gcc
Post by: saratoga 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.
Title: Re: arm-elf-gcc
Post by: mschneider 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...
Title: Re: arm-elf-gcc
Post by: tdtooke 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.
Title: Re: arm-elf-gcc
Post by: Mikerman 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.
Title: Re: arm-elf-gcc
Post by: mschneider 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..."
Title: Re: arm-elf-gcc
Post by: elborak on May 29, 2007, 12:08:44 PM
So have you searched to see if you have multiple cygwin1.dll files in your path?
Title: Re: arm-elf-gcc
Post by: mschneider 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)
Title: Re: arm-elf-gcc
Post by: elborak 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?
Title: Re: arm-elf-gcc
Post by: mschneider on May 29, 2007, 12:32:40 PM
yes, nothing changed.
Title: Re: arm-elf-gcc
Post by: saratoga on May 29, 2007, 01:11:09 PM
Edit your cygwin PATH to remove all paths beginning with C:.
Title: Re: arm-elf-gcc
Post by: mschneider 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.
Title: Re: arm-elf-gcc
Post by: Mikerman on May 29, 2007, 09:03:58 PM
I use Notepad++ (obtained on the web) and find it entirely easy to use.
Title: Re: arm-elf-gcc
Post by: mschneider on May 30, 2007, 01:06:37 PM
How exactly do i edit my PATH though. Do i open a file?
Title: Re: arm-elf-gcc
Post by: saratoga 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.
Title: Re: arm-elf-gcc
Post by: Mikerman on May 30, 2007, 04:15:21 PM
How exactly do i edit my PATH though. Do i open a file?
Please see my post above. Use Notepad++ just like a text editor, and add the noted line to your .bash_profile file.
Title: Re: arm-elf-gcc
Post by: mschneider on May 31, 2007, 02:02:59 PM
To build the cross compiler for sansa do you have to patch gcc 4.0.3?
Title: Re: arm-elf-gcc
Post by: GodEater on June 01, 2007, 02:54:56 AM
No - just use the rockboxdev.sh script that comes with the rockbox source code.
Title: Re: arm-elf-gcc
Post by: bluebrother on June 01, 2007, 04:33:24 AM
for cygwin there are packages available (see the installation instructions in the wiki about that), so no need to build or patch the compiler yourself.
Title: Re: arm-elf-gcc
Post by: mschneider on June 01, 2007, 02:18:50 PM
Oh, well i thought my problem was that i had not built the compiler. But this appears to be wrong. I'm still getting those same errors though. Any ideas as to what my actual problem may be? I think i'm completely lost. ???
Title: Re: arm-elf-gcc
Post by: bluebrother on June 01, 2007, 02:24:48 PM
May I suggest simply using the vmware image? It's a standard linux running, and that works similarly to cygwin. It comes preconfigured, so you can just go and start.
Title: Re: arm-elf-gcc
Post by: mschneider on June 01, 2007, 02:34:15 PM
Hmm, does this actually install Linux on the drive? It looks a lot more simple than cygwin but i just need some clarification.
Title: Re: arm-elf-gcc
Post by: bluebrother on June 01, 2007, 03:13:01 PM
have you considered searching the web and wiki before a bit? Vmware emulates a complete PC, and for that it also simulates the hard disks. From the view of your host system (i.e. windows) it's just everything contained in a big file. It does not install Linux because it is already installed...

http://www.rockbox.org/twiki/bin/view/Main/VMwareDevelopmentPlatform
Title: Re: arm-elf-gcc
Post by: mschneider on June 01, 2007, 05:36:02 PM
Great, i'm downloading/installing now! ;D
Title: Re: arm-elf-gcc
Post by: mschneider on June 01, 2007, 10:31:04 PM
Ok i've installed the image and the player on my dev computer that does not have internet. I've used cygwin on a computer that does have internet to get the daily build. I have copied the rockbox folder over to my dev computer but cant figure out how to get to it in vmware. Where should i put the folder?
Title: Re: arm-elf-gcc
Post by: mschneider on June 02, 2007, 06:29:15 PM
Ok everything's good. Compiled with VMware (thanks for the suggestion) and everything works. Thanks for the help!
Title: Re: arm-elf-gcc
Post by: dkarma on September 10, 2007, 02:24:03 PM
How exactly do i edit my PATH though. Do i open a file?

if you're using cygwin you type

nano /etc/profile

this opens the profile file that holds the PATH info...
edit the PATH line...

Mine looked like this when done

PATH=/usr/local/bin:/usr/bin:/usr/bin:/bin:/usr/X11R6/bin:/ops/sh/bin:/opt/m68k/bin:/opt/arm/bin:$PATH

yours should look similar...
...........................I added manually everything after here ^