Problem after updating and reinstalling.

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem after updating and reinstalling.

asallen08
I am currently taking intro to computer programming and my professor told me to post in this forum since he didn't know what my error message was. He told everyone in the class to update the Cygwin software by going to the website and clicking on the download link. I have read a lot of things on this site that I don't understand. Can some one please help me. I have programs that I need to compile and run for class.

After I ran the install it popped up a new new shortcut on the desktop. So now I have two. The old one and the new one. When I clicked on the new one and typed in gcc and the name of the program that I needed to compile it said: .c:0: fatal error: can't open /tmp/ccASZhsx.s for writing: No such file or directory
compilation terminated. Does anyone one now what this mean and how I can fix this error? According to my book it said to open up CMD and at the C:\ type PATH %PATH;c:\cygwin\bin. So I closed Cygwin and opened up CMD and typed in the path re-open cygwin and still got the same message. When I type ls into Cygwin I can see my programs and my .c files but I can't compile any of them.

The same thing happens when I open the old one as well.


Reply | Threaded
Open this post in threaded view
|

Re: Problem after updating and reinstalling.

marco atzeri-4
On 12/14/2012 5:17 AM, asallen08 wrote:
> I am currently taking intro to computer programming and my professor told me
> to post in this forum since he didn't know what my error message was. He
> told everyone in the class to update the Cygwin software by going to the
> website and clicking on the download link. I have read a lot of things on
> this site that I don't understand. Can some one please help me. I have
> programs that I need to compile and run for class.
>
> After I ran the install it popped up a new new shortcut on the desktop. So
> now I have two. The old one and the new one. When I clicked on the new one

in theory , you should have only one called "Cygwin Terminal"


To check the program and version, click on the icon, and on the terminal
window click on the "C>" drawing on the upper left corner,
click "Options.." and than "About"

Latest is mintty , version 1.1.2.

> and typed in gcc and the name of the program that I needed to compile it
> said: .c:0: fatal error: can't open /tmp/ccASZhsx.s for writing: No such
> file or directory

what is the output of " ls -l $(which gcc)" and "ls /" ?

> compilation terminated. Does anyone one now what this mean and how I can fix
> this error? According to my book it said to open up CMD and at the C:\ type
> PATH %PATH;c:\cygwin\bin.

obsolete suggestion. Don't use CMD, use instead "Cygwin Terminal" and
surely is not a good idea to put cygwin\bin at the end of the PATH.
On bash (the standard command interpreter for cygwin) the "bin" is
already added to the PATH at its begin.

> So I closed Cygwin and opened up CMD and typed in
> the path re-open cygwin and still got the same message. When I type ls into
> Cygwin I can see my programs and my .c files but I can't compile any of
> them.
>
> The same thing happens when I open the old one as well.
>

please follow
> Problem reports:       http://cygwin.com/problems.html

specially

"Run cygcheck -s -v -r > cygcheck.out and include that file as an
attachment in your report. Please do not compress or otherwise encode
the output. Just attach it as a straight text file so that it can be
easily viewed. "

Regards
Marco


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Problem after updating and reinstalling.

asallen08
Thank You for you help and advice.

>in theory , you should have only one called "Cygwin Terminal"

And Yes I have only one "Cygwin Terminal. The version I am currently running is 1.1.2. The other shortcut is cygwin.bat.

>what is the output of " ls -l $(which gcc)" and "ls /" ?

I wasn't sure if you wanted the file path or a screen shot. The file path is: C:\cygwin\home\AL
It is the same for both. ls -i just gives me more information then ls but the files that are displayed are the same and in the same location.

>"Run cygcheck -s -v -r > cygcheck.out and include that file as an
>attachment in your report. Please do not compress or otherwise encode
>the output. Just attach it as a straight text file so that it can be
>easily viewed. "

I have attached the requested file as a .txt.

cygcheck.txt


Thanks,
Alecia
Reply | Threaded
Open this post in threaded view
|

Re: Problem after updating and reinstalling.

marco atzeri-4
On 12/14/2012 3:36 PM, asallen08 wrote:

> Thank You for you help and advice.
>
>> in theory , you should have only one called "Cygwin Terminal"
>
> And Yes I have only one "Cygwin Terminal. The version I am currently running
> is 1.1.2. The other shortcut is cygwin.bat.
>
>> what is the output of " ls -l $(which gcc)" and "ls /" ?
>
> I wasn't sure if you wanted the file path or a screen shot. The file path
> is: C:\cygwin\home\AL
> It is the same for both. ls -i just gives me more information then ls but
> the files that are displayed are the same and in the same location.

