Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.96k stars 555 forks source link

"cpan -i Sys::CPU" failed on Cygwin #13094

Closed p5pRT closed 11 years ago

p5pRT commented 11 years ago

Migrated from rt.perl.org#118819 (status was 'rejected')

Searchable as RT118819$

p5pRT commented 11 years ago

From tuyenqh@yahoo.com

Subject​: "cpan -i Sys​::CPU" failed on Cygwin Message-Id​: \5\.14\.2\_19888\_1373366884@​AZHA1 Reply-To​: tuyenqh@​yahoo.com To​: perlbug@​perl.org From​: tuyenqh@​yahoo.com

This is a bug report for perl from tuyenqh@​yahoo.com\, generated with the help of perlbug 1.39 running under perl 5.14.2.

On my Cyswin

cpan -i Sys​::CPU failed with following output The gcc version is 4.7.3

Regards\, Tuyen

perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA"     are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). CPAN​: Storable loaded ok (v2.27) Going to read '/home/tqhoang/.cpan/Metadata'   Database was generated on Mon\, 08 Jul 2013 06​:07​:29 GMT Running install for module 'Sys​::CPU' Running make for M/MZ/MZSANFORD/Sys-CPU-0.54.tar.gz CPAN​: Digest​::SHA loaded ok (v5.71) CPAN​: Compress​::Zlib loaded ok (v2.033) Checksum for /home/tqhoang/.cpan/sources/authors/id/M/MZ/MZSANFORD/Sys-CPU-0.54.tar.gz ok CPAN​: File​::Temp loaded ok (v0.22) CPAN​: Parse​::CPAN​::Meta loaded ok (v1.4401) CPAN​: CPAN​::Meta loaded ok (v2.110440) CPAN​: Module​::CoreList loaded ok (v2.49_02)

  CPAN.pm​: Going to build M/MZ/MZSANFORD/Sys-CPU-0.54.tar.gz

perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA"     are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). Checking if your kit is complete... Looks good Writing Makefile for Sys​::CPU Writing MYMETA.yml perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA"     are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA"     are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA"     are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA"     are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA"     are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA"     are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA"     are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA"     are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA"     are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). cp CPU.pm blib/lib/Sys/CPU.pm /usr/bin/perl.exe /usr/lib/perl5/5.14/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.14/ExtUtils/typemap  CPU.xs > CPU.xsc && mv CPU.xsc CPU.c perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA"     are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). Please specify prototyping behavior for CPU.xs (see perlxs manual) gcc-4 -c    -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g -fno-strict-aliasing -pipe -fstack-protector -DUSEIMPORTLIB -O3    -DVERSION=\"0.54\"  -DXS_VERSION=\"0.54\"  "-I/usr/lib/perl5/5.14/i686-cygwin-threads-64int/CORE"   CPU.c CPU.xs​: In function 'XS_Sys__CPU_cpu_clock'​: CPU.xs​:349​:5​: error​: unknown type name 'processor_info_t' CPU.xs​:350​:48​: error​: request for member 'pi_state' in something not a structure or union CPU.xs​:350​:62​: error​: 'P_ONLINE' undeclared (first use in this function) CPU.xs​:350​:62​: note​: each undeclared identifier is reported only once for each function it appears in CPU.xs​:351​:26​: error​: request for member 'pi_clock' in something not a structure or union CPU.xs​:352​:26​: error​: request for member 'pi_clock' in something not a structure or union CPU.xs​: In function 'XS_Sys__CPU_cpu_type'​: CPU.xs​:389​:5​: error​: unknown type name 'processor_info_t' CPU.xs​:391​:16​: error​: request for member 'pi_processor_type' in something not a structure or union Makefile​:329​: recipe for target `CPU.o' failed make​: *** [CPU.o] Error 1   MZSANFORD/Sys-CPU-0.54.tar.gz   /usr/bin/make -- NOT OK 'YAML' not installed\, will not store persistent state Running make test   Can't test without successful make Running make install   Make had returned bad status\, install seems impossible


Flags​:     category=library     severity=low


Site configuration information for perl 5.14.2​:

Configured by rurban at Thu Jul 12 13​:58​:56 CDT 2012.

