public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* gcc problems
@ 2002-01-01  8:53 Andrew Sidwell
  0 siblings, 0 replies; 11+ messages in thread
From: Andrew Sidwell @ 2002-01-01  8:53 UTC (permalink / raw)
  To: cygwin

Hello all,
  I'm sorry if this has been solved before, but I can't see it on the 
mailing list archives, so I'm guessing it's not.

  I'm having problems compiling anything written in C, but then again I 
don't use any other languages, so I can't tell.

  I get a little error box with the title 'Error Starting Program', and the 
text, "The COLLECT2.EXE file is linked to missing export 
CYGWIN1.DLL:_ctype_.". In the Cygwin window itself, there is the error:

gcc: installation problem, cannot exec 
'/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/collect2..exe': Permission denied.

  I've reinstalled cygwin several times, the most recent being today. Every 
simgle time the error message has been the same, IIRC.

  Thanks in advance,
--
Andrew Sidwell, takkaria on IRC


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: GCC problems
@ 2004-06-29 15:39 Larry Hall
  0 siblings, 0 replies; 11+ messages in thread
From: Larry Hall @ 2004-06-29 15:39 UTC (permalink / raw)
  To: Robert Golovniov, The Cygwin Mailing List

At 10:23 AM 6/29/2004, you wrote:
>At 09:21 AM 6/29/2004, you wrote:
>>Hello,
>>
>>  I am trying to complile some programs but get this error message:
>>
>>  "/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld:
>>  cannot find -lusr32

                 ^^^^^^

I'm assuming you edited this and that it actually read -luser32.  Obviously,
this means you're missing something.  You can determine what package you're 
missing by visiting <http://cygwin.com/packages/> and entering the name of
the file you're missing ('libuser32.a' in this case).  It will tell you 
the package you need to install ('w32api').  Rerun 'setup' and select this
package for installation.


>>  collect2: ld returned 1 exit status"
>>
>>  Another package add these two lines:
>>
>>  "*** The command '/usr/bin/gcc -o conftest -g -O2 conftest.c' failed
>>  *** You must set the environment variable CC to a working compiler."
>>
>>  Can anybody suggest how to fix it? Where do I set this variable?


Sounds like you're missing more stuff.  If you can't figure out what's 
missing, follow the problem reporting guidelines given at:

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


This should either provide the answer in the process of developing a 
problem report to send to the list or will give those here on the list
some information by which to evaluate your local installation's state
when you submit the report.


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* GCC problems
@ 2004-06-29 14:28 Robert Golovniov
  0 siblings, 0 replies; 11+ messages in thread
From: Robert Golovniov @ 2004-06-29 14:28 UTC (permalink / raw)
  To: The Cygwin Mailing List

Hello,

  I am trying to complile some programs but get this error message:

  "/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld:
  cannot find -lusr32
  collect2: ld returned 1 exit status"

  Another package add these two lines:

  "*** The command '/usr/bin/gcc -o conftest -g -O2 conftest.c' failed
  *** You must set the environment variable CC to a working compiler."

  Can anybody suggest how to fix it? Where do I set this variable?

-- 
             -=Robert & Beata Golovniov | Lviv, Ukraine=-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mailto:golovniov@interia.pl?subject=PGP%20Key&Body=Embedded%20key
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gcc problems...
  2004-04-29 23:59 gcc problems Derek Farren Gause
@ 2004-04-30  5:28 ` Christopher Faylor
  0 siblings, 0 replies; 11+ messages in thread
From: Christopher Faylor @ 2004-04-30  5:28 UTC (permalink / raw)
  To: cygwin

On Thu, Apr 29, 2004 at 07:27:41PM -0400, Derek Farren Gause wrote:
>Hi everybody.
>
>I am haveing problems compiling objC code on cygwin. The end of the bash
>shell?s output is:
>
>I have Cygwin?s .bashrc customized for swarm in order to use the suite gcc
>distributed with Swarm (www.Swarm.org). Some additional info:

You are not using the standard cygwin gcc compiler.  Ask *swarm* for
help.  It doesn't make a lot of sense to grab a compiler from one place and
ask for help for it from another place.

>$ gcc -v
>Reading specs from /Swarm-2.2/lib/gcc-lib/i686-pc-cygwin/3.3.1/specs
>Configured with:
>/src/gcc-3.3.1/configure --prefix=/Swarm-2.2 --srcdir=/src/gcc-3.3.1 --enabl
>e-libgcj
>Thread model: single
>gcc version 3.3.1
>
>Any help would be apreciated...

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* gcc problems...
@ 2004-04-29 23:59 Derek Farren Gause
  2004-04-30  5:28 ` Christopher Faylor
  0 siblings, 1 reply; 11+ messages in thread
