delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/11/02:20:53

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Date: Thu, 11 Feb 2010 08:16:46 +0100
From: Gary <cygwin AT garydjones DOT name>
To: cygwin AT cygwin DOT com
Subject: Re: Perl module installing issue
Message-ID: <20100211071646.GA596@mimosa.garydjones.name>
References: <1A59648031DED04385A772733B843A9391B62D AT CDCEXMAILBOX02 DOT ad DOT btk DOT bg>
Mime-Version: 1.0
In-Reply-To: <1A59648031DED04385A772733B843A9391B62D@CDCEXMAILBOX02.ad.btk.bg>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Thu, Feb 11, 2010 at 12:13:50AM +0200, Ivaylo Terziyski wrote:
> 
> Installing perl module with perl -MCPAN -e "shell":
> 
> 
>   CPAN.pm: Going to build R/RG/RGIERSIG/IO-Tty-1.08.tar.gz
> 
> Now let's see what we can find out about your system
> (logfiles of failing tests are available in the conf/ dir)...
> 
> ERROR: cannot run the configured compiler 'gcc'
> (see conf/compilerok.log). Suggestions:
> 1) The complier 'gcc' is not in your PATH. Add it
>    to the PATH and try again. OR
> 2) The compiler isn't installed on your system. Install it. OR
> 3) You only have a different compiler installed (e.g. 'gcc').
>    Either fix the compiler config in the perl Config.pm
>    or install a perl that was built with the right compiler
>    (you could build perl yourself with the available compiler).
> 
> Note: this is a system-administration issue, please ask your local
> admin for help. Thank you.
> 
> In file conf/compilerok.log I have only this
> cc1: error: unrecognized command line option "-fstack-protector"
> I have installed gcc,gcc-g++ and make.
> 
> Any suggestions ?

Have you tried running gcc from the command line? Have a look at the
thread started at http://cygwin.com/ml/cygwin/2010-01/msg01228.html
maybe your case is related. What does
cygcheck `which gcc`
reveal, if anything? It should be something like
$ cygcheck `which gcc`
 -> C:\cygwin\etc\alternatives\gcc
 -> C:\cygwin\bin\gcc-4.exe
C:\cygwin\bin\gcc-4.exe
  C:\cygwin\bin\cyggcc_s-1.dll
(and more dlls)
I think.

I'm surprised about the error in the compilerok.log, -fstack-protector
was introduced as a patch sometime during the lifetime of gcc 3 (whether
it was ever introduced into the official Cygwin package I don't know,
however) and then in the main build in gcc 4. Maybe you have an old
version of gcc/cc1?

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019