Summary of my perl5 (revision 5 version 14 subversion 2) configuration​:       Platform​:     osname=cygwin\, osvers=1.7.15(0.26053)\, archname=cygwin-thread-multi-64int     uname='cygwin_nt-5.1 winxp 1.7.15(0.26053) 2012-05-09 10​:25 i686 cygwin '     config_args='-de -Dlibperl=cygperl5_14.dll -Dcc=gcc-4 -Dld=g++-4 -Darchname=i686-cygwin-threads-64int -Dmksymlinks -Dusethreads -Accflags=-g'     hint=recommended\, useposix=true\, d_sigaction=define     useithreads=define\, usemultiplicity=define     useperlio=define\, d_sfio=undef\, uselargefiles=define\, usesocks=undef     use64bitint=define\, use64bitall=undef\, uselongdouble=undef     usemymalloc=n\, bincompat5005=undef   Compiler​:     cc='gcc-4'\, ccflags ='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g -fno-strict-aliasing -pipe -fstack-protector'\,     optimize='-O3'\,     cppflags='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g -fno-strict-aliasing -pipe -fstack-protector'     ccversion=''\, gccversion='4.5.3'\, gccosandvers=''     intsize=4\, longsize=4\, ptrsize=4\, doublesize=8\, byteorder=12345678     d_longlong=define\, longlongsize=8\, d_longdbl=define\, longdblsize=12     ivtype='long long'\, ivsize=8\, nvtype='double'\, nvsize=8\, Off_t='off_t'\, lseeksize=8     alignbytes=8\, prototype=define   Linker and Libraries​:     ld='g++-4'\, ldflags =' -Wl\,--enable-auto-import -Wl\,--export-all-symbols -Wl\,--enable-auto-image-base -fstack-protector -L/usr/local/lib'     libpth=/usr/local/lib /usr/lib /lib     libs=-lgdbm -ldb -ldl -lcrypt -lgdbm_compat     perllibs=-ldl -lcrypt     libc=/usr/lib/libc.a\, so=dll\, useshrplib=true\, libperl=cygperl5_14.dll     gnulibc_version=''   Dynamic Linking​:     dlsrc=dl_dlopen.xs\, dlext=dll\, d_dlsymun=undef\, ccdlflags=' '     cccdlflags=' '\, lddlflags=' --shared  -Wl\,--enable-auto-import -Wl\,--export-all-symbols -Wl\,--enable-auto-image-base -L/usr/local/lib -fstack-protector'

Locally applied patches​:     Bug#55162 File​::Spec​::case_tolerant performance     CYG07 $vendorarch/auto/.rebase     CYG15 static Win32CORE     CYG17 cyg-1.7 paths-utf8     0c612ce82 Fix building static extensions on cygwin\, -UUSEIMPORTLIB     1bac5ecc1 Fix 64-bit threading sv.c​: S_anonymise_cv_maybe     Cygwin​::sync_winenv added


@​INC for perl 5.14.2​:     /usr/lib/perl5/site_perl/5.14/i686-cygwin-threads-64int     /usr/lib/perl5/site_perl/5.14     /usr/lib/perl5/vendor_perl/5.14/i686-cygwin-threads-64int     /usr/lib/perl5/vendor_perl/5.14     /usr/lib/perl5/5.14/i686-cygwin-threads-64int     /usr/lib/perl5/5.14     /usr/lib/perl5/site_perl/5.10     /usr/lib/perl5/vendor_perl/5.10     /usr/lib/perl5/site_perl/5.8     .