?? On my system :
$ ls -l $(which gcc)
lrwxrwxrwx 1 marco None 21 Nov 13  2011 /usr/bin/gcc ->
/etc/alternatives/gcc

>
>> "Run cygcheck -s -v -r > cygcheck.out and include that file as an
>> attachment in your report. Please do not compress or otherwise encode
>> the output. Just attach it as a straight text file so that it can be
>> easily viewed. "
>
> I have attached the requested file as a .txt.
>
> cygcheck.txt <http://cygwin.1069669.n5.nabble.com/file/n94918/cygcheck.txt>
>
Alecia,
have you noticed :
   "Warning: There are multiple cygwin1.dlls on your path"

  2604k 2011/03/29 C:\cygwin\home\AL\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                   "cygwin1.dll" v0.0 ts=2011/3/29 9:10
     Cygwin DLL version info:
         DLL version: 1.7.9

  2791k 2012/10/19 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                   "cygwin1.dll" v0.0 ts=2012/10/19 13:39
     Cygwin DLL version info:
         DLL version: 1.7.17


you need to remove the "C:\cygwin\home\AL\cygwin1.dll"
This is likely the responsible of your problem.

>
> Thanks,
> Alecia
>

Additional suggestion, not relevant for the problem:
you seems to have installed a lot of gcc compiler

but instead of the obsolete

gcc-core                  3.4.4-999            OK
gcc-g++                   3.4.4-999            OK

you could choose to install the next version

gcc4                                     4.5.3-3
gcc4-core                                4.5.3-3

Are you sure you need all the mingw compilers ?

Regards
Marco



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Problem after updating and reinstalling.

Larry Hall (Cygwin)
On 12/14/2012 10:51 AM, marco atzeri wrote:

> On 12/14/2012 3:36 PM, asallen08 wrote:
>> Thank You for you help and advice.
>>
>>> in theory , you should have only one called "Cygwin Terminal"
>>
>> And Yes I have only one "Cygwin Terminal. The version I am currently running
>> is 1.1.2. The other shortcut is cygwin.bat.
>>
>>> what is the output of " ls -l $(which gcc)" and "ls /" ?
>>
>> I wasn't sure if you wanted the file path or a screen shot. The file path
>> is: C:\cygwin\home\AL
>> It is the same for both. ls -i just gives me more information then ls but
>> the files that are displayed are the same and in the same location.
>
> ?? On my system :
> $ ls -l $(which gcc)
> lrwxrwxrwx 1 marco None 21 Nov 13  2011 /usr/bin/gcc -> /etc/alternatives/gcc
>
>>
>>> "Run cygcheck -s -v -r > cygcheck.out and include that file as an
>>> attachment in your report. Please do not compress or otherwise encode
>>> the output. Just attach it as a straight text file so that it can be
>>> easily viewed. "
>>
>> I have attached the requested file as a .txt.
>>
>> cygcheck.txt <http://cygwin.1069669.n5.nabble.com/file/n94918/cygcheck.txt>
>>
> Alecia,
> have you noticed :
>    "Warning: There are multiple cygwin1.dlls on your path"
>
>   2604k 2011/03/29 C:\cygwin\home\AL\cygwin1.dll - os=4.0 img=1.0 sys=4.0
>                    "cygwin1.dll" v0.0 ts=2011/3/29 9:10
>      Cygwin DLL version info:
>          DLL version: 1.7.9
>
>   2791k 2012/10/19 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
>                    "cygwin1.dll" v0.0 ts=2012/10/19 13:39
>      Cygwin DLL version info:
>          DLL version: 1.7.17
>
>
> you need to remove the "C:\cygwin\home\AL\cygwin1.dll"
> This is likely the responsible of your problem.

And even beyond this, the cygcheck output shows that the "update" done
was actually an installation in C:\cygwin, which left the original
installation in C:\cygwin\home as orphaned.  Best to just get rid of
the whole installation there unless there is something that's really
needed.  And if there is, I recommend copying over the needed data
files to the new location and deleting the old.

--
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Problem after updating and reinstalling.

asallen08
In reply to this post by marco atzeri-4
> ?? On my system :
$ ls -l $(which gcc)
lrwxrwxrwx 1 marco None 21 Nov 13  2011 /usr/bin/gcc ->
/etc/alternatives/gcc

