delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/25/07:07:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
X-gafanamail-checks: spf=-1 rdns=0 helo=1
Message-ID: <4A95128C398E4A4FB8C2EEC9C1CBA14D@dumbopc>
From: "Chloe" <starrychloe AT oliveyou DOT net>
To: <cygwin AT cygwin DOT com>
Subject: Can't install Perl modules with new Cygwin because of gcc version
Date: Fri, 25 Dec 2009 07:08:05 -0500
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

I can't install or build Perl modules with cpan or cpanp because it 
passes -fstack-protector argument flag to gcc and that argument is not 
accepted in the cygwin version of gcc.

Here is the error message from cpan while trying to install a Perl module.

gcc -c  -I/usr/include/openssl -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing 
 -pipe -fstack-protector -I/usr/local/include -DUSEIMPORTLIB -O3   -DVERSION=\"0.57\" 
 -DXS_VERSION=\"0.57\"  "-I/usr/lib/perl5/5.10/i686-cygwin/CORE"   SSLeay.c
cc1: error: unrecognized command line option "-fstack-protector"
make: *** [SSLeay.o] Error 1

Here is the cc line when running perl -V. It has the -fstack-protector flag. 
How did this perl get built with that flag when that version of gcc is not 
in Cygwin distribution?

    cc='gcc', ccflags 
='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing -pipe -fstack-protector 
 -I/usr/local/include',    optimize='-O3',


The cygwin setup (version 2.673) has gcc 3.4.4-999 only, which is what I 
have installed. The latest version of gcc is 4.4.2.

I might be able to add a cc flag in cpan, but I don't know how to take one 
out. I was able to use cpanp, go into the build directory, edit the 
Makefile, delete the argument, and built the module, but when a module has 
dependencies, this is a nightmare to do. 


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