Environment for perl 5.14.2​:     HOME=/home/tqhoang     LANG=en_US.UTF-8     LANGUAGE (unset)     LD_LIBRARY_PATH=/usr/local/lib     LOGDIR (unset)     PATH=/usr/local/bin​:/usr/bin​:/cygdrive/c/Program Files/Target Compiler Technologies/DSP5.0.0.0-i32-12R2.6/bin/WINbin​:/cygdrive/h/TQH/bin​:/cygdrive/c/cs-script​:/cygdrive/h/TQH/mksnt.520/mksnt​:/cygdrive/h/TQH/bat​:/cygdrive/h/Program Files/Araxis/Araxis Merge​:/cygdrive/c/Program Files/vim/vim73​:/cygdrive/c/Program Files/Target Compiler Technologies/coyote5-i32-12R2/bin/WINbin​:/cygdrive/c/Program Files/GnuWin32/bin​:/cygdrive/c/MinGW/bin​:/cygdrive/c/Program Files/Target Compiler Technologies/coyote5-12R1/bin/WINbin​:/cygdrive/c/Program Files/PC Connectivity Solution​:/cygdrive/c/program files/automated qa/testcomplete 8/bin​:/cygdrive/c/Program Files/CSR/BlueSuite 2.5.0/DFU Tools​:/cygdrive/c/Program Files/CSR/BlueSuite 2.4/DFU Tools​:/cygdrive/c/Program Files/CSR/BlueSuite/DFU Tools​:/cygdrive/c/Perl/site/bin​:/cygdrive/c/Perl/bin​:/cygdrive/c/Tcl/bin​:/cygdrive/c/WINDOWS/system32​:/cygdrive/c/WINDOWS​:/cygdrive/c/WINDOWS/System32/Wbem​:/cygdrive/c/WINDOWS/system32/WindowsPowerShell/v1.0​:/cygdrive/c/Program Files/Common Files/Lenovo​:/cygdrive/c/Program Files/Microsoft SQL Server/90/Tools/binn​:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn​:/cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn​:/cygdrive/c/Program Files/IBM/RationalSDLC/ClearCase/bin​:/cygdrive/c/Program Files/IBM/RationalSDLC/common​:/cygdrive/c/Program Files/Windows Imaging​:/cygdrive/c/Program Files/IVI Foundation/IVI/bin​:/cygdrive/c/Program Files/IVI Foundation/VISA/WinNT/Bin​:/cygdrive/c/Program Files/IVI Foundation/VISA/WinNT/Bin​:/cygdrive/c/Program Files/MATLAB/R2009a/bin​:/cygdrive/c/Program Files/MATLAB/R2009a/bin/win32​:/cygdrive/c/Program Files/Calibre2​:/cygdrive/c/Program Files/Microchip/MPLAB C32 Suite/bin​:/cygdrive/c/Program Files/Sysinternals Suite​:/cygdrive/c/Program Files/Universal Extractor​:/cygdrive/c/Program Files/Universal Extractor/bin​:/cygdrive/c/Program Files/Windows Installer XML v3.5/bin​:/cygdrive/c/Program Files/GN ReSound/Coyote Assembler and Linker/bin​:/cygdrive/c/Program Files/Gallio/bin​:/cygdrive/c/Program Files/SlikSvn/bin​:/cygdrive/h/TQH/bin​:/cygdrive/c/Program Files/hdparm/bin​:/usr/lib/lapack     PERL_BADLANG (unset)     SHELL=/bin/bash

p5pRT commented 11 years ago

From @rurban

Please do not perlbug cpan bugs. perlbug is only for problems with perl core and extensions which are handled by p5p\, and not the cpan author upstream.

Please file your report at https://rt.cpan.org/Public/Dist/Display.html?Name=Sys-CPU

For the author​: processor_info_t is not supported on cygwin and is not portable. Read /proc/cpuinfo as everyone else does. -- Reini Urban

p5pRT commented 11 years ago

The RT System itself - Status changed from 'new' to 'open'

p5pRT commented 11 years ago

@chorny - Status changed from 'open' to 'rejected'

p5pRT commented 11 years ago

From @khwilliamson

On 07/09/2013 04​:55 AM\, Tuyen Hoang (via RT) wrote​:

# New Ticket Created by Tuyen Hoang # Please include the string​: [perl #118819] # in the subject line of all future correspondence about this issue. # \<URL​: https://rt-archive.perl.org/perl5/Ticket/Display.html?id=118819 >

Subject​: "cpan -i Sys​::CPU" failed on Cygwin Message-Id​: \5\.14\.2\_19888\_1373366884@&#8203;AZHA1 Reply-To​: tuyenqh@​yahoo.com To​: perlbug@​perl.org From​: tuyenqh@​yahoo.com