From: Derek Farren Gause @ 2004-04-29 23:59 UTC (permalink / raw)
  To: cygwin

Hi everybody.

I am haveing problems compiling objC code on cygwin. The end of the bash
shell´s output is:

/usr/lib/mingw/libobjc.a(encoding.o)(.text+0xca6): undefined reference to
`__imp ___pctype'
/usr/lib/mingw/libobjc.a(encoding.o)(.text+0xd53): undefined reference to
`__isctype'
/usr/lib/mingw/libobjc.a(encoding.o)(.text+0xd81): undefined reference to
`__imp ___pctype'
/usr/lib/mingw/libobjc.a(encoding.o)(.text+0xdb3): undefined reference to
`__isctype'
/usr/lib/mingw/libobjc.a(encoding.o)(.text+0xdd1): undefined reference to
`__imp ___pctype'
/usr/lib/mingw/libobjc.a(encoding.o)(.text+0x103d): undefined reference to
`__isctype'
/usr/lib/mingw/libobjc.a(encoding.o)(.text+0x105e): undefined reference to
`__imp___pctype'
/usr/lib/mingw/libobjc.a(encoding.o)(.text+0x10e3): undefined reference to
`__isctype'
/usr/lib/mingw/libobjc.a(encoding.o)(.text+0x1137): undefined reference to
`__isctype'
/usr/lib/mingw/libobjc.a(encoding.o)(.text+0x1157): undefined reference to
`__imp___pctype'
/usr/lib/mingw/libobjc.a(encoding.o)(.text+0x116c): undefined reference to
`__imp___pctype'
/usr/lib/mingw/libobjc.a(encoding.o)(.text+0x1215): undefined reference to
`__isctype'
/usr/lib/mingw/libobjc.a(encoding.o)(.text+0x1269): undefined reference to
`__isctype'
/usr/lib/mingw/libobjc.a(encoding.o)(.text+0x1292): undefined reference to
`__imp___pctype'
/usr/lib/mingw/libobjc.a(encoding.o)(.text+0x12a7): undefined reference to
`__imp___pctype'
/usr/lib/mingw/libobjc.a(encoding.o)(.text+0x13d4): undefined reference to
`__isctype'
/usr/lib/mingw/libobjc.a(encoding.o)(.text+0x13e7): undefined reference to
`__imp___pctype'
collect2: ld returned 1 exit status


I have Cygwin´s .bashrc customized for swarm in order to use the suite gcc
distributed with Swarm (www.Swarm.org). Some additional info:

$ gcc -v
Reading specs from /Swarm-2.2/lib/gcc-lib/i686-pc-cygwin/3.3.1/specs
Configured with:
/src/gcc-3.3.1/configure --prefix=/Swarm-2.2 --srcdir=/src/gcc-3.3.1 --enabl
e-libgcj
Thread model: single
gcc version 3.3.1

Any help would be apreciated...

Thanks in advance.

Derek Farren



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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gcc problems
  2002-01-02 13:42 Andrew Sidwell
  2002-01-02 14:34 ` Larry Hall (RFK Partners, Inc)
