Re: gcc for building Perl on WinXP

2011-11-12 Thread Sisyphus
- Original Message - From: "kmx" Apart from: http://strawberryperl.com/package/kmx/p5.14.2.1-RC/strawberry-perl-5.14.2.1-portable-32bit-beta-1.zip http://strawberryperl.com/package/kmx/32_libs/5.14-extras/32bit_pthreads-2.9.0-bin_2001.zip We have also prepared other PDL handy s

Re: gcc for building Perl on WinXP

2011-11-12 Thread kmx
Hi Rob, Just getting to it now. (I know Chris has already established that the pthreads suport builds fine using his small patch to pthread.h. I'm building PDL-2.4.9_009, also with pthreads support as provided by 2), above - and also with Chris's amendment to pthread.h.) First thing I noti

Re: gcc for building Perl on WinXP

2011-11-11 Thread Sisyphus
- Original Message - From: "kmx" To: "Chris Marshall" Cc: "Sisyphus" ; Sent: Monday, November 07, 2011 8:14 AM Subject: Re: gcc for building Perl on WinXP Chris and/or Rob, could you please try the following: 1/ take http://strawberryper

Re: gcc for building Perl on WinXP

2011-11-11 Thread Mark Dootson
Hi, My own efforts to support building Perl + wxWidgets have resulted in http://sourceforge.net/projects/perlmingw/files/ It is a build of 4.6.2 with pthreads and includes gfortran and libquadmath. It seems to build PDL from git without problems. The bundled Config_MinGWFP ( set PERL5OPT=-MCon

Re: gcc for building Perl on WinXP

2011-11-07 Thread kmx
Yes, "dmake clean" did the trick. Thanks. -- kmx On 7.11.2011 22:32, Chris Marshall wrote: I just realized what might have happened. You'll need to do a dmake clean and then a complete build from scratch to ensure that old copies of the various files are not being used (some of these are gene

Re: gcc for building Perl on WinXP

2011-11-07 Thread Chris Marshall
I just realized what might have happened. You'll need to do a dmake clean and then a complete build from scratch to ensure that old copies of the various files are not being used (some of these are generated at the configure stage). On Mon, Nov 7, 2011 at 4:20 PM, Chris Marshall wrote: > Are you

Re: gcc for building Perl on WinXP

2011-11-07 Thread Chris Marshall
Are you sure this is the latest PDL git from sf.net? The error here looks like something that has already been fixed as of CPAN developers release 2.4.9_008 according to the PDL Release_Notes. --Chris On Mon, Nov 7, 2011 at 4:07 PM, kmx wrote: > Chris, > > that sounds great, however my attempt e

Re: gcc for building Perl on WinXP

2011-11-07 Thread kmx
Chris, that sounds great, however my attempt ended up with: C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp -typemap C:\strawberry\perl\lib\ExtUtils\typemap -typemap typemap Core.xs > Core.xsc && C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e mv -- Core.xsc Co

Re: gcc for building Perl on WinXP

2011-11-07 Thread Chris Marshall
I just pushed a new PDL git with a fix for the perl vs POSIX threads namespace/implementation collision. You should be able to build with the unedited pthread.h now --Chris On Sun, Nov 6, 2011 at 5:58 PM, chm wrote: > dmake test passed all except the known problem > with t/pthreadBarf.t.  Al

Re: gcc for building Perl on WinXP

2011-11-06 Thread chm
dmake test passed all except the known problem with t/pthreadBarf.t. Also, I think we can fix the breakage in pthread.h by doing the undef in our pdlmagic file that is including pthread.h. Cheers, Chris On 11/6/2011 5:40 PM, chm wrote: I got it to work with the following: Add after the POSIX

Re: gcc for building Perl on WinXP

2011-11-06 Thread chm
I got it to work with the following: Add after the POSIX Threads comment block in pthread.h: #ifdef PTHREAD_CREATE_JOINABLE #undef PTHREAD_CREATE_JOINABLE #endif in order to remedy the fact that perl has added a macro with the same value. If the pthread one is not already defined then the p

Re: gcc for building Perl on WinXP

2011-11-06 Thread chm
Hi kmx- The detection for the pthread library is currently broken. To build PDL with pthreads you'll need to explicitly set the values of WITH_POSIX_THREADS, POSIX_THREADS_INC, and POSIX_THREADS_LIBS where the comment indicate what worked for my strawberry perl install was: WITH_POSIX_THREADS =

Re: gcc for building Perl on WinXP

2011-11-06 Thread kmx
Chris and/or Rob, could you please try the following: 1/ take http://strawberryperl.com/package/kmx/p5.14.2.1-RC/strawberry-perl-5.14.2.1-portable-32bit-beta-1.zip 2/ take http://strawberryperl.com/package/kmx/32_libs/5.14-extras/32bit_pthreads-2.9.0-bin_2001.zip (unzip into the same di

Re: gcc for building Perl on WinXP

