Re: 1.7 - Problem installing perl modules

2010-03-11 Thread Robert Slater
>>cc1: error: unrecognized command line option "-fstack-protector"
>>
>>This is a command line option which only GCC 4 understands. You only
>>have GCC 3 installed.
>>
>>You need to install the gcc-4 package. You may also need to change the
>>default gcc to gcc-4 using the "alternatives" tool (man alternatives),
>>or force Perl to use GCC 4. This may work (untested)
>>
>>CC=gcc-4 perl Build.pl

Thanks for your help, Csaba, this works now.

-Robert Slater

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



1.7 - Problem installing perl modules

2010-03-09 Thread Robert Slater
Hi there,

In the process of installing perl modules to get an IRC bot working
via cygwin, I'm encountering a
problem with make & installing ExtUtils::CBuilder and thus the modules
that depend upon it. The
make / install goes through fine, but cygwin doesn't seem to detect it
afterwards.

Attached is the cygcheck of my system, and a log of my attempt to
install the two modules.

Thanks for any help with this problem

-Robert
rob...@robert-pc ~
$ cd c:/modules/Params-Validate

rob...@robert-pc /cygdrive/c/modules/Params-Validate
$ perl Build.pl
cygwin warning:
  MS-DOS style path detected: \Users\Robert
  Preferred POSIX equivalent is: /cygdrive/c/Users/Robert
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
cc1: error: unrecognized command line option "-fstack-protector"
cc1: error: unrecognized command line option "-fstack-protector"
Warning: ExtUtils::CBuilder not installed or no compiler detected
Proceeding with configuration, but compilation may fail during Build

Creating new 'MYMETA.yml' with configuration results
Creating new 'Build' script for 'Params-Validate' version '0.95'

rob...@robert-pc /cygdrive/c/modules/Params-Validate
$ ./Build
Building Params-Validate
Error: no compiler detected to compile 'lib/Params/Validate.c'.  Aborting

rob...@robert-pc /cygdrive/c/modules/Params-Validate
$ cd c:/modules/ExtUtils-CBuilder

rob...@robert-pc /cygdrive/c/modules/ExtUtils-CBuilder
$ perl makefile.pl
Checking if your kit is complete...
Looks good
Writing Makefile for ExtUtils::CBuilder

rob...@robert-pc /cygdrive/c/modules/ExtUtils-CBuilder
$ make
cp lib/ExtUtils/CBuilder.pm blib/lib/ExtUtils/CBuilder.pm
cp lib/ExtUtils/CBuilder/Platform/Windows.pm blib/lib/ExtUtils/CBuilder/Platform
/Windows.pm
cp lib/ExtUtils/CBuilder/Platform/aix.pm blib/lib/ExtUtils/CBuilder/Platform/aix
.pm
cp lib/ExtUtils/CBuilder/Platform/cygwin.pm blib/lib/ExtUtils/CBuilder/Platform/
cygwin.pm
cp lib/ExtUtils/CBuilder/Platform/Windows/GCC.pm blib/lib/ExtUtils/CBuilder/Plat
form/Windows/GCC.pm
cp lib/ExtUtils/CBuilder/Platform/VMS.pm blib/lib/ExtUtils/CBuilder/Platform/VMS
.pm
cp lib/ExtUtils/CBuilder/Platform/Unix.pm blib/lib/ExtUtils/CBuilder/Platform/Un
ix.pm
cp lib/ExtUtils/CBuilder/Platform/Windows/BCC.pm blib/lib/ExtUtils/CBuilder/Plat
form/Windows/BCC.pm
cp lib/ExtUtils/CBuilder/Platform/Windows/MSVC.pm blib/lib/ExtUtils/CBuilder/Pla
tform/Windows/MSVC.pm
cp lib/ExtUtils/CBuilder/Platform/darwin.pm blib/lib/ExtUtils/CBuilder/Platform/
darwin.pm
cp lib/ExtUtils/CBuilder/Platform/os2.pm blib/lib/ExtUtils/CBuilder/Platform/os2
.pm
cp lib/ExtUtils/CBuilder/Platform/dec_osf.pm blib/lib/ExtUtils/CBuilder/Platform
/dec_osf.pm
cp lib/ExtUtils/CBuilder/Base.pm blib/lib/ExtUtils/CBuilder/Base.pm
Manifying blib/man3/ExtUtils.CBuilder.Platform.Windows.3pm
Manifying blib/man3/ExtUtils.CBuilder.3pm

rob...@robert-pc /cygdrive/c/modules/ExtUtils-CBuilder
$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness
(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-have-compiler.t .. ok
t/01-basic.t .. cc1: error: unrecognized command line option "-fstack-pr
otector"
cc1: error: unrecognized command line option "-fstack-protector"
t/01-basic.t .. skipped: no compiler available for testing
t/02-link.t ... cc1: error: unrecognized command line option "-fstack-pr
otector"
cc1: error: unrecognized command line option "-fstack-protector"
t/02-link.t ... skipped: no compiler available for testing
t/03-cplusplus.t .. cc1plus: error: unrecognized command line option "-fstac
k-protector"
cc1plus: error: unrecognized command line option "-fstack-protector"
t/03-cplusplus.t .. skipped: no compiler available for testing
All tests successful.
Files=4, Tests=6,  4 wallclock secs ( 0.05 usr  0.02 sys +  0.80 cusr  0.80 csys
 =  1.66 CPU)
Result: PASS

rob...@robert-pc /cygdrive/c/modules/ExtUtils-CBuilder
$ make install
Installing /usr/share/man/man3/ExtUtils.CBuilder.3pm
Installing /usr/share/man/man3/ExtUtils.CBuilder.Platform.Windows.3pm
Appending installation info to /usr/lib/perl5/5.10/i686-cygwin/perllocal.pod

rob...@robert-pc /cygdrive/c/modules/ExtUtils-CBuilder
$ cd c:/modules/params-validate

rob...@robert-pc /cygdrive/c/modules/params-validate
$ perl Build.pl
cc1: error: unrecognized command line option "-fstack-protector"
cc1: error: unrecognized command line option "-fstack-protector"
Warning: ExtUtils::CBuilder not installed or no compiler detected
Proceeding with configuration, but compilation may fail during Build

Creating new 'MYMETA.yml' with configuration results
Creating new 'Build' script for 'Params-Validate' version '0.95'

rob...@robert-pc /cygdrive/c/modules/params-validate
$ ./Build
Building Params-Validate
Error: no compiler detected to compile 'lib/Params/Validate.c'.  Aborting

cygcheck.out
Description: Bina