@ 2002-01-02 16:58 ` Robert Collins
  1 sibling, 0 replies; 11+ messages in thread
From: Robert Collins @ 2002-01-02 16:58 UTC (permalink / raw)
  To: Andrew Sidwell; +Cc: cygwin

You've most likely got another copy of cygwin1.dll in your path. What
does cygcheck -s show?

Rog
===
----- Original Message -----
From: "Andrew Sidwell" <nevermiah@hotmail.com>
To: <nevermiah@hotmail.com>
Cc: <cygwin@cygwin.com>
Sent: Thursday, January 03, 2002 8:41 AM
Subject: Re: gcc problems


> >Hello all,
> >  I'm sorry if this has been solved before, but I can't see it on the
> >mailing list archives, so I'm guessing it's not.
> >
>
> <snip>
>
> Here's a clarification of the error messages and what caused them:
>
> On a compile using GCC, a little error box with the title 'Error
Starting
> Program' pops up, with the text, "The COLLECT2.EXE file is linked to
missing
> export CYGWIN1.DLL:_ctype_.".
>
> In the Cygwin window itself, there is the message:
>
> gcc: installation problem, cannot exec
> '/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/collect2..exe': Permission
denied.
>
> I'm using Win98SE, without any bcc tools, etc. installed.
>
> Thanks in advance,
> --
> Andrew Sidwell, takkaria on IRC
> >
> >
> >_________________________________________________________________
> >Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
>
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gcc problems
  2002-01-02 14:34 ` Larry Hall (RFK Partners, Inc)
@ 2002-01-02 14:38   ` Larry Hall (RFK Partners, Inc)
  0 siblings, 0 replies; 11+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-01-02 14:38 UTC (permalink / raw)
  To: Andrew Sidwell; +Cc: cygwin

At 05:32 PM 1/2/2002, Larry Hall (RFK Partners, Inc) wrote:
>At 04:41 PM 1/2/2002, Andrew Sidwell wrote:
> >>Hello all,
> >>  I'm sorry if this has been solved before, but I can't see it on the
> >>mailing list archives, so I'm guessing it's not.
> >
> ><snip>
> >
> >Here's a clarification of the error messages and what caused them:
> >
> >On a compile using GCC, a little error box with the title 'Error Starting Program' pops up, with the text, "The COLLECT2.EXE file is linked to missing export CYGWIN1.DLL:_ctype_.".
> >
> >In the Cygwin window itself, there is the message:
> >
> >gcc: installation problem, cannot exec '/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/collect2..exe': Permission denied.
> >
> >I'm using Win98SE, without any bcc tools, etc. installed.
> >
> >Thanks in advance,
> >--
> >Andrew Sidwell, takkaria on IRC
>
>
>How'd you manage to install gcc without binutils?  Did you use setup.exe 
>and consciously override the install of binutils (installing gcc will 
>install binutils if you tell it not to)?  If you didn't use setup.exe,

                   ^^
                s/if/unless

>then that's your problem.  The solution to either of these two scenarios
>is "don't do that"(tm).  The way to avoid these types of problems in 
>general is to use setup.exe and do what it tells you unless you're 
>absolutely sure that your needs aren't met by setup.exe.  If setup.exe
>won't give you what you want, you're free to proceed with any experimental
>installation that you like of course.  Unfortunately for you (perhaps),
>this list can't invest any time finding the problems in your custom 
>configuration, assuming that's what you have or were targetting.  
>
>Hope that helps some,
>
>
>
>Larry Hall                              lhall@rfk.com
>RFK Partners, Inc.                      http://www.rfk.com
>838 Washington Street                   (508) 893-9779 - RFK Office
>Holliston, MA 01746                     (508) 893-9889 - FAX
>
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gcc problems
  2002-01-02 13:42 Andrew Sidwell
@ 2002-01-02 14:34 ` Larry Hall (RFK Partners, Inc)
  2002-01-02 14:38   ` Larry Hall (RFK Partners, Inc)
  2002-01-02 16:58 ` Robert Collins
  1 sibling, 1 reply; 11+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-01-02 14:34 UTC (permalink / raw)
  To: Andrew Sidwell; +Cc: cygwin

At 04:41 PM 1/2/2002, Andrew Sidwell wrote:
>>Hello all,
>>  I'm sorry if this has been solved before, but I can't see it on the
>>mailing list archives, so I'm guessing it's not.
>
><snip>
>
>Here's a clarification of the error messages and what caused them:
>
>On a compile using GCC, a little error box with the title 'Error Starting Program' pops up, with the text, "The COLLECT2.EXE file is linked to missing export CYGWIN1.DLL:_ctype_.".
>
>In the Cygwin window itself, there is the message:
>
>gcc: installation problem, cannot exec '/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/collect2..exe': Permission denied.
>
>I'm using Win98SE, without any bcc tools, etc. installed.
>
>Thanks in advance,
>--
>Andrew Sidwell, takkaria on IRC


