in reply to Re^2: Tk Package Fails to Make - Next Crisis in thread SOLVED (mostly): Tk Package Fails to Make
Hmmmm, there's definitely something wrong here. perl -v</code) outputs:
<p><p>
<code>
This is perl, v5.10.0 built for MSWin32-x86-multi-thread
Copyright 1987-2007, Larry Wall
Perl may be copied only under the terms of either the Artistic License
+ or the
GNU General Public License, which may be found in the Perl 5 source ki
+t.
Complete documentation for Perl, including FAQ lists, should be found
+on
this system using "man perl" or "perldoc perl". If you have access to
+ the
Internet, point your browser at http://www.perl.org/, the Perl Home Pa
+ge.
...with no discussion of compilation. Attempting install Match::FFT yields:
Running install for module 'Math::FFT'
Running make for R/RK/RKOBES/Math-FFT-1.28.tar.gz
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/R/RK/RKOBES/Math-FFT-1.28.
+tar.gz
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/R/RK/RKOBES/CHECKSUMS
Checksum for C:\strawberry\cpan\sources\authors\id\R\RK\RKOBES\Math-FF
+T-1.28.tar.gz ok
CPAN.pm: Going to build R/RK/RKOBES/Math-FFT-1.28.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Math::FFT
cp FFT.pm blib\lib\Math\FFT.pm
C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp
+ -typemap C:\strawberry\perl\lib\ExtUtils\typemap -typemap typemap
+FFT.xs > FFT.xsc && C:\strawberry\perl\bin\perl.exe -MExtUtil
s::Command -e mv FFT.xsc FFT.c
gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTE
+XT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s
+-O2 -DVERSION=\"1.28\" -DXS_VERSION=\"1.28\" "-IC:\str
awberry\perl\lib\CORE" FFT.c
In file included from FFT.xs:6:
C:\strawberry\perl\lib\CORE\perl.h:587: sys/types.h: No such file or d
+irectory
In file included from FFT.xs:6:
C:\strawberry\perl\lib\CORE\perl.h:618: ctype.h: No such file or direc
+tory
C:\strawberry\perl\lib\CORE\perl.h:630: locale.h: No such file or dire
+ctory
C:\strawberry\perl\lib\CORE\perl.h:647: setjmp.h: No such file or dire
+ctory
C:\strawberry\perl\lib\CORE\perl.h:658: stdlib.h: No such file or dire
+ctory
In file included from FFT.xs:6:
C:\strawberry\perl\lib\CORE\perl.h:973: string.h: No such file or dire
+ctory
In file included from FFT.xs:6:
C:\strawberry\perl\lib\CORE\perl.h:1137: sys/stat.h: No such file or d
+irectory
C:\strawberry\perl\lib\CORE\perl.h:1159: time.h: No such file or direc
+tory
C:\strawberry\perl\lib\CORE\perl.h:1180: errno.h: No such file or dire
+ctory
In file included from C:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\inc
+lude\syslimits.h:7,
from C:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\inc
+lude\limits.h:11,
from C:\strawberry\perl\lib\CORE\perl.h:1773,
from FFT.xs:6:
C:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\include\limits.h:116: No
+include path in which to find limits.h
In file included from C:\strawberry\perl\lib\CORE\perl.h:2497,
from FFT.xs:6:
C:\strawberry\perl\lib\CORE\dosish.h:125: signal.h: No such file or di
+rectory
In file included from C:\strawberry\perl\lib\CORE\win32thread.h:4,
from C:\strawberry\perl\lib\CORE\perl.h:2748,
from FFT.xs:6:
C:\strawberry\perl\lib\CORE\win32.h:59: windows.h: No such file or dir
+ectory
C:\strawberry\perl\lib\CORE\win32.h:70: io.h: No such file or director
+y
C:\strawberry\perl\lib\CORE\win32.h:71: process.h: No such file or dir
+ectory
C:\strawberry\perl\lib\CORE\win32.h:72: stdio.h: No such file or direc
+tory
C:\strawberry\perl\lib\CORE\win32.h:73: direct.h: No such file or dire
+ctory
C:\strawberry\perl\lib\CORE\win32.h:74: stdlib.h: No such file or dire
+ctory
In file included from C:\strawberry\perl\lib\CORE\win32thread.h:4,
from C:\strawberry\perl\lib\CORE\perl.h:2748,
from FFT.xs:6:
C:\strawberry\perl\lib\CORE\win32.h:76: fcntl.h: No such file or direc
+tory
In file included from C:\strawberry\perl\lib\CORE\win32.h:359,
from C:\strawberry\perl\lib\CORE\win32thread.h:4,
from C:\strawberry\perl\lib\CORE\perl.h:2748,
from FFT.xs:6:
C:\strawberry\perl\lib\CORE\sys/socket.h:17: windows.h: No such file o
+r directory
C:\strawberry\perl\lib\CORE\sys/socket.h:26: winsock2.h: No such file
+or directory
In file included from C:\strawberry\perl\lib\CORE\win32.h:551,
from C:\strawberry\perl\lib\CORE\win32thread.h:4,
from C:\strawberry\perl\lib\CORE\perl.h:2748,
from FFT.xs:6:
C:\strawberry\perl\lib\CORE\perlio.h:65: stdio.h: No such file or dire
+ctory
In file included from C:\strawberry\perl\lib\CORE\win32.h:557,
from C:\strawberry\perl\lib\CORE\win32thread.h:4,
from C:\strawberry\perl\lib\CORE\perl.h:2748,
from FFT.xs:6:
C:\strawberry\perl\lib\CORE\win32iop.h:17: sys/utime.h: No such file o
+r directory
In file included from C:\strawberry\perl\lib\CORE\perl.h:3275,
from FFT.xs:6:
C:\strawberry\perl\lib\CORE\iperlsys.h:913: setjmp.h: No such file or
+directory
In file included from FFT.xs:6:
C:\strawberry\perl\lib\CORE\perl.h:3823: math.h: No such file or direc
+tory
In file included from FFT.xs:6:
C:\strawberry\perl\lib\CORE\perl.h:5578: fcntl.h: No such file or dire
+ctory
dmake.EXE: Error code 129, while making 'FFT.o'
RKOBES/Math-FFT-1.28.tar.gz
C:\strawberry\c\bin\dmake.EXE -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
RKOBES/Math-FFT-1.28.tar.gz : make NO
cpan> q
Lockfile removed.
By the way, much thanks for helping me with all of this so far. I'm learning a lot.
Re^4: Tk Package Fails to Make - Next Crisis
by CSJewell (Beadle) on Apr 10, 2009 at 01:31 UTC
|
perl -V and perl -v do two different things. (note the capitalization on the V)
Here's what capital V does on my main Strawberry 5.10.0.4 installation:
Summary of my perl5 (revision 5 version 10 subversion 0) configuration
+:
Platform:
osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=und
+ef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags =' -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPL
+ICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_M
SVCRT_READFIX',
optimize='-s -O2',
cppflags='-DWIN32'
ccversion='', gccversion='3.4.5', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='long lo
+ng', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='g++', ldflags ='-s -L"C:\strawberry\perl\lib\CORE" -L"C:\straw
+berry\c\lib"'
libpth=C:\strawberry\c\lib
libs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -
+lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -
luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32
perllibs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspo
+ol -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi
32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32
libc=-lmsvcrt, so=dll, useshrplib=true, libperl=libperl510.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-mdll -s -L"C:\strawberry\perl\lib\CORE
+" -L"C:\strawberry\c\lib"'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
PERL_MALLOC_WRAP PL_OP_SLAB_ALLOC USE_ITHREADS
USE_LARGE_FILES USE_PERLIO
Built under MSWin32
Compiled at Jan 29 2009 20:56:38
@INC:
C:/strawberry/perl/lib
C:/strawberry/perl/site/lib
.
| [reply] [d/l] [select] |
Re^4: Tk Package Fails to Make - Next Crisis
by syphilis (Bishop) on Apr 10, 2009 at 07:46 UTC
|
Hmmmm, there's definitely something wrong here
Yes, something is definitely wrong with MinGW. Which Windows OS do you have ?
Save the following script as try.c:
int main (void) {
return 0;
}
Then cd to the directory that contains 'try.c' and run:
gcc -o try.exe try.c -v
What output do you get ? (I'm still interested to see the perl -V output too, btw.)
Cheers, Rob | [reply] [d/l] [select] |
|
Oh, cap 'V,' yep didn't pick up on that. Alright, perl -V gives me:
Summary of my perl5 (revision 5 version 10 subversion 0) configuration
+:
Platform:
osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=und
+ef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags =' -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPL
+ICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_R
+EADFIX',
optimize='-s -O2',
cppflags='-DWIN32'
ccversion='', gccversion='3.4.5', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='long lo
+ng', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='g++', ldflags ='-s -L"C:\strawberry\perl\lib\CORE" -L"C:\straw
+berry\c\lib"'
libpth=C:\strawberry\c\lib
libs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -
+lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -
+lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32
perllibs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspo
+ol -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luu
+id -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32
libc=-lmsvcrt, so=dll, useshrplib=true, libperl=libperl510.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-mdll -s -L"C:\strawberry\perl\lib\CORE
+" -L"C:\strawberry\c\lib"'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
PERL_MALLOC_WRAP PL_OP_SLAB_ALLOC USE_ITHREADS
USE_LARGE_FILES USE_PERLIO
Built under MSWin32
Compiled at Jan 29 2009 20:56:38
@INC:
C:/strawberry/perl/lib
C:/strawberry/perl/site/lib
.
I am running on windows XP and I am pretty sure our office is up to using SP3. I can double check on that though if you need those details. Running the gcc command on try.c, as you described, yields:
Reading specs from C:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\specs
gcc version 2.8.1
C:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\cpp.exe -lang-c -v -unde
+f -D__GNUC__=2 -D__GNUC_MINOR__=8 -Di386 -D_WIN32 -DWIN32 -D__WIN32__
+ -D__MINGW32__ -DWINNT -D_X86_=1 -D__STDC__=1 -D__stdcall=__a
ttribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__i38
+6__ -D_WIN32 -D__WIN32__ -D__WIN32__ -D__MINGW32__ -D__WINNT__ -D_X86
+_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D_
_cdecl=__attribute__((__cdecl__)) -D__i386 -D__WIN32 -D__WINNT -Asyste
+m(winnt) -Acpu(i386) -Amachine(i386) -remap -Di386 -Di586 -Asystem(un
+ix) -Acpu(i386) -Amachine(i386) -D__i386__ -D__i586__ -Asyste
m(unix) -Acpu(i386) -Amachine(i386) try.c C:\DOCUME~1\BJACKS~1.SLC\LOC
+ALS~1\Temp\cca00264.i
GNU CPP version 2.8.1 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
C:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\include
End of search list.
C:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\cc1.exe C:\DOCUME~1\BJAC
+KS~1.SLC\LOCALS~1\Temp\cca00264.i -quiet -dumpbase try.c -version -o
+C:\DOCUME~1\BJACKS~1.SLC\LOCALS~1\Temp\cca00264.s
GNU C version 2.8.1 (pentium-mingw32msv) compiled by GNU C version 2.8
+.1.
as -o C:\DOCUME~1\BJACKS~1.SLC\LOCALS~1\Temp\cca002641.o C:\DOCUME~1\
+BJACKS~1.SLC\LOCALS~1\Temp\cca00264.s
ld -o try.exe C:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\crt2.o -LC
+:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1 -LC:\GNAT\lib -LC:\GNAT\l
+ib C:\DOCUME~1\BJACKS~1.SLC\LOCALS~1\Temp\cca002641.o -lmingw
32 -lgcc -lmoldname -lmsvcrt -lkernel32 -ladvapi32 -lshell32 -lmingw32
+ -lgcc -lmoldname -lmsvcrt
It looks like I have a version of gcc installed from my GNAT development environment that might be conflicting with the one installed with strawberry perl. Does that sound right? Does that even matter?
Thank you again for all the help =)
Cheers. | [reply] [d/l] [select] |
|
It looks like I have a version of gcc installed from my GNAT development environment that might be conflicting with the one installed with strawberry perl.
Yes, that's not strawberry's gcc. Can you rename 'C:/GNAT' to 'C:/GNAT_hide' (so that the system can't find it), then re-run the CPAN install of Math::FFT. Hopefully the CPAN install will then work fine.
Then, assuming you do need that GNAT gcc, you just have to work out how to manage the co-existence of those 2 versions of gcc. Another way would be to make sure that C:/strawberry/c/bin is at the start of your path envvar whenever you want to use that version of gcc. To achieve that just run:
set PATH=C:\strawberry\c\bin;%PATH%
That will ensure that strawberry's gcc is found instead of GNAT's. (You'll need to re-run that command every time you open up a cmd.exe shell that needs to find strawberry's gcc - unless you make that your permanent path setting.)
The best thing would be to remove the GNAT version, if possible.
Cheers, Rob | [reply] [d/l] |
|
|
|
|