Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: ace214 on November 06, 2006, 02:37:26 PM

Title: cygwin1.dll Problem
Post by: ace214 on November 06, 2006, 02:37:26 PM
All of a sudden (can't associate with any particular event) I am unable to configure make files or compile. I get an error message saying arm-elf-gcc (I believe- I'm not at my normal machine) is not in my path and that this is probably caused by multiple versions of cygwin1.dll and that I should search.

I checked the path variable in the profile config to be sure this was correct. I found two other copies (one in my EAC folder and one in my Burrrrrn folder) and deleted them but it still did not work. I tried reinstalling cygwin and the installer gave me a message that there was a old version of this dll in my WINDOWS\system32 folder. When I look in explorer or try to find it with MS-DOS it doesn't show up, which I suppose is why it doesn't show up in the search. But it does show up if I boot in Knoppix liveCD or in DOS. However, I get "access denied" when I try to delete it in DOS and of course Knoppix can't delete it off NTFS. Any help?

when i try to configure the makefile:
Code: [Select]
C:\cygwin\opt\arm\bin\arm-elf-gcc.exe (3740): *** proc magic mismatch detected -
 0x704D1F7E/0xD079E02.
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.
C:\cygwin\opt\arm\bin\arm-elf-gcc.exe (2092): *** proc magic mismatch detected -
 0x704D1F7E/0xD079E02.
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.
C:\cygwin\opt\arm\bin\arm-elf-gcc.exe (2748): *** proc magic mismatch detected -
 0x704D1F7E/0xD079E02.
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.
C:\cygwin\opt\arm\bin\arm-elf-gcc.exe (2788): *** proc magic mismatch detected -
 0x704D1F7E/0xD079E02.
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.
C:\cygwin\opt\arm\bin\arm-elf-gcc.exe (2824): *** proc magic mismatch detected -
 0x704D1F7E/0xD079E02.
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.
C:\cygwin\opt\arm\bin\arm-elf-gcc.exe (2848): *** proc magic mismatch detected -
 0x704D1F7E/0xD079E02.
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.
WARNING: The compiler you must use (arm-elf-gcc) is not in your path!
WARNING: this may cause your build to fail since we cannot do the
WARNING: checks we want now.
Created Makefile
Title: Re: cygwin1.dll Problem
Post by: saratoga on November 06, 2006, 04:07:13 PM
That message usually means you're trying to run a cygwin app from the Windows command line and not the preconfigured one that comes with cygwin (and has it's own path settings).  Make sure you're launching the correct command line window.
Title: Re: cygwin1.dll Problem
Post by: ace214 on November 06, 2006, 09:34:07 PM
Uh... I'm definitely using the right thing....  ::) Does anybody have an idea of how to get rid of the dll in the system32 dir?
Title: Re: cygwin1.dll Problem
Post by: saratoga on November 06, 2006, 11:13:31 PM
Uh... I'm definitely using the right thing....  ::) Does anybody have an idea of how to get rid of the dll in the system32 dir?

You can reboot into safe mode, and failing that the recovery console and delete it there.  However, this is not going to fix your problem and will probably break your cygwin entirely, so I recommend that you do not do that.

You said you're in the correct command line, however looking at your log, I'm pretty sure you aren't.  What did you run to get into cygwin?
Title: Re: cygwin1.dll Problem
Post by: ace214 on November 07, 2006, 07:52:16 AM
I click on the shortcut to the cygwin exe.
Title: Re: cygwin1.dll Problem
Post by: stripwax on November 08, 2006, 06:28:19 PM
What is the "cygwin exe"?  Do you mean the "cygwin batch file"?  i.e. the shortcut that points to cygwin.bat
Title: Re: cygwin1.dll Problem
Post by: ace214 on November 08, 2006, 10:52:25 PM
Yes, sorry.