2011-11-03 Thread Chris Marshall
We've tested the PDL pthread support with "POSIX Threads (pthreads) for Win32" at http://sourceware.org/pthreads-win32/ . It is nice because it allows PDL computations to make use of multicore processors for calculations. Always nice to see those factors of 2X, 4X, 6X, or more in speedup --Ch

Re: gcc for building Perl on WinXP

2011-11-02 Thread Sisyphus
- Original Message - From: "kmx" As for the future gcc-4.6.2 toolchain there is also an interesting question about including pthreads or winpthreads support as PDL is AFAIK somohow able to handle threads this way (not sure if this is valid for Win32) Yes, pthreads works with PDL o

Re: gcc for building Perl on WinXP

2011-11-02 Thread kmx
Mark, As you probably know strawberry perl is using sezero's gcc toolchain build since approx April 2010. We use "nearly exactly" the original sezero's gcc 4.4.x toolchain - there are basically 2 things we have changed 1/ sezero's gcc builds ignore /include dir when searching for *.h files

Re: gcc for building Perl on WinXP

2011-11-02 Thread Sergei Steshenko
Message - > From: Mark Dootson > To: Sergei Steshenko > Cc: "win32-vanilla@perl.org" > Sent: Wednesday, November 2, 2011 8:08 PM > Subject: Re: gcc for building Perl on WinXP > > It is the 32bit version of mingw-w64. > > Source at > > http://sourcefor

Re: gcc for building Perl on WinXP

2011-11-02 Thread Mark Dootson
: gcc for building Perl on WinXP Hi, At mingw-w64 Oskan Sezer (sezero) has updated his release of gcc 4.5.4 including latest patches. [snip] I do not see gcc-4.5.4 at gcc.gnu.org . The latest gcc-4.5.X I see is gcc-4.5.3. Does such a release really exist ? Thanks, Sergei.

Re: gcc for building Perl on WinXP

2011-11-02 Thread Sergei Steshenko
- Original Message - > From: Mark Dootson > To: Chris Marshall > Cc: Karel Miko ; win32-vanilla@perl.org > Sent: Wednesday, November 2, 2011 7:04 PM > Subject: Re: gcc for building Perl on WinXP > > Hi, > > At mingw-w64 Oskan Sezer (sezero) has updat

Re: gcc for building Perl on WinXP

2011-11-02 Thread Mark Dootson
Just a note on standard 4.5.x / 4.6.x gcc and building Perl. For the tests, you have to drop libstdc++-6.dll into the 't' folder before running tests. Perl probably needs a patch to do this in the same way it copies libgcc_*.dll Note that it is having a shared c++ library that solves the excep

Re: gcc for building Perl on WinXP

2011-11-02 Thread kmx
For the strawberry perl we have both gcc + fortran packs 32bit: http://strawberryperl.com/package/kmx/32_gcctoolchain/mingw64-w32-gcc4.4.7-pre_2001.zip http://strawberryperl.com/package/kmx/32_gcctoolchain/mingw64-w32-gfortran4.4.7-pre_2001.zip 64bit: http://strawberryperl.com/package/km

Re: gcc for building Perl on WinXP

2011-11-02 Thread Mark Dootson
Hi, At mingw-w64 Oskan Sezer (sezero) has updated his release of gcc 4.5.4 including latest patches. This solves my wxWidgets (c++) issues ( and general c++ exception problems for many other things I expect). It should also solve the Windows XP CRT issue which caused strawberry to stick with

Re: gcc for building Perl on WinXP

2011-11-02 Thread Chris Marshall
It would really simplify things for win32 PDL if an easy, 1-click addition for gfortran were available. We're spending a lot of development time working around the lack of a fortran compiler on win32 perls. Since gcc includes one, it is more of a packaging and distribution issue than one of exist

Re: gcc for building Perl on WinXP

2011-11-01 Thread Karel Miko
In preparing the next Strawberry release you've no doubt noticed that mingw-w64 32bit version cannot build a working Perl after gcc version 4.4.3 on Windows XP. Yes, in fact it was during the last week when we have found out (with help of BinGOs and Ranguard via IRC) that gcc-4.4.7 and 4.6.1

Re: gcc for building Perl on WinXP

2011-10-30 Thread kmx
In preparing the next Strawberry release you've no doubt noticed that mingw-w64 32bit version cannot build a working Perl after gcc version 4.4.3 on Windows XP. Yes, in fact it was during the last week when we have found out (with help of BinGOs and Ranguard via IRC) that gcc-4.4.7 and 4.6.

gcc for building Perl on WinXP

2011-10-30 Thread Mark Dootson
Hi, In preparing the next Strawberry release you've no doubt noticed that mingw-w64 32bit version cannot build a working Perl after gcc version 4.4.3 on Windows XP. Commit 180422 to the 4.6 branch of gcc fixes the problem - I've cross compiled my own 32bit 4.6.2 release (the tagged 4.6.2 rel