This is a bug report for perl from tuyenqh@​yahoo.com\, generated with the help of perlbug 1.39 running under perl 5.14.2.

On my Cyswin

cpan -i Sys​::CPU failed with following output The gcc version is 4.7.3

Regards\, Tuyen

It appears that there is no appropriate Danish locale installed on your system. If you unset the environment variable LANG\, this error should go away.

=======================================================================

perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). CPAN​: Storable loaded ok (v2.27) Going to read '/home/tqhoang/.cpan/Metadata' Database was generated on Mon\, 08 Jul 2013 06​:07​:29 GMT Running install for module 'Sys​::CPU' Running make for M/MZ/MZSANFORD/Sys-CPU-0.54.tar.gz CPAN​: Digest​::SHA loaded ok (v5.71) CPAN​: Compress​::Zlib loaded ok (v2.033) Checksum for /home/tqhoang/.cpan/sources/authors/id/M/MZ/MZSANFORD/Sys-CPU-0.54.tar.gz ok CPAN​: File​::Temp loaded ok (v0.22) CPAN​: Parse​::CPAN​::Meta loaded ok (v1.4401) CPAN​: CPAN​::Meta loaded ok (v2.110440) CPAN​: Module​::CoreList loaded ok (v2.49_02)

CPAN.pm​: Going to build M/MZ/MZSANFORD/Sys-CPU-0.54.tar.gz

perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). Checking if your kit is complete... Looks good Writing Makefile for Sys​::CPU Writing MYMETA.yml perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). cp CPU.pm blib/lib/Sys/CPU.pm /usr/bin/perl.exe /usr/lib/perl5/5.14/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.14/ExtUtils/typemap CPU.xs > CPU.xsc && mv CPU.xsc CPU.c perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). Please specify prototyping behavior for CPU.xs (see perlxs manual) gcc-4 -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g -fno-strict-aliasing -pipe -fstack-protector -DUSEIMPORTLIB -O3 -DVERSION=\"0.54\" -DXS_VERSION=\"0.54\" "-I/usr/lib/perl5/5.14/i686-cygwin-threads-64int/CORE" CPU.c CPU.xs​: In function 'XS_Sys__CPU_cpu_clock'​: CPU.xs​:349​:5​: error​: unknown type name 'processor_info_t' CPU.xs​:350​:48​: error​: request for member 'pi_state' in something not a structure or union CPU.xs​:350​:62​: error​: 'P_ONLINE' undeclared (first use in this function) CPU.xs​:350​:62​: note​: each undeclared identifier is reported only once for each function it appears in CPU.xs​:351​:26​: error​: request for member 'pi_clock' in something not a structure or union CPU.xs​:352​:26​: error​: request for member 'pi_clock' in something not a structure or union CPU.xs​: In function 'XS_Sys__CPU_cpu_type'​: CPU.xs​:389​:5​: error​: unknown type name 'processor_info_t' CPU.xs​:391​:16​: error​: request for member 'pi_processor_type' in something not a structure or union Makefile​:329​: recipe for target `CPU.o' failed make​: *** [CPU.o] Error 1 MZSANFORD/Sys-CPU-0.54.tar.gz /usr/bin/make -- NOT OK 'YAML' not installed\, will not store persistent state Running make test Can't test without successful make Running make install Make had returned bad status\, install seems impossible --- Flags​: category=library severity=low --- Site configuration information for perl 5.14.2​:

Configured by rurban at Thu Jul 12 13​:58​:56 CDT 2012.

Summary of my perl5 (revision 5 version 14 subversion 2) configuration​:

Platform​: osname=cygwin\, osvers=1.7.15(0.26053)\, archname=cygwin-thread-multi-64int uname='cygwin_nt-5.1 winxp 1.7.15(0.26053) 2012-05-09 10​:25 i686 cygwin ' config_args='-de -Dlibperl=cygperl5_14.dll -Dcc=gcc-4 -Dld=g++-4 -Darchname=i686-cygwin-threads-64int -Dmksymlinks -Dusethreads -Accflags=-g' hint=recommended\, useposix=true\, d_sigaction=define useithreads=define\, usemultiplicity=define useperlio=define\, d_sfio=undef\, uselargefiles=define\, usesocks=undef use64bitint=define\, use64bitall=undef\, uselongdouble=undef usemymalloc=n\, bincompat5005=undef Compiler​: cc='gcc-4'\, ccflags ='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g -fno-strict-aliasing -pipe -fstack-protector'\, optimize='-O3'\, cppflags='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g -fno-strict-aliasing -pipe -fstack-protector' ccversion=''\, gccversion='4.5.3'\, gccosandvers='' intsize=4\, longsize=4\, ptrsize=4\, doublesize=8\, byteorder=12345678 d_longlong=define\, longlongsize=8\, d_longdbl=define\, longdblsize=12 ivtype='long long'\, ivsize=8\, nvtype='double'\, nvsize=8\, Off_t='off_t'\, lseeksize=8 alignbytes=8\, prototype=define Linker and Libraries​: ld='g++-4'\, ldflags =' -Wl\,--enable-auto-import -Wl\,--export-all-symbols -Wl\,--enable-auto-image-base -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /usr/lib /lib libs=-lgdbm -ldb -ldl -lcrypt -lgdbm_compat perllibs=-ldl -lcrypt libc=/usr/lib/libc.a\, so=dll\, useshrplib=true\, libperl=cygperl5_14.dll gnulibc_version='' Dynamic Linking​: dlsrc=dl_dlopen.xs\, dlext=dll\, d_dlsymun=undef\, ccdlflags=' ' cccdlflags=' '\, lddlflags=' --shared -Wl\,--enable-auto-import -Wl\,--export-all-symbols -Wl\,--enable-auto-image-base -L/usr/local/lib -fstack-protector'

Locally applied patches​: Bug#55162 File​::Spec​::case_tolerant performance CYG07 $vendorarch/auto/.rebase CYG15 static Win32CORE CYG17 cyg-1.7 paths-utf8 0c612ce82 Fix building static extensions on cygwin\, -UUSEIMPORTLIB 1bac5ecc1 Fix 64-bit threading sv.c​: S_anonymise_cv_maybe Cygwin​::sync_winenv added

--- @​INC for perl 5.14.2​: /usr/lib/perl5/site_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/site_perl/5.14 /usr/lib/perl5/vendor_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/vendor_perl/5.14 /usr/lib/perl5/5.14/i686-cygwin-threads-64int /usr/lib/perl5/5.14 /usr/lib/perl5/site_perl/5.10 /usr/lib/perl5/vendor_perl/5.10 /usr/lib/perl5/site_perl/5.8 .

--- Environment for perl 5.14.2​: HOME=/home/tqhoang LANG=en_US.UTF-8 LANGUAGE (unset) LD_LIBRARY_PATH=/usr/local/lib LOGDIR (unset) PATH=/usr/local/bin​:/usr/bin​:/cygdrive/c/Program Files/Target Compiler Technologies/DSP5.0.0.0-i32-12R2.6/bin/WINbin​:/cygdrive/h/TQH/bin​:/cygdrive/c/cs-script​:/cygdrive/h/TQH/mksnt.520/mksnt​:/cygdrive/h/TQH/bat​:/cygdrive/h/Program Files/Araxis/Araxis Merge​:/cygdrive/c/Program Files/vim/vim73​:/cygdrive/c/Program Files/Target Compiler Technologies/coyote5-i32-12R2/bin/WINbin​:/cygdrive/c/Program Files/GnuWin32/bin​:/cygdrive/c/MinGW/bin​:/cygdrive/c/Program Files/Target Compiler Technologies/coyote5-12R1/bin/WINbin​:/cygdrive/c/Program Files/PC Connectivity Solution​:/cygdrive/c/program files/automated qa/testcomplete 8/bin​:/cygdrive/c/Program Files/CSR/BlueSuite 2.5.0/DFU Tools​:/cygdrive/c/Program Files/CSR/BlueSuite 2.4/DFU Tools​:/cygdrive/c/Program Files/CSR/BlueSuite/DFU Tools​:/cygdrive/c/Perl/site/bin​:/cygdrive/c/Perl/bin​:/cygdrive/c/Tcl/bin​:/cygdrive/c/WINDOWS/system32​:/cygdrive/c/WINDOWS​:/cygdrive/c/WINDOWS/System32/Wbem​:/cygdrive/c/WINDOWS/system32/WindowsPowerShell/v1.0​:/cygdrive/c/Program Files/Common Files/Lenovo​:/cygdrive/c/Program Files/Microsoft SQL Server/90/Tools/binn​:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn​:/cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn​:/cygdrive/c/Program Files/IBM/RationalSDLC/ClearCase/bin​:/cygdrive/c/Program Files/IBM/RationalSDLC/common​:/cygdrive/c/Program Files/Windows Imaging​:/cygdrive/c/Program Files/IVI Foundation/IVI/bin​:/cygdrive/c/Program Files/IVI Foundation/VISA/WinNT/Bin​:/cygdrive/c/Program Files/IVI Foundation/VISA/WinNT/Bin​:/cygdrive/c/Program Files/MATLAB/R2009a/bin​:/cygdrive/c/Program Files/MATLAB/R2009a/bin/win32​:/cygdrive/c/Program Files/Calibre2​:/cygdrive/c/Program Files/Microchip/MPLAB C32 Suite/bin​:/cygdrive/c/Program Files/Sysinternals Suite​:/cygdrive/c/Program Files/Universal Extractor​:/cygdrive/c/Program Files/Universal Extractor/bin​:/cygdrive/c/Program Files/Windows Installer XML v3.5/bin​:/cygdrive/c/Program Files/GN ReSound/Coyote Assembler and Linker/bin​:/cygdrive/c/Program Files/Gallio/bin​:/cygdrive/c/Program Files/SlikSvn/bin​:/cygdrive/h/TQH/bin​:/cygdrive/c/Program Files/hdparm/bin​:/usr/lib/lapack PERL_BADLANG (unset) SHELL=/bin/bash

Subject​: "cpan -i Sys​::CPU" failed on Cygwin Message-Id​: \5\.14\.2\_19888\_1373366884@&#8203;AZHA1 Reply-To​: tuyenqh@​yahoo.com To​: perlbug@​perl.org From​: tuyenqh@​yahoo.com

This is a bug report for perl from tuyenqh@​yahoo.com\, generated with the help of perlbug 1.39 running under perl 5.14.2.

On my Cyswin

cpan -i Sys​::CPU failed with following output The gcc version is 4.7.3

Regards\, Tuyen

perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). CPAN​: Storable loaded ok (v2.27) Going to read '/home/tqhoang/.cpan/Metadata' Database was generated on Mon\, 08 Jul 2013 06​:07​:29 GMT Running install for module 'Sys​::CPU' Running make for M/MZ/MZSANFORD/Sys-CPU-0.54.tar.gz CPAN​: Digest​::SHA loaded ok (v5.71) CPAN​: Compress​::Zlib loaded ok (v2.033) Checksum for /home/tqhoang/.cpan/sources/authors/id/M/MZ/MZSANFORD/Sys-CPU-0.54.tar.gz ok CPAN​: File​::Temp loaded ok (v0.22) CPAN​: Parse​::CPAN​::Meta loaded ok (v1.4401) CPAN​: CPAN​::Meta loaded ok (v2.110440) CPAN​: Module​::CoreList loaded ok (v2.49_02)

CPAN.pm​: Going to build M/MZ/MZSANFORD/Sys-CPU-0.54.tar.gz

perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). Checking if your kit is complete... Looks good Writing Makefile for Sys​::CPU Writing MYMETA.yml perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). cp CPU.pm blib/lib/Sys/CPU.pm /usr/bin/perl.exe /usr/lib/perl5/5.14/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.14/ExtUtils/typemap CPU.xs > CPU.xsc && mv CPU.xsc CPU.c perl​: warning​: Setting locale failed. perl​: warning​: Please check that your locale settings​: LC_ALL = (unset)\, LANG = "DA" are supported and installed on your system. perl​: warning​: Falling back to the standard locale ("C"). Please specify prototyping behavior for CPU.xs (see perlxs manual) gcc-4 -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g -fno-strict-aliasing -pipe -fstack-protector -DUSEIMPORTLIB -O3 -DVERSION=\"0.54\" -DXS_VERSION=\"0.54\" "-I/usr/lib/perl5/5.14/i686-cygwin-threads-64int/CORE" CPU.c CPU.xs​: In function 'XS_Sys__CPU_cpu_clock'​: CPU.xs​:349​:5​: error​: unknown type name 'processor_info_t' CPU.xs​:350​:48​: error​: request for member 'pi_state' in something not a structure or union CPU.xs​:350​:62​: error​: 'P_ONLINE' undeclared (first use in this function) CPU.xs​:350​:62​: note​: each undeclared identifier is reported only once for each function it appears in CPU.xs​:351​:26​: error​: request for member 'pi_clock' in something not a structure or union CPU.xs​:352​:26​: error​: request for member 'pi_clock' in something not a structure or union CPU.xs​: In function 'XS_Sys__CPU_cpu_type'​: CPU.xs​:389​:5​: error​: unknown type name 'processor_info_t' CPU.xs​:391​:16​: error​: request for member 'pi_processor_type' in something not a structure or union Makefile​:329​: recipe for target `CPU.o' failed make​: *** [CPU.o] Error 1 MZSANFORD/Sys-CPU-0.54.tar.gz /usr/bin/make -- NOT OK 'YAML' not installed\, will not store persistent state Running make test Can't test without successful make Running make install Make had returned bad status\, install seems impossible --- Flags​: category=library severity=low --- Site configuration information for perl 5.14.2​:

Configured by rurban at Thu Jul 12 13​:58​:56 CDT 2012.

Summary of my perl5 (revision 5 version 14 subversion 2) configuration​: Platform​: osname=cygwin\, osvers=1.7.15(0.26053)\, archname=cygwin-thread-multi-64int uname='cygwin_nt-5.1 winxp 1.7.15(0.26053) 2012-05-09 10​:25 i686 cygwin ' config_args='-de -Dlibperl=cygperl5_14.dll -Dcc=gcc-4 -Dld=g++-4 -Darchname=i686-cygwin-threads-64int -Dmksymlinks -Dusethreads -Accflags=-g' hint=recommended\, useposix=true\, d_sigaction=define useithreads=define\, usemultiplicity=define useperlio=define\, d_sfio=undef\, uselargefiles=define\, usesocks=undef use64bitint=define\, use64bitall=undef\, uselongdouble=undef usemymalloc=n\, bincompat5005=undef Compiler​: cc='gcc-4'\, ccflags ='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g -fno-strict-aliasing -pipe -fstack-protector'\, optimize='-O3'\, cppflags='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g -fno-strict-aliasing -pipe -fstack-protector' ccversion=''\, gccversion='4.5.3'\, gccosandvers='' intsize=4\, longsize=4\, ptrsize=4\, doublesize=8\, byteorder=12345678 d_longlong=define\, longlongsize=8\, d_longdbl=define\, longdblsize=12 ivtype='long long'\, ivsize=8\, nvtype='double'\, nvsize=8\, Off_t='off_t'\, lseeksize=8 alignbytes=8\, prototype=define Linker and Libraries​: ld='g++-4'\, ldflags =' -Wl\,--enable-auto-import -Wl\,--export-all-symbols -Wl\,--enable-auto-image-base -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /usr/lib /lib libs=-lgdbm -ldb -ldl -lcrypt -lgdbm_compat perllibs=-ldl -lcrypt libc=/usr/lib/libc.a\, so=dll\, useshrplib=true\, libperl=cygperl5_14.dll gnulibc_version='' Dynamic Linking​: dlsrc=dl_dlopen.xs\, dlext=dll\, d_dlsymun=undef\, ccdlflags=' ' cccdlflags=' '\, lddlflags=' --shared -Wl\,--enable-auto-import -Wl\,--export-all-symbols -Wl\,--enable-auto-image-base -L/usr/local/lib -fstack-protector'

Locally applied patches​: Bug#55162 File​::Spec​::case_tolerant performance CYG07 $vendorarch/auto/.rebase CYG15 static Win32CORE CYG17 cyg-1.7 paths-utf8 0c612ce82 Fix building static extensions on cygwin\, -UUSEIMPORTLIB 1bac5ecc1 Fix 64-bit threading sv.c​: S_anonymise_cv_maybe Cygwin​::sync_winenv added

--- @​INC for perl 5.14.2​: /usr/lib/perl5/site_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/site_perl/5.14 /usr/lib/perl5/vendor_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/vendor_perl/5.14 /usr/lib/perl5/5.14/i686-cygwin-threads-64int /usr/lib/perl5/5.14 /usr/lib/perl5/site_perl/5.10 /usr/lib/perl5/vendor_perl/5.10 /usr/lib/perl5/site_perl/5.8 .

--- Environment for perl 5.14.2​: HOME=/home/tqhoang LANG=en_US.UTF-8 LANGUAGE (unset) LD_LIBRARY_PATH=/usr/local/lib LOGDIR (unset) PATH=/usr/local/bin​:/usr/bin​:/cygdrive/c/Program Files/Target Compiler Technologies/DSP5.0.0.0-i32-12R2.6/bin/WINbin​:/cygdrive/h/TQH/bin​:/cygdrive/c/cs-script​:/cygdrive/h/TQH/mksnt.520/mksnt​:/cygdrive/h/TQH/bat​:/cygdrive/h/Program Files/Araxis/Araxis Merge​:/cygdrive/c/Program Files/vim/vim73​:/cygdrive/c/Program Files/Target Compiler Technologies/coyote5-i32-12R2/bin/WINbin​:/cygdrive/c/Program Files/GnuWin32/bin​:/cygdrive/c/MinGW/bin​:/cygdrive/c/Program Files/Target Compiler Technologies/coyote5-12R1/bin/WINbin​:/cygdrive/c/Program Files/PC Connectivity Solution​:/cygdrive/c/program files/automated qa/testcomplete 8/bin​:/cygdrive/c/Program Files/CSR/BlueSuite 2.5.0/DFU Tools​:/cygdrive/c/Program Files/CSR/BlueSuite 2.4/DFU Tools​:/cygdrive/c/Program Files/CSR/BlueSuite/DFU Tools​:/cygdrive/c/Perl/site/bin​:/cygdrive/c/Perl/bin​:/cygdrive/c/Tcl/bin​:/cygdrive/c/WINDOWS/system32​:/cygdrive/c/WINDOWS​:/cygdrive/c/WINDOWS/System32/Wbem​:/cygdrive/c/WINDOWS/system32/WindowsPowerShell/v1.0​:/cygdrive/c/Program Files/Common Files/Lenovo​:/cygdrive/c/Program Files/Microsoft SQL Server/90/Tools/binn​:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn​:/cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn​:/cygdrive/c/Program Files/IBM/RationalSDLC/ClearCase/bin​:/cygdrive/c/Program Files/IBM/RationalSDLC/common​:/cygdrive/c/Program Files/Windows Imaging​:/cygdrive/c/Program Files/IVI Foundation/IVI/bin​:/cygdrive/c/Program Files/IVI Foundation/VISA/WinNT/Bin​:/cygdrive/c/Program Files/IVI Foundation/VISA/WinNT/Bin​:/cygdrive/c/Program Files/MATLAB/R2009a/bin​:/cygdrive/c/Program Files/MATLAB/R2009a/bin/win32​:/cygdrive/c/Program Files/Calibre2​:/cygdrive/c/Program Files/Microchip/MPLAB C32 Suite/bin​:/cygdrive/c/Program Files/Sysinternals Suite​:/cygdrive/c/Program Files/Universal Extractor​:/cygdrive/c/Program Files/Universal Extractor/bin​:/cygdrive/c/Program Files/Windows Installer XML v3.5/bin​:/cygdrive/c/Program Files/GN ReSound/Coyote Assembler and Linker/bin​:/cygdrive/c/Program Files/Gallio/bin​:/cygdrive/c/Program Files/SlikSvn/bin​:/cygdrive/h/TQH/bin​:/cygdrive/c/Program Files/hdparm/bin​:/usr/lib/lapack PERL_BADLANG (unset) SHELL=/bin/bash