How'd you manage to install gcc without binutils?  Did you use setup.exe 
and consciously override the install of binutils (installing gcc will 
install binutils if you tell it not to)?  If you didn't use setup.exe,
then that's your problem.  The solution to either of these two scenarios
is "don't do that"(tm).  The way to avoid these types of problems in 
general is to use setup.exe and do what it tells you unless you're 
absolutely sure that your needs aren't met by setup.exe.  If setup.exe
won't give you what you want, you're free to proceed with any experimental
installation that you like of course.  Unfortunately for you (perhaps),
this list can't invest any time finding the problems in your custom 
configuration, assuming that's what you have or were targetting.  

Hope that helps some,



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gcc problems
@ 2002-01-02 13:42 Andrew Sidwell
  2002-01-02 14:34 ` Larry Hall (RFK Partners, Inc)
  2002-01-02 16:58 ` Robert Collins
  0 siblings, 2 replies; 11+ messages in thread
From: Andrew Sidwell @ 2002-01-02 13:42 UTC (permalink / raw)
  To: nevermiah; +Cc: cygwin

>Hello all,
>  I'm sorry if this has been solved before, but I can't see it on the
>mailing list archives, so I'm guessing it's not.
>

<snip>

Here's a clarification of the error messages and what caused them:

On a compile using GCC, a little error box with the title 'Error Starting 
Program' pops up, with the text, "The COLLECT2.EXE file is linked to missing 
export CYGWIN1.DLL:_ctype_.".

In the Cygwin window itself, there is the message:

gcc: installation problem, cannot exec 
'/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/collect2..exe': Permission denied.

I'm using Win98SE, without any bcc tools, etc. installed.

Thanks in advance,
--
Andrew Sidwell, takkaria on IRC
>
>
>_________________________________________________________________
>Send and receive Hotmail on your mobile device: http://mobile.msn.com




_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: GCC problems
  2001-12-12  9:07 GCC problems gahan
@ 2001-12-12 22:01 ` Tim Prince
  0 siblings, 0 replies; 11+ messages in thread
From: Tim Prince @ 2001-12-12 22:01 UTC (permalink / raw)
  To: gahan, cygwin

Does the current cygwin installation allow you to forget to install binutils
etc?  It needs some kind of dependency list.

Most packages which give you a message like that store an indication of what
they attempted to do, e.g. in config.log.  That would tell you what command
it tried to execute and how it failed.
----- Original Message -----
From: "gahan" <gahan@heros.knurow.tpsa.pl>
To: <cygwin@cygwin.com>
Sent: Wednesday, December 12, 2001 7:56 AM
Subject: GCC problems


> checking whether the C compiler (gcc  ) works... error [cut]
> I have already installed gcc, make...
> What i need to do?
> Gahan.
>
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* GCC problems
@ 2001-12-12  9:07 gahan
  2001-12-12 22:01 ` Tim Prince
  0 siblings, 1 reply; 11+ messages in thread
From: gahan @ 2001-12-12  9:07 UTC (permalink / raw)
  To: cygwin

checking whether the C compiler (gcc  ) works... error [cut]
I have already installed gcc, make...
What i need to do?
Gahan.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-06-29 14:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-01  8:53 gcc problems Andrew Sidwell
  -- strict thread matches above, loose matches on Subject: below --
2004-06-29 15:39 GCC problems Larry Hall
2004-06-29 14:28 Robert Golovniov
2004-04-29 23:59 gcc problems Derek Farren Gause
2004-04-30  5:28 ` Christopher Faylor
2002-01-02 13:42 Andrew Sidwell
2002-01-02 14:34 ` Larry Hall (RFK Partners, Inc)
2002-01-02 14:38   ` Larry Hall (RFK Partners, Inc)
2002-01-02 16:58 ` Robert Collins
2001-12-12  9:07 GCC problems gahan
2001-12-12 22:01 ` Tim Prince

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).