It shows:
AL@Alecia-PC ~
$ ls -i $(which gcc)
1688849860496757 /usr/bin/gcc

>Alecia,
>have you noticed :
>   "Warning: There are multiple cygwin1.dlls on your path"
>
>  2604k 2011/03/29 C:\cygwin\home\AL\cygwin1.dll - os=4.0 img=1.0 sys=4.0
>                  "cygwin1.dll" v0.0 ts=2011/3/29 9:10
>     Cygwin DLL version info:
>         DLL version: 1.7.9
>
>  2791k 2012/10/19 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
>                   "cygwin1.dll" v0.0 ts=2012/10/19 13:39
>     Cygwin DLL version info:
>         DLL version: 1.7.17
>
>
>
>you need to remove the "C:\cygwin\home\AL\cygwin1.dll"
>This is likely the responsible of your problem.

I haven't noticed any of that. Once I deleted C:\cygwin\home\AL\cygwin1.dll I am now able to compile and run programs.

>Additional suggestion, not relevant for the problem:
>you seems to have installed a lot of gcc compiler
>
>but instead of the obsolete
>
>gcc-core                  3.4.4-999            OK
>gcc-g++                   3.4.4-999            OK
>
>you could choose to install the next version
>
>gcc4                                     4.5.3-3
>gcc4-core                                4.5.3-3
>
>Are you sure you need all the mingw compilers ?

I am not sure what all I need. My professor just said go to the site and download Cygwin and use the default settings and that is what I did. I will do some research and find out how to install the current versions of the suggested compilers. One final question should I now be using the Cygwin Terminal instead of Cygwin.bat shortcut?

Thanks again for your help and advice. I really appreciate it.

Thanks,
Alecia
Reply | Threaded
Open this post in threaded view
|

Re: Problem after updating and reinstalling.

marco atzeri-4
On 12/14/2012 6:58 PM, asallen08 wrote:
>> ?? On my system :
> $ ls -l $(which gcc)
> lrwxrwxrwx 1 marco None 21 Nov 13  2011 /usr/bin/gcc ->
> /etc/alternatives/gcc
>
> It shows:
> AL@Alecia-PC ~
> $ ls -i $(which gcc)
> 1688849860496757 /usr/bin/gcc

"l" as lake not "i" as idea

>
>> Alecia,
>> have you noticed :
>>    "Warning: There are multiple cygwin1.dlls on your path"
>>
>>   2604k 2011/03/29 C:\cygwin\home\AL\cygwin1.dll - os=4.0 img=1.0 sys=4.0
>>                   "cygwin1.dll" v0.0 ts=2011/3/29 9:10
>>      Cygwin DLL version info:
>>          DLL version: 1.7.9
>>
>>   2791k 2012/10/19 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
>>                    "cygwin1.dll" v0.0 ts=2012/10/19 13:39
>>      Cygwin DLL version info:
>>          DLL version: 1.7.17
>>
>>
>>
>> you need to remove the "C:\cygwin\home\AL\cygwin1.dll"
>> This is likely the responsible of your problem.
>
> I haven't noticed any of that. Once I deleted C:\cygwin\home\AL\cygwin1.dll
> I am now able to compile and run programs.
>
>> Additional suggestion, not relevant for the problem:
>> you seems to have installed a lot of gcc compiler
>>
>> but instead of the obsolete
>>
>> gcc-core                  3.4.4-999            OK
>> gcc-g++                   3.4.4-999            OK
>>
>> you could choose to install the next version
>>
>> gcc4                                     4.5.3-3
>> gcc4-core                                4.5.3-3
>>
>> Are you sure you need all the mingw compilers ?
>
> I am not sure what all I need. My professor just said go to the site and
> download Cygwin and use the default settings and that is what I did.

gcc4 is to compile on cygwin for cygwin.
So it is the standard one used to build the cygwin binaries.

The mingw compilers are cross-compilers.
They compile on cygwin for mingw/windows (http://www.mingw.org/)

> I will
> do some research and find out how to install the current versions of the
> suggested compilers. One final question should I now be using the Cygwin
> Terminal instead of Cygwin.bat shortcut?
>

"Cygwin Terminal" is the right (and best)  way

> Thanks again for your help and advice. I really appreciate it.
>
> Thanks,
> Alecia
>

Welcome to cygwin
Marco

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple